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

Persistance des données Java Discussion :

Problème d'intégration de ehcache dans Spring


Sujet :

Persistance des données Java

  1. #1
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2013
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2013
    Messages : 29
    Points : 13
    Points
    13
    Par défaut Problème d'intégration de ehcache dans Spring
    Bonjour,

    Je suis actuellement dans une impasse. En effet, je cherche à intégrer ehcache avec Spring 2.0.5.

    Voici donc comment je m'y suis pris :

    Configuration Spring :
    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
    <?xml version="1.0" encoding="UTF-8"?>
    <beans 
    	xmlns="http://www.springframework.org/schema/beans" 
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
    	xmlns:tx="http://www.springframework.org/schema/tx"
    	xsi:schemaLocation="
    		http://www.springframework.org/schema/beans 
    		http://www.springframework.org/schema/beans/spring-beans-2.0.xsd 
    		http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring
    		http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd
    		http://www.springframework.org/schema/tx 
    		http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
     
    	<!--  Cache de second niveau : ehcache -->
    	<ehcache:annotation-driven cache-manager="ehCacheManager" />
        <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
        	<property name="configLocation"  value="ehcache.xml"/>
    	</bean>
     
    	<!-- couches applicatives -->
    	<bean id="dao" class="dao.Dao" />
    	<bean id="service" class="service.Service">
    		<property name="dao" ref="dao" />
    	</bean>
     
    	<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
    		<property name="dataSource" ref="dataSource" />
    		<property name="jpaVendorAdapter">
    			<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
    				<!-- 
    					<property name="showSql" value="true" />
    				-->
    				<property name="databasePlatform" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
    				<property name="generateDdl" value="true" />
    			</bean>
    		</property>
    		<property name="loadTimeWeaver">
    			<bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver" />
    		</property>
    	</bean>
     
    	<!-- la source de donnéees DBCP -->
    	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    		<property name="driverClassName" value="com.mysql.jdbc.Driver" />
    		<property name="url" value="jdbc:mysql://localhost:3306/jpaTest" />
    		<property name="username" value="root" />
    		<property name="password" value="" />
    	</bean>
     
    	<!-- le gestionnaire de transactions -->
    	<tx:annotation-driven transaction-manager="txManager" />
    	<bean id="txManager" class="org.springframework.orm.jpa.JpaTransactionManager">
    		<property name="entityManagerFactory" ref="entityManagerFactory" />
    	</bean>
     
    	<!-- traduction des exceptions -->
    	<bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />
     
    	<!-- persistence -->
    	<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
     
    </beans>
    Configuration ehcache :
    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
    <?xml version="1.0" encoding="UTF-8"?>
    <ehcache 
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd" 
        updateCheck="false">
     
        <diskStore path="java.io.tmpdir/Buggup" />
     
        <defaultCache
        	maxElementsInMemory="10000" 
    	    eternal="false" 
    	    timeToIdleSeconds="120" 
    	    timeToLiveSeconds="120" 
    	    overflowToDisk="true" 
    	    diskSpoolBufferSizeMB="30" 
    	    maxElementsOnDisk="10000000" 
    	    diskPersistent="false" 
    	    diskExpiryThreadIntervalSeconds="120" 
    	    memoryStoreEvictionPolicy="LRU" /> 
     
        <cache 
        	name="personneCache" 
            maxElementsInMemory="100000" 
            maxElementsOnDisk="10000000" 
            eternal="true" 
            overflowToDisk="true" 
            diskSpoolBufferSizeMB="20" 
            diskPersistent="false"
            timeToIdleSeconds="0" 
            timeToLiveSeconds="300"
            memoryStoreEvictionPolicy="LRU" />
     
        <cache 
        	name="elementCache" 
        	maxElementsInMemory="100000" 
            maxElementsOnDisk="10000000" 
            eternal="true" 
            overflowToDisk="true" 
            diskSpoolBufferSizeMB="20" 
            diskPersistent="false"
            timeToIdleSeconds="0" 
            timeToLiveSeconds="300"
            memoryStoreEvictionPolicy="LRU" />
     
    </ehcache>
    Et voici l'ensemble de mes libraires :
    Cf PJ - Sans titrelib.png

    Ensuite, lorsque j'exécute mon code, voici l'erreur qui est soulevée :

    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
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@3f9b12fb: display name [org.springframework.context.support.ClassPathXmlApplicationContext@3f9b12fb]; startup date [Tue Jun 25 17:11:05 CEST 2013]; root of context hierarchy
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring-config.xml]
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring-config.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V
    Caused by: java.lang.NoSuchMethodError: org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Lorg/w3c/dom/Element;)V
    	at com.googlecode.ehcache.annotations.config.AnnotationDrivenEhCacheBeanDefinitionParser.parse(AnnotationDrivenEhCacheBeanDefinitionParser.java:76)
    	at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1114)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1104)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:133)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:90)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173)
    	at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112)
    	at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
    	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
    	at client.Api.init(Api.java:80)
    	at sun.applet.AppletPanel.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Savez-vous ou je me serais trompé dans ma configuration ?

    Merci d'avance.
    Images attachées Images attachées  

  2. #2
    Membre chevronné Avatar de jeffray03
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2008
    Messages
    1 501
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2008
    Messages : 1 501
    Points : 2 120
    Points
    2 120
    Par défaut
    Salut
    peux-tu nous donner le code de ton Api.java, la line 80 est interessante.
    Eric

  3. #3
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2013
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2013
    Messages : 29
    Points : 13
    Points
    13
    Par défaut
    C'est la ligne : ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-config.xml");
    Je pense ! Et c'est normal vu que c'est lors de l'initialisation de spring.

  4. #4
    Membre chevronné Avatar de jeffray03
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2008
    Messages
    1 501
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2008
    Messages : 1 501
    Points : 2 120
    Points
    2 120
    Par défaut
    NoSuchMethodError veut en principe dire que tu utilises 2 versions differentes de Spring dans ton Application, essaies de verifier cela.
    Merci.

  5. #5
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2013
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2013
    Messages : 29
    Points : 13
    Points
    13
    Par défaut
    J'ai migré vers spring 3.1.
    Sans le cache mon application fonctionne sans problème donc la configuration est bonne.

    J'ai alors remis le cache. Et j'ai du changer au-dessus de chacunes des méthodes de ma classe services :

    Les annotations suivantes :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    @Cacheable(cacheName = "elementCache")
    Par celles-ci :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    @Cacheable(value = "elementCache")
    Ensuite je lance mon application, et voici l'erreur qui m'est retournée :

    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
    26-06-2013 10:03:26:742 0    DEBUG org.springframework.core.env.StandardEnvironment  - Initializing new StandardEnvironment
    26-06-2013 10:03:26:749 7    DEBUG org.springframework.core.env.StandardEnvironment  - Adding [systemProperties] PropertySource with lowest search precedence
    26-06-2013 10:03:26:749 7    DEBUG org.springframework.core.env.StandardEnvironment  - Adding [systemEnvironment] PropertySource with lowest search precedence
    26-06-2013 10:03:26:749 7    DEBUG org.springframework.core.env.StandardEnvironment  - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
    26-06-2013 10:03:26:755 13   INFO  org.springframework.context.support.ClassPathXmlApplicationContext  - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@670d6e40: startup date [Wed Jun 26 10:03:26 CEST 2013]; root of context hierarchy
    26-06-2013 10:03:26:835 93   DEBUG org.springframework.core.env.StandardEnvironment  - Initializing new StandardEnvironment
    26-06-2013 10:03:26:836 94   DEBUG org.springframework.core.env.StandardEnvironment  - Adding [systemProperties] PropertySource with lowest search precedence
    26-06-2013 10:03:26:836 94   DEBUG org.springframework.core.env.StandardEnvironment  - Adding [systemEnvironment] PropertySource with lowest search precedence
    26-06-2013 10:03:26:836 94   DEBUG org.springframework.core.env.StandardEnvironment  - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
    26-06-2013 10:03:26:837 95   DEBUG org.springframework.core.env.StandardEnvironment  - Initializing new StandardEnvironment
    26-06-2013 10:03:26:837 95   DEBUG org.springframework.core.env.StandardEnvironment  - Adding [systemProperties] PropertySource with lowest search precedence
    26-06-2013 10:03:26:838 96   DEBUG org.springframework.core.env.StandardEnvironment  - Adding [systemEnvironment] PropertySource with lowest search precedence
    26-06-2013 10:03:26:838 96   DEBUG org.springframework.core.env.StandardEnvironment  - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
    26-06-2013 10:03:26:853 111  INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader  - Loading XML bean definitions from class path resource [spring-config.xml]
    26-06-2013 10:03:26:865 123  DEBUG org.springframework.beans.factory.xml.DefaultDocumentLoader  - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
    26-06-2013 10:03:26:890 148  DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver  - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/beans/spring-beans-3.0.xsd]
    26-06-2013 10:03:26:890 148  DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver  - Loading schema mappings from [META-INF/spring.schemas]
    26-06-2013 10:03:26:897 155  DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver  - Loaded schema mappings: {http://www.springframework.org/schema/oxm/spring-oxm-3.0.xsd=org/springframework/oxm/config/spring-oxm-3.0.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-3.1.xsd, http://www.springframework.org/schema/jms/spring-jms-3.0.xsd=org/springframework/jms/config/spring-jms-3.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd=org/springframework/web/servlet/config/spring-mvc-3.1.xsd, http://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/config/spring-task-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-3.1.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd, http://www.springframework.org/schema/cache/spring-cache.xsd=org/springframework/cache/config/spring-cache-3.1.xsd, http://www.springframework.org/schema/aop/spring-aop-3.0.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, http://www.springframework.org/schema/task/spring-task-3.1.xsd=org/springframework/scheduling/config/spring-task-3.1.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/oxm/spring-oxm.xsd=org/springframework/oxm/config/spring-oxm-3.1.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd=org/springframework/jdbc/config/spring-jdbc-3.1.xsd, http://www.springframework.org/schema/tool/spring-tool-3.1.xsd=org/springframework/beans/factory/xml/spring-tool-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee-3.1.xsd=org/springframework/ejb/config/spring-jee-3.1.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd=org/springframework/web/servlet/config/spring-mvc-3.0.xsd, http://www.springframework.org/schema/beans/spring-beans-3.0.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://www.springframework.org/schema/task/spring-task-3.0.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd=org/springframework/jdbc/config/spring-jdbc-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.0.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-3.1.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-3.0.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.1.xsd=org/springframework/transaction/config/spring-tx-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/context/spring-context-3.1.xsd=org/springframework/context/config/spring-context-3.1.xsd, http://www.springframework.org/schema/util/spring-util-3.1.xsd=org/springframework/beans/factory/xml/spring-util-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang-3.1.xsd=org/springframework/scripting/config/spring-lang-3.1.xsd, http://www.springframework.org/schema/cache/spring-cache-3.1.xsd=org/springframework/cache/config/spring-cache-3.1.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-3.1.xsd, http://www.springframework.org/schema/jms/spring-jms-2.5.xsd=org/springframework/jms/config/spring-jms-2.5.xsd, http://www.springframework.org/schema/oxm/spring-oxm-3.1.xsd=org/springframework/oxm/config/spring-oxm-3.1.xsd, http://www.springframework.org/schema/jms/spring-jms.xsd=org/springframework/jms/config/spring-jms-3.1.xsd, http://www.springframework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-aop-2.5.xsd, http://www.springframework.org/schema/mvc/spring-mvc.xsd=org/springframework/web/servlet/config/spring-mvc-3.1.xsd, http://www.springframework.org/schema/jms/spring-jms-3.1.xsd=org/springframework/jms/config/spring-jms-3.1.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-3.1.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop-3.1.xsd=org/springframework/aop/config/spring-aop-3.1.xsd, http://www.springframework.org/schema/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/context/spring-context-3.0.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-3.1.xsd, http://www.springframework.org/schema/util/spring-util-3.0.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd}
    26-06-2013 10:03:26:900 158  DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver  - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd
    26-06-2013 10:03:26:954 212  DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver  - Trying to resolve XML entity with public id [null] and system id [http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd]
    26-06-2013 10:03:27:111 369  DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver  - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/tool/spring-tool-2.5.xsd]
    26-06-2013 10:03:27:112 370  DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver  - Found XML schema [http://www.springframework.org/schema/tool/spring-tool-2.5.xsd] in classpath: org/springframework/beans/factory/xml/spring-tool-2.5.xsd
    26-06-2013 10:03:27:117 375  DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver  - Trying to resolve XML entity with public id [null] and system id [http://www.springframework.org/schema/tx/spring-tx-3.0.xsd]
    26-06-2013 10:03:27:118 376  DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver  - Found XML schema [http://www.springframework.org/schema/tx/spring-tx-3.0.xsd] in classpath: org/springframework/transaction/config/spring-tx-3.0.xsd
    26-06-2013 10:03:27:131 389  DEBUG org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader  - Loading bean definitions
    26-06-2013 10:03:27:148 406  DEBUG org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver  - Loaded NamespaceHandler mappings: {http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler, http://www.springframework.org/schema/mvc=org.springframework.web.servlet.config.MvcNamespaceHandler, http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler, http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler, http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler, http://www.springframework.org/schema/oxm=org.springframework.oxm.config.OxmNamespaceHandler, http://www.springframework.org/schema/jdbc=org.springframework.jdbc.config.JdbcNamespaceHandler, http://www.springframework.org/schema/cache=org.springframework.cache.config.CacheNamespaceHandler, http://www.springframework.org/schema/c=org.springframework.beans.factory.xml.SimpleConstructorNamespaceHandler, http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler, http://www.springframework.org/schema/jms=org.springframework.jms.config.JmsNamespaceHandler, http://www.springframework.org/schema/task=org.springframework.scheduling.config.TaskNamespaceHandler, http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler, http://www.springframework.org/schema/context=org.springframework.context.config.ContextNamespaceHandler}
    org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring]
    Offending resource: class path resource [spring-config.xml]
     
    	at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
    	at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
    	at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:316)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1416)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1409)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:243)
    	at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127)
    	at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93)
    	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
    	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    	at client.Api.init(Api.java:80)
    	at sun.applet.AppletPanel.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)

  6. #6
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2013
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2013
    Messages : 29
    Points : 13
    Points
    13
    Par défaut
    J'ai résolu le problème en ajoutant tout simplement les jar :

    ehcache-1.2.4.jar
    ehcache-spring-annotations-1.1.0.jar

    Mais j'en ai un autre (ça n'en fini plus vous allez me dire ! ^^)

    Voici l'erreur :

    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
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@67e38ec8: startup date [Wed Jun 26 10:37:20 CEST 2013]; root of context hierarchy
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring-config.xml]
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'dataSource' of type [class org.apache.commons.dbcp.BasicDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#2adc675' of type [class org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver#5ec02cb2' of type [class org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Building JPA container EntityManagerFactory for persistence unit 'jpa'
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Version - Hibernate EntityManager 3.2.0.CR3
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.2.0.CR3
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - hibernate.properties not found
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - Processing PersistenceUnitInfo [
    	name: jpa
    	...]
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Droit
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Element
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Personne
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 @Embeddable: entites.Pers_elem_droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Configuration - Reading mappings from resource: META-INF/orm.xml
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - [PersistenceUnit: jpa] no META-INF/orm.xml found
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Droit on table droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Element on table element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Personne
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Personne on table personne
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: entites.Element.elementsFils -> element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: entites.Personne.elementsCrees -> element
    [thread applet-client.Api.class] INFO org.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
    [thread applet-client.Api.class] INFO org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider - Using provided datasource
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - RDBMS: MySQL, version: 5.1.33-community-log
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.5 ( $Date: 2007-03-01 00:01:06 +0100 (Thu, 01 Mar 2007) $, $Revision: 6329 $ )
    [thread applet-client.Api.class] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
    [thread applet-client.Api.class] INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
    [thread applet-client.Api.class] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    [thread applet-client.Api.class] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Cache provider: org.hibernate.cache.NoCacheProvider
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - Running hbm2ddl schema update
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - fetching database metadata
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - updating schema
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.droit
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, libelle_droit, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [primary]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.element
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, date_creation, level, element_parent, taille, extention, type, date_modification, nom, createur, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: [fk9ce31efc92c5ecbf, fk9ce31efcedda5caf]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [fk9ce31efc92c5ecbf, primary, fk9ce31efcedda5caf]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.pers_elem_droit
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [element_id, personne_id, droit_id]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: [fk700d02c5fc57bab0, fk700d02c568c7a284, fk700d02c53862f630]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [fk700d02c5fc57bab0, fk700d02c568c7a284, primary, fk700d02c53862f630]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.personne
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [prenom, id, username, statut, entreprise, password, nom, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [username, primary]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - schema update complete
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'entityManagerFactory' of type [class org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a440543: defining beans [org.springframework.aop.config.internalAutoProxyCreator,com.googlecode.ehcache.annotations.key.CachingReflectionHelper,com.googlecode.ehcache.annotations.key.ListCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.HashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.MessageDigestCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.ReflectionHashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.StringCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0,com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0,com.googlecode.ehcache.annotations.interceptor.EhCacheInterceptor#0,com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor,cacheManager,dao,service,entityManagerFactory,dataSource,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]; root of factory hierarchy
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a440543: defining beans [org.springframework.aop.config.internalAutoProxyCreator,com.googlecode.ehcache.annotations.key.CachingReflectionHelper,com.googlecode.ehcache.annotations.key.ListCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.HashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.MessageDigestCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.ReflectionHashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.StringCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0,com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0,com.googlecode.ehcache.annotations.interceptor.EhCacheInterceptor#0,com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor,cacheManager,dao,service,entityManagerFactory,dataSource,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]; root of factory hierarchy
    [thread applet-client.Api.class] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'jpa'
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryImpl - closing
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.key.CachingReflectionHelper': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0' while setting bean property 'cacheAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0': Cannot resolve reference to bean 'ehCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    	at client.Api.init(Api.java:80)
    	at sun.applet.AppletPanel.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0' while setting bean property 'cacheAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0': Cannot resolve reference to bean 'ehCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    	at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:86)
    	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:100)
    	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:86)
    	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
    	at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
    	at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1461)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    	... 13 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0' while setting bean property 'cacheAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0': Cannot resolve reference to bean 'ehCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    	... 31 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0': Cannot resolve reference to bean 'ehCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    	... 41 more
    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    	... 51 more

  7. #7
    Membre chevronné Avatar de jeffray03
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2008
    Messages
    1 501
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2008
    Messages : 1 501
    Points : 2 120
    Points
    2 120
    Par défaut
    Salut, essaies de configurer comme ceci:
    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
    <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
      <property name="configLocation">
        <value>classpath:ehcache.xml</value>
      </property>
    </bean>
     
     
    <bean id="methodCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
      <property name="cacheManager">
        <ref local="cacheManager"/>
      </property>
      <property name="cacheName">
        <value>elementCache</value>
      </property>
      <property name="cacheName2">
        <value>personneCache</value>
      </property>
    </bean>

  8. #8
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2013
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2013
    Messages : 29
    Points : 13
    Points
    13
    Par défaut
    Ok je fais ça et je te redis si ça marche

  9. #9
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2013
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2013
    Messages : 29
    Points : 13
    Points
    13
    Par défaut
    Voici l'erreur que j'ai maintenant :

    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
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@67e38ec8: startup date [Wed Jun 26 10:47:39 CEST 2013]; root of context hierarchy
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring-config.xml]
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'dataSource' of type [class org.apache.commons.dbcp.BasicDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#d36bad6' of type [class org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver#4243e61' of type [class org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Building JPA container EntityManagerFactory for persistence unit 'jpa'
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Version - Hibernate EntityManager 3.2.0.CR3
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.2.0.CR3
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - hibernate.properties not found
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - Processing PersistenceUnitInfo [
    	name: jpa
    	...]
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Droit
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Element
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Personne
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 @Embeddable: entites.Pers_elem_droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Configuration - Reading mappings from resource: META-INF/orm.xml
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - [PersistenceUnit: jpa] no META-INF/orm.xml found
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Droit on table droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Element on table element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Personne
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Personne on table personne
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: entites.Element.elementsFils -> element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: entites.Personne.elementsCrees -> element
    [thread applet-client.Api.class] INFO org.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
    [thread applet-client.Api.class] INFO org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider - Using provided datasource
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - RDBMS: MySQL, version: 5.1.33-community-log
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.5 ( $Date: 2007-03-01 00:01:06 +0100 (Thu, 01 Mar 2007) $, $Revision: 6329 $ )
    [thread applet-client.Api.class] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
    [thread applet-client.Api.class] INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
    [thread applet-client.Api.class] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    [thread applet-client.Api.class] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Cache provider: org.hibernate.cache.NoCacheProvider
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - Running hbm2ddl schema update
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - fetching database metadata
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - updating schema
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.droit
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, libelle_droit, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [primary]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.element
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, date_creation, level, element_parent, taille, extention, type, date_modification, nom, createur, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: [fk9ce31efc92c5ecbf, fk9ce31efcedda5caf]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [fk9ce31efc92c5ecbf, primary, fk9ce31efcedda5caf]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.pers_elem_droit
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [element_id, personne_id, droit_id]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: [fk700d02c5fc57bab0, fk700d02c568c7a284, fk700d02c53862f630]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [fk700d02c5fc57bab0, fk700d02c568c7a284, primary, fk700d02c53862f630]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.personne
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [prenom, id, username, statut, entreprise, password, nom, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [username, primary]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - schema update complete
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'entityManagerFactory' of type [class org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@dd3826f: defining beans [cacheManager,methodCache,dao,service,entityManagerFactory,dataSource,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]; root of factory hierarchy
    [thread applet-client.Api.class] INFO org.springframework.cache.ehcache.EhCacheManagerFactoryBean - Initializing EHCache CacheManager
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@dd3826f: defining beans [cacheManager,methodCache,dao,service,entityManagerFactory,dataSource,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]; root of factory hierarchy
    [thread applet-client.Api.class] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'jpa'
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryImpl - closing
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in class path resource [spring-config.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from input stream. Initial cause was null:21: Element <defaultCache> does not allow attribute "diskSpoolBufferSizeMB".
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    	at client.Api.init(Api.java:80)
    	at sun.applet.AppletPanel.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: net.sf.ehcache.CacheException: Error configuring from input stream. Initial cause was null:21: Element <defaultCache> does not allow attribute "diskSpoolBufferSizeMB".
    	at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:147)
    	at net.sf.ehcache.CacheManager.parseConfiguration(CacheManager.java:249)
    	at net.sf.ehcache.CacheManager.init(CacheManager.java:202)
    	at net.sf.ehcache.CacheManager.<init>(CacheManager.java:184)
    	at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:104)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$6.run(AbstractAutowireCapableBeanFactory.java:1504)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1502)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
    	... 14 more
    Caused by: org.xml.sax.SAXException: null:21: Element <defaultCache> does not allow attribute "diskSpoolBufferSizeMB".
    	at net.sf.ehcache.config.BeanHandler.setAttribute(BeanHandler.java:225)
    	at net.sf.ehcache.config.BeanHandler.startElement(BeanHandler.java:80)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
    	at javax.xml.parsers.SAXParser.parse(Unknown Source)
    	at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:145)
    	... 22 more

  10. #10
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2013
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2013
    Messages : 29
    Points : 13
    Points
    13
    Par défaut
    J'ai supprimer les annotations générant l'erreur précédente ;

    Cependant j'ai ceci maintenant et vu que c'est ton code dont il parle, je ne sais pas quoi faire là :

    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
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@cb321c1: startup date [Wed Jun 26 10:51:03 CEST 2013]; root of context hierarchy
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring-config.xml]
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'dataSource' of type [class org.apache.commons.dbcp.BasicDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#45af76e7' of type [class org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver#2a75b6f' of type [class org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Building JPA container EntityManagerFactory for persistence unit 'jpa'
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Version - Hibernate EntityManager 3.2.0.CR3
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.2.0.CR3
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - hibernate.properties not found
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - Processing PersistenceUnitInfo [
    	name: jpa
    	...]
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Droit
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Element
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Personne
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 @Embeddable: entites.Pers_elem_droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Configuration - Reading mappings from resource: META-INF/orm.xml
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - [PersistenceUnit: jpa] no META-INF/orm.xml found
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Droit on table droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Element on table element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Personne
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Personne on table personne
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: entites.Element.elementsFils -> element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: entites.Personne.elementsCrees -> element
    [thread applet-client.Api.class] INFO org.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
    [thread applet-client.Api.class] INFO org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider - Using provided datasource
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - RDBMS: MySQL, version: 5.1.33-community-log
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.5 ( $Date: 2007-03-01 00:01:06 +0100 (Thu, 01 Mar 2007) $, $Revision: 6329 $ )
    [thread applet-client.Api.class] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
    [thread applet-client.Api.class] INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
    [thread applet-client.Api.class] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    [thread applet-client.Api.class] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Cache provider: org.hibernate.cache.NoCacheProvider
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - Running hbm2ddl schema update
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - fetching database metadata
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - updating schema
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.droit
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, libelle_droit, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [primary]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.element
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, date_creation, level, element_parent, taille, extention, type, date_modification, nom, createur, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: [fk9ce31efc92c5ecbf, fk9ce31efcedda5caf]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [fk9ce31efc92c5ecbf, primary, fk9ce31efcedda5caf]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.pers_elem_droit
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [element_id, personne_id, droit_id]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: [fk700d02c5fc57bab0, fk700d02c568c7a284, fk700d02c53862f630]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [fk700d02c5fc57bab0, fk700d02c568c7a284, primary, fk700d02c53862f630]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.personne
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [prenom, id, username, statut, entreprise, password, nom, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [username, primary]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - schema update complete
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'entityManagerFactory' of type [class org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@18ab6cbb: defining beans [cacheManager,methodCache,dao,service,entityManagerFactory,dataSource,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]; root of factory hierarchy
    [thread applet-client.Api.class] INFO org.springframework.cache.ehcache.EhCacheManagerFactoryBean - Initializing EHCache CacheManager
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@18ab6cbb: defining beans [cacheManager,methodCache,dao,service,entityManagerFactory,dataSource,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]; root of factory hierarchy
    [thread applet-client.Api.class] INFO org.springframework.cache.ehcache.EhCacheManagerFactoryBean - Shutting down EHCache CacheManager
    [thread applet-client.Api.class] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'jpa'
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryImpl - closing
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'methodCache' defined in class path resource [spring-config.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'cacheName2' of bean class [org.springframework.cache.ehcache.EhCacheFactoryBean]: Bean property 'cacheName2' is not writable or has an invalid setter method. Did you mean 'cacheName'?
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1396)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    	at client.Api.init(Api.java:80)
    	at sun.applet.AppletPanel.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'cacheName2' of bean class [org.springframework.cache.ehcache.EhCacheFactoryBean]: Bean property 'cacheName2' is not writable or has an invalid setter method. Did you mean 'cacheName'?
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1064)
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:924)
    	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76)
    	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1393)
    	... 15 more
    [EDIT] Je vois que l'on peux éviter le problème en enlevant :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    <property name="cacheName2">
              <value>personneCache</value>
    </property>
    Mais là je perd mon second cache :/

  11. #11
    Membre chevronné Avatar de jeffray03
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2008
    Messages
    1 501
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2008
    Messages : 1 501
    Points : 2 120
    Points
    2 120
    Par défaut
    salut
    enleve dans ta configuration-spring les 2 definitions:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    <bean id="methodCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
      <property name="cacheManager">
        <ref local="cacheManager"/>
      </property>
      <property name="cacheName">
        <value>elementCache</value>
      </property>
      <property name="cacheName2">
        <value>personneCache</value>
      </property>
    </bean>
    car tu as deja fait:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    ehcache:annotation-driven cache-manager="ehCacheManager" />
    et donnes nous l´erreur qui va se produire.
    Eric

  12. #12
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2013
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2013
    Messages : 29
    Points : 13
    Points
    13
    Par défaut
    J'enlève juste ça :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    <bean id="methodCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
      <property name="cacheManager">
        <ref local="cacheManager"/>
      </property>
      <property name="cacheName">
        <value>elementCache</value>
      </property>
      <property name="cacheName2">
        <value>personneCache</value>
      </property>
    </bean>
    ou bien ça :

    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
     
    <!--  Cache de second niveau : ehcache -->
    	<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
    	  <property name="configLocation">
    	    <value>classpath:ehcache.xml</value>
    	  </property>
    	</bean>
     
     
    	<bean id="methodCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
    	  <property name="cacheManager">
    	    <ref local="cacheManager"/>
    	  </property>
    	  <property name="cacheName">
    	    <value>elementCache</value>
    	  </property>
    	</bean>
    ?

  13. #13
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2013
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2013
    Messages : 29
    Points : 13
    Points
    13
    Par défaut
    Voici la config :

    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
    <?xml version="1.0" encoding="UTF-8"?>
    <beans 
    	xmlns="http://www.springframework.org/schema/beans" 
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
        xmlns:tx="http://www.springframework.org/schema/tx"
    	xsi:schemaLocation="
    		http://www.springframework.org/schema/beans 
         	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
         	http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring
         	http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.2.xsd
         	http://www.springframework.org/schema/tx 
    		http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
     
    	<!--  Cache de second niveau : ehcache -->
    	<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
    	  <property name="configLocation">
    	    <value>classpath:ehcache.xml</value>
    	  </property>
    	</bean>
     
    	<ehcache:annotation-driven cache-manager="ehCacheManager" />
     
    	<!-- couches applicatives -->
    	<bean id="dao" class="dao.Dao" />
    	<bean id="service" class="service.Service">
    		<property name="dao" ref="dao" />
    	</bean>
     
    	<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
    		<property name="dataSource" ref="dataSource" />
    		<property name="jpaVendorAdapter">
    			<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
    				<!-- 
    					<property name="showSql" value="true" />
    				-->
    				<property name="databasePlatform" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
    				<property name="generateDdl" value="true" />
    			</bean>
    		</property>
    		<property name="loadTimeWeaver">
    			<bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver" />
    		</property>
     
    	</bean>
     
    	<!-- la source de donnéees DBCP -->
    	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    		<property name="driverClassName" value="com.mysql.jdbc.Driver" />
    		<property name="url" value="jdbc:mysql://localhost:3306/jpaTest" />
    		<property name="username" value="root" />
    		<property name="password" value="" />
    	</bean>
     
    	<!-- le gestionnaire de transactions -->
    	<tx:annotation-driven transaction-manager="txManager" />
    	<bean id="txManager" class="org.springframework.orm.jpa.JpaTransactionManager">
    		<property name="entityManagerFactory" ref="entityManagerFactory" />
    	</bean>
     
    	<!-- traduction des exceptions -->
    	<bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />
     
    	<!-- persistence -->
    	<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
     
    </beans>
    et l'erreur :

    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
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
     
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@70dddf46: startup date [Wed Jun 26 11:25:27 CEST 2013]; root of context hierarchy
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring-config.xml]
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'dataSource' of type [class org.apache.commons.dbcp.BasicDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#bac7d31' of type [class org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver#694f21f3' of type [class org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Building JPA container EntityManagerFactory for persistence unit 'jpa'
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Version - Hibernate EntityManager 3.2.0.CR3
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.2.0.CR3
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - hibernate.properties not found
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - Processing PersistenceUnitInfo [
    	name: jpa
    	...]
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Droit
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Element
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Personne
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 @Embeddable: entites.Pers_elem_droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Configuration - Reading mappings from resource: META-INF/orm.xml
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - [PersistenceUnit: jpa] no META-INF/orm.xml found
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Droit on table droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Element on table element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Personne
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Personne on table personne
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: entites.Element.elementsFils -> element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: entites.Personne.elementsCrees -> element
    [thread applet-client.Api.class] INFO org.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
    [thread applet-client.Api.class] INFO org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider - Using provided datasource
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - RDBMS: MySQL, version: 5.1.33-community-log
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.5 ( $Date: 2007-03-01 00:01:06 +0100 (Thu, 01 Mar 2007) $, $Revision: 6329 $ )
    [thread applet-client.Api.class] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
    [thread applet-client.Api.class] INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
    [thread applet-client.Api.class] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    [thread applet-client.Api.class] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Cache provider: org.hibernate.cache.NoCacheProvider
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - Running hbm2ddl schema update
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - fetching database metadata
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - updating schema
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.droit
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, libelle_droit, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [primary]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.element
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, date_creation, level, element_parent, taille, extention, type, date_modification, nom, createur, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: [fk9ce31efc92c5ecbf, fk9ce31efcedda5caf]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [fk9ce31efc92c5ecbf, primary, fk9ce31efcedda5caf]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.pers_elem_droit
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [element_id, personne_id, droit_id]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: [fk700d02c5fc57bab0, fk700d02c568c7a284, fk700d02c53862f630]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [fk700d02c5fc57bab0, fk700d02c568c7a284, primary, fk700d02c53862f630]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.personne
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [prenom, id, username, statut, entreprise, password, nom, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [username, primary]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - schema update complete
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'entityManagerFactory' of type [class org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4bcdf76a: defining beans [org.springframework.aop.config.internalAutoProxyCreator,com.googlecode.ehcache.annotations.key.CachingReflectionHelper,com.googlecode.ehcache.annotations.key.ListCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.HashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.MessageDigestCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.ReflectionHashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.StringCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0,com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0,com.googlecode.ehcache.annotations.interceptor.EhCacheInterceptor#0,com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor,cacheManager,dao,service,entityManagerFactory,dataSource,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]; root of factory hierarchy
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4bcdf76a: defining beans [org.springframework.aop.config.internalAutoProxyCreator,com.googlecode.ehcache.annotations.key.CachingReflectionHelper,com.googlecode.ehcache.annotations.key.ListCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.HashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.MessageDigestCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.ReflectionHashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.StringCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0,com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0,com.googlecode.ehcache.annotations.interceptor.EhCacheInterceptor#0,com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor,cacheManager,dao,service,entityManagerFactory,dataSource,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]; root of factory hierarchy
    [thread applet-client.Api.class] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'jpa'
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryImpl - closing
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.key.CachingReflectionHelper': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0' while setting bean property 'cacheAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0': Cannot resolve reference to bean 'ehCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    	at client.Api.init(Api.java:80)
    	at sun.applet.AppletPanel.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0' while setting bean property 'cacheAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0': Cannot resolve reference to bean 'ehCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    	at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:86)
    	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:100)
    	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:86)
    	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
    	at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
    	at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1461)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    	... 13 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0' while setting bean property 'cacheAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0': Cannot resolve reference to bean 'ehCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    	... 31 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0': Cannot resolve reference to bean 'ehCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    	... 41 more
    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    	... 51 more
    Sachant qu'avant, grâce à ton code j'avais cette config :

    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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <beans 
    	xmlns="http://www.springframework.org/schema/beans" 
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
        xmlns:tx="http://www.springframework.org/schema/tx"
    	xsi:schemaLocation="
    		http://www.springframework.org/schema/beans 
         	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
         	http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring
         	http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.2.xsd
         	http://www.springframework.org/schema/tx 
    		http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
     
    	<!--  Cache de second niveau : ehcache -->
    	<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
    	  <property name="configLocation">
    	    <value>classpath:ehcache.xml</value>
    	  </property>
    	</bean>
     
     
    	<bean id="methodCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
    	  <property name="cacheManager">
    	    <ref local="cacheManager"/>
    	  </property>
    	  <property name="cacheName">
    	    <value>elementCache</value>
    	  </property>
    	  <property name="cacheName2">
    	    <value>personneCache</value>
    	  </property>
    	</bean>
     
    	<!-- couches applicatives -->
    	<bean id="dao" class="dao.Dao" />
    	<bean id="service" class="service.Service">
    		<property name="dao" ref="dao" />
    	</bean>
     
    	<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
    		<property name="dataSource" ref="dataSource" />
    		<property name="jpaVendorAdapter">
    			<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
    				<!-- 
    					<property name="showSql" value="true" />
    				-->
    				<property name="databasePlatform" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
    				<property name="generateDdl" value="true" />
    			</bean>
    		</property>
    		<property name="loadTimeWeaver">
    			<bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver" />
    		</property>
     
    	</bean>
     
    	<!-- la source de donnéees DBCP -->
    	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    		<property name="driverClassName" value="com.mysql.jdbc.Driver" />
    		<property name="url" value="jdbc:mysql://localhost:3306/jpaTest" />
    		<property name="username" value="root" />
    		<property name="password" value="" />
    	</bean>
     
    	<!-- le gestionnaire de transactions -->
    	<tx:annotation-driven transaction-manager="txManager" />
    	<bean id="txManager" class="org.springframework.orm.jpa.JpaTransactionManager">
    		<property name="entityManagerFactory" ref="entityManagerFactory" />
    	</bean>
     
    	<!-- traduction des exceptions -->
    	<bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />
     
    	<!-- persistence -->
    	<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
     
    </beans>
    et l'erreur suivante :

    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
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1ea00c48: startup date [Wed Jun 26 11:28:56 CEST 2013]; root of context hierarchy
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring-config.xml]
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'dataSource' of type [class org.apache.commons.dbcp.BasicDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#36cdb4f9' of type [class org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver#7b24638a' of type [class org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Building JPA container EntityManagerFactory for persistence unit 'jpa'
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Version - Hibernate EntityManager 3.2.0.CR3
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.2.0.CR3
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - hibernate.properties not found
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - Processing PersistenceUnitInfo [
    	name: jpa
    	...]
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Droit
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Element
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Personne
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 @Embeddable: entites.Pers_elem_droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Configuration - Reading mappings from resource: META-INF/orm.xml
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - [PersistenceUnit: jpa] no META-INF/orm.xml found
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Droit on table droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Element on table element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Personne
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Personne on table personne
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: entites.Element.elementsFils -> element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: entites.Personne.elementsCrees -> element
    [thread applet-client.Api.class] INFO org.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
    [thread applet-client.Api.class] INFO org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider - Using provided datasource
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - RDBMS: MySQL, version: 5.1.33-community-log
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.5 ( $Date: 2007-03-01 00:01:06 +0100 (Thu, 01 Mar 2007) $, $Revision: 6329 $ )
    [thread applet-client.Api.class] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
    [thread applet-client.Api.class] INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
    [thread applet-client.Api.class] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    [thread applet-client.Api.class] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Cache provider: org.hibernate.cache.NoCacheProvider
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - Running hbm2ddl schema update
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - fetching database metadata
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - updating schema
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.droit
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, libelle_droit, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [primary]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.element
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, date_creation, level, element_parent, taille, extention, type, date_modification, nom, createur, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: [fk9ce31efc92c5ecbf, fk9ce31efcedda5caf]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [fk9ce31efc92c5ecbf, primary, fk9ce31efcedda5caf]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.pers_elem_droit
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [element_id, personne_id, droit_id]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: [fk700d02c5fc57bab0, fk700d02c568c7a284, fk700d02c53862f630]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [fk700d02c5fc57bab0, fk700d02c568c7a284, primary, fk700d02c53862f630]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.personne
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [prenom, id, username, statut, entreprise, password, nom, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [username, primary]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - schema update complete
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'entityManagerFactory' of type [class org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6f1773e4: defining beans [cacheManager,methodCache,dao,service,entityManagerFactory,dataSource,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]; root of factory hierarchy
    [thread applet-client.Api.class] INFO org.springframework.cache.ehcache.EhCacheManagerFactoryBean - Initializing EHCache CacheManager
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6f1773e4: defining beans [cacheManager,methodCache,dao,service,entityManagerFactory,dataSource,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]; root of factory hierarchy
    [thread applet-client.Api.class] INFO org.springframework.cache.ehcache.EhCacheManagerFactoryBean - Shutting down EHCache CacheManager
    [thread applet-client.Api.class] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'jpa'
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryImpl - closing
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'methodCache' defined in class path resource [spring-config.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'cacheName2' of bean class [org.springframework.cache.ehcache.EhCacheFactoryBean]: Bean property 'cacheName2' is not writable or has an invalid setter method. Did you mean 'cacheName'?
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1396)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    	at client.Api.init(Api.java:80)
    	at sun.applet.AppletPanel.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'cacheName2' of bean class [org.springframework.cache.ehcache.EhCacheFactoryBean]: Bean property 'cacheName2' is not writable or has an invalid setter method. Did you mean 'cacheName'?
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1064)
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:924)
    	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76)
    	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1393)
    	... 15 more
    J'ai essayé de résoudre le problème : En enlevant un des deux caches.
    J'ai donc supprimé les lignes suivantes de la config :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    <property name="cacheName2">
    	    <value>personneCache</value>
    </property>
    Et là le programme fonctionne sans erreurs même si je ne suis pas sur que le cache reçoit bien les éléments que je récupère.
    Car je n'ai rien implémenté à part les annotations du type :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    @Cacheable(value = "elementCache")
    	public Element updateElement(Element element){ ...
     
    @Cacheable(value = "elementCache")
    	public Element getElementById (Integer elementId){ ...
     
    ...

  14. #14
    Membre chevronné Avatar de jeffray03
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2008
    Messages
    1 501
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2008
    Messages : 1 501
    Points : 2 120
    Points
    2 120
    Par défaut
    super

  15. #15
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2013
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2013
    Messages : 29
    Points : 13
    Points
    13
    Par défaut
    Tu ne sais pas comment faire donc pour que j'ai deux caches ?

    Et sais-tu comment je peux vérifier que le cache se remplis correctement ?
    Car comme je t'ai dit je n'ai mis que des annotations, c'est tout ce qu'il faut faire ou ai-je d'autres choses à ajouter ?

  16. #16
    Membre chevronné Avatar de jeffray03
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2008
    Messages
    1 501
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2008
    Messages : 1 501
    Points : 2 120
    Points
    2 120
    Par défaut
    en faisant :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
     
    @Cacheable(cacheName="cache1")
    methode()
    {
    }
     
    @Cacheable(cacheName="cache2")
    methode2()
    {
    }

  17. #17
    Membre chevronné Avatar de jeffray03
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2008
    Messages
    1 501
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2008
    Messages : 1 501
    Points : 2 120
    Points
    2 120
    Par défaut
    les 2 caches devraient etre defini dans ton fichier ehcache.xml bien sur.
    Eric

  18. #18
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2013
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2013
    Messages : 29
    Points : 13
    Points
    13
    Par défaut
    Et je n'ai rien à mettre en plus dans la config spring ?
    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
     
    <!--  Cache de second niveau : ehcache -->
    	<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
    	  <property name="configLocation">
    	    <value>classpath:ehcache.xml</value>
    	  </property>
    	</bean>
     
     
    	<bean id="methodCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
    	  <property name="cacheManager">
    	    <ref local="cacheManager"/>
    	  </property>
    	  <property name="cacheName">
    	    <value>elementCache</value>
    	  </property>
    	</bean>

  19. #19
    Membre chevronné Avatar de jeffray03
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2008
    Messages
    1 501
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Allemagne

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2008
    Messages : 1 501
    Points : 2 120
    Points
    2 120
    Par défaut
    non non, ceci suffit:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <ehcache:annotation-driven cache-manager="ehCacheManager" />

  20. #20
    Membre à l'essai
    Homme Profil pro
    Étudiant
    Inscrit en
    Mai 2013
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mai 2013
    Messages : 29
    Points : 13
    Points
    13
    Par défaut
    On s'est mal compris alors ^^.

    J'ai du laisser la config là et non faire avec :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <ehcache:annotation-driven cache-manager="ehCacheManager" />
    Car avec celle-ci j'obtiens cette erreur :

    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
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@2914db2a: startup date [Wed Jun 26 15:07:44 CEST 2013]; root of context hierarchy
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring-config.xml]
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'dataSource' of type [class org.apache.commons.dbcp.BasicDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#488821f2' of type [class org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver#616cbc11' of type [class org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Building JPA container EntityManagerFactory for persistence unit 'jpa'
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Version - Hibernate EntityManager 3.2.0.CR3
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.2.0.CR3
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - hibernate.properties not found
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - Processing PersistenceUnitInfo [
    	name: jpa
    	...]
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Droit
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Element
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 Entity bean: entites.Personne
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - found EJB3 @Embeddable: entites.Pers_elem_droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.Configuration - Reading mappings from resource: META-INF/orm.xml
    [thread applet-client.Api.class] INFO org.hibernate.ejb.Ejb3Configuration - [PersistenceUnit: jpa] no META-INF/orm.xml found
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Droit on table droit
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Element on table element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: entites.Personne
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity entites.Personne on table personne
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: entites.Element.elementsFils -> element
    [thread applet-client.Api.class] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: entites.Personne.elementsCrees -> element
    [thread applet-client.Api.class] INFO org.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
    [thread applet-client.Api.class] INFO org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider - Using provided datasource
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - RDBMS: MySQL, version: 5.1.33-community-log
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.5 ( $Date: 2007-03-01 00:01:06 +0100 (Thu, 01 Mar 2007) $, $Revision: 6329 $ )
    [thread applet-client.Api.class] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
    [thread applet-client.Api.class] INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
    [thread applet-client.Api.class] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    [thread applet-client.Api.class] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Cache provider: org.hibernate.cache.NoCacheProvider
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
    [thread applet-client.Api.class] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - Running hbm2ddl schema update
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - fetching database metadata
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - updating schema
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.droit
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, libelle_droit, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [primary]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.element
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, date_creation, level, element_parent, taille, extention, type, date_modification, nom, createur, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: [fk9ce31efc92c5ecbf, fk9ce31efcedda5caf]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [fk9ce31efc92c5ecbf, primary, fk9ce31efcedda5caf]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.pers_elem_droit
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [element_id, personne_id, droit_id]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: [fk700d02c5fc57bab0, fk700d02c568c7a284, fk700d02c53862f630]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [fk700d02c5fc57bab0, fk700d02c568c7a284, primary, fk700d02c53862f630]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: jpaTest.personne
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [prenom, id, username, statut, entreprise, password, nom, version]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [username, primary]
    [thread applet-client.Api.class] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - schema update complete
    [thread applet-client.Api.class] INFO org.springframework.context.support.ClassPathXmlApplicationContext - Bean 'entityManagerFactory' of type [class org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@20a6cee5: defining beans [org.springframework.aop.config.internalAutoProxyCreator,com.googlecode.ehcache.annotations.key.CachingReflectionHelper,com.googlecode.ehcache.annotations.key.ListCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.HashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.MessageDigestCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.ReflectionHashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.StringCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0,com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0,com.googlecode.ehcache.annotations.interceptor.EhCacheInterceptor#0,com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor,dao,service,entityManagerFactory,dataSource,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]; root of factory hierarchy
    [thread applet-client.Api.class] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@20a6cee5: defining beans [org.springframework.aop.config.internalAutoProxyCreator,com.googlecode.ehcache.annotations.key.CachingReflectionHelper,com.googlecode.ehcache.annotations.key.ListCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.HashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.MessageDigestCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.ReflectionHashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.StringCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0,com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0,com.googlecode.ehcache.annotations.interceptor.EhCacheInterceptor#0,com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor,dao,service,entityManagerFactory,dataSource,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txManager,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0]; root of factory hierarchy
    [thread applet-client.Api.class] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'jpa'
    [thread applet-client.Api.class] INFO org.hibernate.impl.SessionFactoryImpl - closing
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.key.CachingReflectionHelper': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0' while setting bean property 'cacheAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0': Cannot resolve reference to bean 'ehCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    	at client.Api.init(Api.java:80)
    	at sun.applet.AppletPanel.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0' while setting bean property 'pointcut'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0' while setting bean property 'cacheAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0': Cannot resolve reference to bean 'ehCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    	at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:86)
    	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:100)
    	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:86)
    	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
    	at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
    	at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1461)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    	... 13 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0': Cannot resolve reference to bean 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0' while setting bean property 'cacheAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0': Cannot resolve reference to bean 'ehCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    	... 31 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0': Cannot resolve reference to bean 'ehCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    	... 41 more
    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ehCacheManager' is defined
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    	... 51 more

+ Répondre à la discussion
Cette discussion est résolue.
Page 1 sur 2 12 DernièreDernière

Discussions similaires

  1. [ehcache] Problème d'intégration de ehcache dans Spring
    Par anthony22360 dans le forum Spring
    Réponses: 0
    Dernier message: 25/06/2013, 19h55
  2. [Data] problème d'integration de hibernate dans spring
    Par manu11 dans le forum Spring
    Réponses: 7
    Dernier message: 29/09/2009, 09h32
  3. [Struts] Intégration de struts dans spring
    Par khaigo dans le forum Spring Web
    Réponses: 1
    Dernier message: 08/06/2009, 10h31
  4. Problème d'intégration de PDF dans mon document LaTex
    Par joel88 dans le forum Tableaux - Graphiques - Images - Flottants
    Réponses: 6
    Dernier message: 17/04/2009, 10h41
  5. [XSL/JavaScript]problème d'intégration code JS dans le XSL
    Par Devil666 dans le forum Général JavaScript
    Réponses: 4
    Dernier message: 27/04/2005, 16h36

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