IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Spring Java Discussion :

Probleme Spring Hibernate


Sujet :

Spring Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2005
    Messages
    163
    Détails du profil
    Informations personnelles :
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Avril 2005
    Messages : 163
    Par défaut Probleme Spring Hibernate
    Salut,
    Aprés avoir ajouter les fichiers de configuration de hibernate j'arrive plus a éxécuter mon formulaire depuis mon navigateur. Et comme je suis débutant j'arrive vraiment pas à trouver ou sa cloche.
    voici l'erreur que je trouve ds le fichier log de tomcat

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    ERROR [http-8081-Processor25] - Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]; constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration
    org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]; constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration
    java.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration
    Mes fichiers XML sont ci dessous

    applicationContext.xml
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    <!DOCTYPE beans PUBLIC 	"-//SPRING//DTD BEAN//EN" 
    	"http://www.springframework.org/dtd/spring-beans.dtd">
     
    <beans>	
     
     
    	<bean id="dataSource"
    		class="org.apache.commons.dbcp.BasicDataSource">
    		<property name="driverClassName">
    			<value>com.mysql.jdbc.Driver</value>
    		</property>
    		<property name="url">
    			<value>jdbc:mysql://localhost/dbpersonnes</value>
    		</property>
    		<property name="username"><value>root</value></property>
    		<property name="password"><value></value></property>
    	</bean>
     
    	<bean id="sessionFactory"
    		class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    		<property name="dataSource">
    			<ref local="dataSource"/>
    		</property>
    		<property name="mappingResources">
    		<list>
    			<value>org/ultimania/model/Personne.hbm.xml</value>
    		</list>
    		</property>
    		<property name="hibernateProperties">
    			<props>
    				<prop key="hibernate.dialect">
    					org.hibernate.dialect.MySQLDialect
    				</prop>
    				<prop key="hibernate.show_sql">true</prop>
    				<prop key="hibernate.cglib.use_reflection_optimizer">false</prop>
    			</props>
    		</property>
    	</bean>
    		<bean id="myTransactionManager"
             class="org.springframework.orm.hibernate3.HibernateTransactionManager">
            <property name="sessionFactory">
        		<ref local="sessionFactory"/>
     		</property>
        </bean>
     
        <bean id="hibernateInterceptor" class="org.springframework.orm.hibernate3.HibernateInterceptor">
             <property name="sessionFactory">
               <ref bean="sessionFactory"/>
             </property>
        </bean>    
     
      	<bean id="personneDao" class="istia.st.springmvc.personnes.dao.DaoImplCommon">
    		<property name="sessionFactory"><ref local="sessionFactory"/></property>
    	</bean>
     
    </beans>
    le fichier qui gére la servlet

    personnes-servlet.xml

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
    	<!-- les mappings de l'application-->
    	<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
    		<property name="mappings">
    			<props>
    				<prop key="/list.html">Personnes.ListController</prop>
    				<prop key="/delete.html">Personnes.DeleteController</prop>
    				<prop key="/edit.html">Personnes.EditController</prop>
    			</props>
    		</property>
    	</bean>
    	<!-- LES CONTROLEURS -->
    	<bean id="Personnes.ListController" 
    		class="istia.st.springmvc.personnes.web.ListPersonnes">
    		<property name="service">
    			<ref bean="service"/>
    		</property>
    	</bean>
    	<bean id="Personnes.DeleteController" 
    		class="istia.st.springmvc.personnes.web.DeletePersonne">
    		<property name="service">
    			<ref bean="service"/>
    		</property>
    	</bean>
    	<bean id="Personnes.EditController" 
    		class="istia.st.springmvc.personnes.web.EditPersonne">
    		<property name="sessionForm">
    			<value>true</value>
    		</property>
    		<property name="commandName">
    			<value>personne</value>
    		</property>
    		<property name="validator">
    			<ref bean="Personnes.Validator"/>
    		</property>
    		<property name="formView">
    			<value>edit</value>
    		</property>
    		<property name="service">
    			<ref bean="service"/>
    		</property>
    	</bean>
    	<!-- le validateur -->
    	<bean id="Personnes.Validator" 
    		class="istia.st.springmvc.personnes.web.ValidatePersonne"/>
    	<!-- le résolveur de vues -->
    	<bean class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
    		<property name="basename">
    			<value>vues</value>
    		</property>
    	</bean>
    	<!-- le gestionnaire d'exceptions -->
    	<bean
    		class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
    		<property name="exceptionAttribute">
    			<value>exception</value>
    		</property>
    		<property name="defaultStatusCode">
    			<value>200</value>
    		</property>
    		<property name="defaultErrorView">
    			<value>exception</value>
    		</property>
    	</bean>
    	<!-- le fichier des messages -->
    	<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
    		<property name="basename">
    			<value>messages</value>
    		</property>
    	</bean>
    </beans>
    Alors je tiens à préciser que tous se code je l'ai pris par ci par là, donc je connais pas exactement à koi correspond chaque ligne du code (Pourtant j'ai fait le tuto de serge tahé les 5 parties qui d'ailleurs tres bien).
    Ce que jej veux faire : je veux éxécuter le formulaire list.html qui contient une table remplie depuis la BD


    Merci de votre aide

  2. #2
    Membre Expert
    Homme Profil pro
    Directeur technique
    Inscrit en
    Janvier 2007
    Messages
    1 348
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Directeur technique

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 348
    Par défaut
    Ben j'ai jamais fait de Spring+Hibernate mais NoClassDefFoundError c'est assez clair comme erreur, c'est qu'il te manque le jar Hibernate dans le classpath de ta webapp (WEB-INF/lib)

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2005
    Messages
    163
    Détails du profil
    Informations personnelles :
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Avril 2005
    Messages : 163
    Par défaut
    merci pour ta reponse,
    mais j'ai bien hibernate3.jar dans mon classpath ,au faite je travaille avec eclipse il suffit de faire build path -> configure build path puis rajouter les jar qu'il faut.

  4. #4
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2005
    Messages
    163
    Détails du profil
    Informations personnelles :
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Avril 2005
    Messages : 163
    Par défaut
    Depuis j'ai efféctué qlq changement sur mes fichiers de conf mnt le message que m'affcihe tomcat 5.5 (fichier log) est :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    ERROR [http-8081-Processor23] - Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myPersonneDao' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy0] to required type [net.sf.hibernate.SessionFactory] for property 'sessionFactory']
    PropertyAccessExceptionsException (1 errors)
    org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy0] to required type [net.sf.hibernate.SessionFactory] for property 'sessionFactory'
    	at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:951)
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:692)
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:572)
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:737)
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:764)
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:753)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1057)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
    	at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
    	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
    	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
    	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
    	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
    	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
    	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
    	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
    	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:519)
    	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457)
    	at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
    	at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
    	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
    	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
    	at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397)
    	at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:815)
    	at org.apache.catalina.manager.HTMLManagerServlet.deployInternal(HTMLManagerServlet.java:249)
    	at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:96)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    	at java.lang.Thread.run(Unknown Source)
     INFO [http-8081-Processor23] - Closing Spring root WebApplicationContext
    il me semble qu'il y a un mixage entre Hibernate 2 et 3 jars par ce que le package net.sf.hibernate.SessionFactory est ds Hibernate v2. mais je suis pas sur.
    j'ai vérifié partout s'il y a utilisation de packages commencant par net.sf (hibernate2), le seul endroit ou ils se trouvent c'est ds le fichiers de configurantion de middlegen, que j'ai utilisé pour géner les fichiers de mapping

    le voila

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    <?xml version="1.0" encoding="utf-8"?>
     
    <!--
      This build file is generated by MiddlegenIDE.
     
      MiddlegenIDE: http://ultimania.org/middlegenide/
    -->
     
    <project name="Middlegen Hibernate" default="compile" basedir="../.">
       <property file=".././build.properties"/>
       <property name="hibernate.cascade"    value="all" />
       <property name="package"              value="org.ultimania.model" />
       <property name="gen.xdoclet-tag"      value="false" />
       <property name="gui"                  value="true" />
       <property name="jdbc.jar"             value="C:\Documents and Settings\jamal\Mes documents\Appli\springmvc4-code\mvc-37\lib\mysql-connector-java-3.1.9-bin.jar" />
       <property name="database.driver"      value="com.mysql.jdbc.Driver" />
       <property name="lib.dir"              value="/C:/Documents and Settings/jamal/Mes documents/LOGICIELS/wtp-all-in-one-sdk-R-1.5.0-200606281455-win32/eclipse/plugins/net.sf.middlegen_2.1.91/lib/" />
       <property name="database.url"         value="jdbc:mysql://localhost/dbpersonnes" />
       <property name="database.userid"      value="root" />
       <property name="database.password"    value="" />
       <property name="database.schema"      value="" />
       <property name="database.catalog"     value="" />
       <property name="dest.dir"             value="WEB-INF/src" />
     
       <target name="init" depends="prepare,fail-if-no-middlegen,fail-if-no-hibernate,fail-if-no-hibernate-ext">
     
         <taskdef
            name="middlegen"
            classname="middlegen.MiddlegenTask"
            classpathref="middlegen.classpath"
         />
     
         <taskdef
            name="hbm2java"
            classname="net.sf.hibernate.tool.hbm2java.Hbm2JavaTask"
            classpathref="hibernate-ext.classpath"
         />
     
        <mkdir dir="${dest.dir}"/>
     
       </target>
     
       <target name="prepare">
     
         <path id="middlegen.classpath">
            <pathelement path="${jdbc.jar}"/>
            <fileset dir="${lib.dir}" includes="*.jar"/>
         </path>
     
         <path id="hibernate-ext.classpath">
           <fileset dir="${lib.dir}"           includes="*.jar"/>
         </path>
     
         <available property="middlegen" classname="middlegen.MiddlegenTask" classpathref="middlegen.classpath"/>
         <available property="hibernate" classname="net.sf.hibernate.Hibernate" classpathref="hibernate-ext.classpath"/>
         <available property="hibernate-ext" classname="net.sf.hibernate.tool.hbm2java.Hbm2JavaTask" classpathref="hibernate-ext.classpath"/>
     
     
       </target>
     
       <target name="fail-if-no-middlegen" unless="middlegen">
          <fail>
          Middlegen is not found. Please install Middlegen.
          </fail>
       </target>
     
       <target name="fail-if-no-hibernate" unless="hibernate">
          <fail>
          Hibernate is not found. Please install Hibernate.
          </fail>
       </target>
     
       <target name="fail-if-no-hibernate-ext" unless="hibernate-ext">
          <fail>
          Hibernate-Extension is not found. Please install Hibernate-Extenstion.
          </fail>
       </target>
     
       <target name="gen-hbm" depends="init">
     
        <middlegen
             appname="org.ultimania.model"
             prefsdir="."
             gui="${gui}"
             databaseurl="${database.url}"
             driver="${database.driver}"
             username="${database.userid}"
             password="${database.password}"
             schema="${database.schema}"
             catalog="${database.catalog}"
          >
             <hibernate
             	version="3.0"
                destination="${dest.dir}"
                package="${package}"
                genXDocletTags="${gen.xdoclet-tag}"
           	    standardCascade="${hibernate.cascade}"
    	    javaTypeMapper="middlegen.plugins.hibernate.HibernateJavaTypeMapper"
    	 />
    	 <table name="personnes" />
        </middlegen>
      </target>
     
      <target name="gen-java" depends="gen-hbm">
        <hbm2java output="${dest.dir}">
          <fileset dir="${dest.dir}">
            <include name="**/*.hbm.xml" />
          </fileset>
        </hbm2java>
      </target>
     
      <target name="compile" depends="gen-java">
      </target>
     
    </project>
    mais il me semble qu'il intervient plus une fois les fichiers hbm sont crees

    merci

  5. #5
    Membre Expert
    Homme Profil pro
    Directeur technique
    Inscrit en
    Janvier 2007
    Messages
    1 348
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Directeur technique

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 348
    Par défaut
    Citation Envoyé par jamalmoundir
    merci pour ta reponse,
    mais j'ai bien hibernate3.jar dans mon classpath ,au faite je travaille avec eclipse il suffit de faire build path -> configure build path puis rajouter les jar qu'il faut.
    Absolument pas ... Ca c'est pour la compilation d'Eclipse, rien à voir avec le déploiement Tomcat....
    Sujet traité maintes et maintes fois ici ...

  6. #6
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2005
    Messages
    163
    Détails du profil
    Informations personnelles :
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations forums :
    Inscription : Avril 2005
    Messages : 163
    Par défaut
    j'ai pas compris ce que tu veux dire, le probleme c'est que j'avais la meme application qui marche avec Ibatis, j'ai touché ni au classpath ni rien j'ai juste changer la couche DAO et les fichiers de configuration.
    Ben j'ai jamais fait de Spring+Hibernate mais NoClassDefFoundError c'est assez clair comme erreur, c'est qu'il te manque le jar Hibernate dans le classpath de ta webapp (WEB-INF/lib)
    tu peux me reexpliquer ce qu'a été dit maintes et maintes fois.
    merci

  7. #7
    Membre Expert
    Homme Profil pro
    Directeur technique
    Inscrit en
    Janvier 2007
    Messages
    1 348
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Directeur technique

    Informations forums :
    Inscription : Janvier 2007
    Messages : 1 348
    Par défaut
    Ben je peux répéter oui (même si une recherche de NoClassDefFound te répondrait surement). Je l'ai d'ailleurs fait quelques lignes plus haut : il te manque le jar Hibernate dans le répertoire WEB-INF/lib de ta webapp sous Tomcat ...

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Probleme maven pom.xml Spring Hibernate
    Par shenzy dans le forum Spring
    Réponses: 1
    Dernier message: 17/01/2011, 09h55
  2. [Spring-Hibernate] Probleme de session
    Par Vire7777 dans le forum Hibernate
    Réponses: 1
    Dernier message: 08/11/2010, 15h12
  3. Réponses: 2
    Dernier message: 11/01/2010, 11h37
  4. Réponses: 2
    Dernier message: 29/11/2007, 15h25
  5. [Data] Probleme Spring Hibernate
    Par jamalmoundir dans le forum Spring
    Réponses: 1
    Dernier message: 26/06/2007, 09h09

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo