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

Hibernate Java Discussion :

Caused by: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 26; Element type "hibernate-configurati


Sujet :

Hibernate Java

  1. #1
    Membre habitué
    Femme Profil pro
    Inscrit en
    Mai 2012
    Messages
    360
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Mai 2012
    Messages : 360
    Points : 139
    Points
    139
    Par défaut Caused by: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 26; Element type "hibernate-configurati
    Bonjour,

    Après un certain temps sans l'avoir utilisé, j'essaie de me connecter sur une application que j'ai développé il y a quelques temps afin d'accéder aux données.

    Or j'obtiens ce message d'erreurs L'application pour le chemin de contexte /GestionHoraire n'a pas pu être démarrée sur l'interface. Je ne fait aucune modification depuis la dernière que je l'ai utilisé et qu'elle était fonctionnelle.

    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
    7 juin 2023 13:38:29 org.apache.catalina.core.ApplicationContext log
    INFO: Closing Spring root WebApplicationContext
    7 juin 2023 13:38:29 org.apache.catalina.core.ApplicationContext log
    INFO: Shutting down log4j
    7 juin 2023 13:38:42 org.apache.catalina.core.ApplicationContext log
    INFO: Set web app root system property: 'GestionHoraire' = [/usr/share/tomcat6/webapps/GestionHoraire/]
    7 juin 2023 13:38:42 org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    7 juin 2023 13:38:42 org.apache.catalina.core.StandardContext listenerStart
    GRAVE: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) Ã* l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from ServletContext resource [/WEB-INF/config/hibernate.cfg.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 26; Element type "hibernate-configuration" must be declared.
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
    	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
    	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
    	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
    	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
    	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
    	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
    	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    	at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
    	at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
    	at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
    	at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
    	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
    	at java.lang.Thread.run(Thread.java:636)
    Caused by: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 26; Element type "hibernate-configuration" must be declared.
    	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
    	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
    	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:387)
    	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:321)
    	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1932)
    	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:767)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1340)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook(XMLDocumentScannerImpl.java:1293)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3080)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:899)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:741)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
    	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
    	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:288)
    	at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
    	... 36 more
    7 juin 2023 13:38:42 org.apache.catalina.core.ApplicationContext log
    INFO: Closing Spring root WebApplicationContext
    7 juin 2023 13:38:42 org.apache.catalina.core.ApplicationContext log
    INFO: Shutting down log4j
    le fichier config/hibernate.cfg.xml ne semble pas contenir d'erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-configuration PUBLIC
    		"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
    		"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
        <session-factory>
            <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
            <property name="hibernate.connection.password">MAPR#2008</property>
            <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/gestionhoraire</property>
            <property name="hibernate.connection.username">root</property>
            <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
        </session-factory>
    </hibernate-configuration>
    Merci de votre aide sur le sujet

  2. #2
    Expert confirmé
    Homme Profil pro
    Inscrit en
    Septembre 2006
    Messages
    2 937
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Septembre 2006
    Messages : 2 937
    Points : 4 358
    Points
    4 358
    Par défaut
    Essayez avec https://hibernate.org/dtd/hibernate-configuration-3.0.dtd


  3. #3
    Membre habitué
    Femme Profil pro
    Inscrit en
    Mai 2012
    Messages
    360
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Mai 2012
    Messages : 360
    Points : 139
    Points
    139
    Par défaut
    Merci de votre retour.
    En changeant l'appel comme évoqué, le message d'erreur a évolue, il indique :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    GRAVE: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/config/applicationContext.xml]; nested exception is java.lang.IllegalStateException: AnnotationTransactionAttributeSource is only available on Java 1.5 and higher
    or le projet est en JRE1.8 est-ce normal, d'avoir cette stack trace?

    de plus voici le fichier applicationContext.xml du projet au cas ou :
    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
    <?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:aop="http://www.springframework.org/schema/aop"
        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://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
     
    	<bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />
     
    	<bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
    		<property name="sessionFactory" ref="sessionFactory" />
    	</bean>	
     
    	<bean id="sessionFactory"
    		class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    		<property name="annotatedClasses">
    			<list>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Absence</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Compteur</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Droit</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Fonction</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Jour</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Personne</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Semaine</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Service</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Unite</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Userlogin</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Perssemainecompt</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Roulement</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Uniteservice</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Moisdisp</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Ecartannee</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Heuresupppaye</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Soldevacance</value>
    			</list>
    		</property>
    		<property name="dataSource" ref="dataSource" />
    		<property name="hibernateProperties">
    			<props>
    				<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
    				<prop key="hibernate.connection.release_mode">auto</prop>
    				<prop key="hibernate.bytecode.provider">javassist</prop>
    				<prop key="hibernate.show_sql">false</prop>
    				<prop key="hibernate.cache.use_second_level_cache">false</prop>
    			</props>
    		</property>
    	</bean>
     
        <bean id="dataSource"
            class="org.springframework.jdbc.datasource.DriverManagerDataSource">
            <property name="driverClassName" value="com.mysql.jdbc.Driver" />
            <property name="url" value="jdbc:mysql://localhost:3306/gestionhoraire" />
            <property name="username" value="root" />
           <property name="password" value="" />
        </bean>
     
    	<bean id="transactionProxy" abstract="true"
    		class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
    		<property name="transactionManager">
    			<ref bean="transactionManager"/>
    		</property>
    		<property name="transactionAttributes">
    			<props>
    				<prop key="insert*">PROPAGATION_REQUIRED</prop>
    				<prop key="update*">PROPAGATION_REQUIRED</prop>
    				<prop key="save*">PROPAGATION_REQUIRED</prop>
    				<prop key="*">PROPAGATION_REQUIRED, readOnly</prop>
    			</props>
    		</property>
    	</bean>
     
    	<bean id="entityManagerFactory"
            class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
            <property name="persistenceUnitName" value="persistenceUnit" />
            <property name="dataSource" ref="dataSource" />
        </bean>   
     
    	<!-- bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
    		<property name="sessionFactory" ref="sessionFactory" />
    	</bean-->
     
    	<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    		<property name="sessionFactory" ref="sessionFactory"/>
    	</bean>
     
    	<bean id="transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate">
    		<property name="transactionManager" ref="transactionManager" />
    	</bean>
     
        <tx:annotation-driven transaction-manager="transactionManager" />
     
    </beans>

  4. #4
    Expert confirmé
    Homme Profil pro
    Inscrit en
    Septembre 2006
    Messages
    2 937
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Septembre 2006
    Messages : 2 937
    Points : 4 358
    Points
    4 358
    Par défaut
    "le projet est en JRE1.8" ... [FONT=Verdana, Amiko, sans-serif]mais encore ?[/FONT]

    [FONT=Verdana, Amiko, sans-serif][/FONT]les alertes faisant référence à Java 1.5 sont souvent causées par des settings incorrects lors du build qui conduisent l'environnement de compilation à utiliser 1.5 : la valeur par défaut.

    Donc vérifiez la configuration de votre project (Maven ? Graddle ? IDE ?) et soyez certain qu'il soit bien compilé avec target >= Java 8.

  5. #5
    Membre habitué
    Femme Profil pro
    Inscrit en
    Mai 2012
    Messages
    360
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Mai 2012
    Messages : 360
    Points : 139
    Points
    139
    Par défaut
    Merci beaucoup de votre réponse et de l'attention que vous apportez à ma demande.

    Je viens de replonger dans la configuration d'Eclipse (Mars) et j'ai cela comme configuration

    Nom : Configuration Eclipse.jpg
Affichages : 89
Taille : 532,5 Ko

    J'obtiens toujours le même message d'erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    Caused by: java.lang.IllegalStateException: AnnotationTransactionAttributeSource is only available on Java 1.5 and higher

    Honnêtement je ne vois pas pourquoi ...

    Merci encore de votre aide

  6. #6
    Expert confirmé
    Homme Profil pro
    Inscrit en
    Septembre 2006
    Messages
    2 937
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Septembre 2006
    Messages : 2 937
    Points : 4 358
    Points
    4 358
    Par défaut
    et les settings de Java Compiler ?

  7. #7
    Membre habitué
    Femme Profil pro
    Inscrit en
    Mai 2012
    Messages
    360
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Mai 2012
    Messages : 360
    Points : 139
    Points
    139
    Par défaut
    J'ai tout re-vérifier et le message d'erreur perdure

    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
     
    juin 14, 2023 7:21:40 PM org.apache.catalina.core.AprLifecycleListener init
    INFOS: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_351\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.8.0_351/bin/server;C:/Program Files/Java/jre1.8.0_351/bin;C:/Program Files/Java/jre1.8.0_351/lib/amd64;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\PuTTY\;C:\Program Files\Java\jdk1.8.0_202;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Users\Schrafy\AppData\Local\Microsoft\WindowsApps;C:\Users\Schrafy\AppData\Local\atom\bin;C:\Users\Schrafy\AppData\Local\Microsoft\WindowsApps;C:\Users\Schrafy\AppData\Roaming\npm;C:\Users\Schrafy\AppData\Local\Programs\Microsoft VS Code\bin;;D:\TRAVAIL\TOOLS\eclipse;;.
    juin 14, 2023 7:21:40 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
    AVERTISSEMENT: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:GestionHoraire' did not find a matching property.
    juin 14, 2023 7:21:41 PM org.apache.coyote.http11.Http11Protocol init
    INFOS: Initialisation de Coyote HTTP/1.1 sur http-8081
    juin 14, 2023 7:21:41 PM org.apache.catalina.startup.Catalina load
    INFOS: Initialization processed in 492 ms
    juin 14, 2023 7:21:41 PM org.apache.catalina.core.StandardService start
    INFOS: Démarrage du service Catalina
    juin 14, 2023 7:21:41 PM org.apache.catalina.core.StandardEngine start
    INFOS: Starting Servlet Engine: Apache Tomcat/6.0.47
    juin 14, 2023 7:21:41 PM org.apache.catalina.core.ApplicationContext log
    INFOS: Set web app root system property: 'GestionHoraire' = [D:\TRAVAIL\DEVELOPPEMENT_PROJETS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\GestionHoraire\]
    juin 14, 2023 7:21:41 PM org.apache.catalina.core.ApplicationContext log
    INFOS: Initializing Spring root WebApplicationContext
    juin 14, 2023 7:21:43 PM org.apache.catalina.core.StandardContext listenerStart
    GRAVE: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/config/applicationContext.xml]; nested exception is java.lang.IllegalStateException: AnnotationTransactionAttributeSource is only available on Java 1.5 and higher
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
    	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
    	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
    	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
    	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
    	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
    	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
    	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4276)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4779)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
    	at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
    	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
    	at org.apache.catalina.core.StandardServer.start(StandardServer.java:759)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.IllegalStateException: AnnotationTransactionAttributeSource is only available on Java 1.5 and higher
    	at org.springframework.transaction.config.TxNamespaceUtils.getAnnotationTransactionAttributeSourceClass(TxNamespaceUtils.java:43)
    	at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser$AopAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefinitionParser.java:115)
    	at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.parse(AnnotationDrivenBeanDefinitionParser.java:80)
    	at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)
    	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
    	... 28 more
     
    juin 14, 2023 7:21:43 PM org.apache.catalina.core.StandardContext start
    GRAVE: Error listenerStart
    juin 14, 2023 7:21:43 PM org.apache.catalina.core.StandardContext start
    GRAVE: Erreur de démarrage du contexte [/GestionHoraire] suite aux erreurs précédentes
    juin 14, 2023 7:21:43 PM org.apache.catalina.core.ApplicationContext log
    INFOS: Closing Spring root WebApplicationContext
    juin 14, 2023 7:21:43 PM org.apache.catalina.core.ApplicationContext log
    INFOS: Shutting down log4j
    juin 14, 2023 7:21:43 PM org.apache.coyote.http11.Http11Protocol start
    INFOS: Démarrage de Coyote HTTP/1.1 sur http-8081
    juin 14, 2023 7:21:43 PM org.apache.jk.common.ChannelSocket init
    INFOS: JK: ajp13 listening on /0.0.0.0:8009
    juin 14, 2023 7:21:43 PM org.apache.jk.server.JkMain start
    INFOS: Jk running ID=0 time=0/19  config=null
    juin 14, 2023 7:21:43 PM org.apache.catalina.startup.Catalina start
    INFOS: Server startup in 2500 ms


    Nom : Configuration Eclipse.jpg
Affichages : 72
Taille : 584,3 Ko

    Je vous remercie d'avance pour votre aide

  8. #8
    Modérateur
    Avatar de wax78
    Homme Profil pro
    Chef programmeur
    Inscrit en
    Août 2006
    Messages
    4 075
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Activité : Chef programmeur
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Août 2006
    Messages : 4 075
    Points : 7 981
    Points
    7 981
    Par défaut
    Je pense que tu as oublié de lire ce que JeitEmgie a dit
    (Les "ça ne marche pas", même écrits sans faute(s), vous porteront discrédit ad vitam æternam et malheur pendant 7 ans)

    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

  9. #9
    Membre habitué
    Femme Profil pro
    Inscrit en
    Mai 2012
    Messages
    360
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Mai 2012
    Messages : 360
    Points : 139
    Points
    139
    Par défaut
    oups, j'ai pas mis le bon documents.

    Au final, je vous les met tous au cas ou..

    Nom : Configuration Eclipse 1.jpg
Affichages : 68
Taille : 469,3 Ko

    --


    Nom : Configuration Eclipse 2.jpg
Affichages : 70
Taille : 413,9 Ko


    --

    Nom : Configuration Eclipse 3.jpg
Affichages : 70
Taille : 372,5 Ko



    Merci beaucoup de votre aide

  10. #10
    Expert confirmé
    Homme Profil pro
    Inscrit en
    Septembre 2006
    Messages
    2 937
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Septembre 2006
    Messages : 2 937
    Points : 4 358
    Points
    4 358
    Par défaut
    Vous mélangez probablement différentes versions de Spring : 2.x et 3.x.

  11. #11
    Membre habitué
    Femme Profil pro
    Inscrit en
    Mai 2012
    Messages
    360
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Mai 2012
    Messages : 360
    Points : 139
    Points
    139
    Par défaut
    Merci beaucoup de votre réponse.

    Il ne me semble pas avoir mélanger les versions Spring.

    Nom : spring.jpg
Affichages : 62
Taille : 314,0 Ko

    applicationContext.xml

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    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
     
    <?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:aop="http://www.springframework.org/schema/aop"
        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://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
     
    	<bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />
     
    	<bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
    		<property name="sessionFactory" ref="sessionFactory" />
    	</bean>	
     
    	<bean id="sessionFactory"
    		class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    		<property name="annotatedClasses">
    			<list>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Absence</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Compteur</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Droit</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Fonction</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Jour</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Personne</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Semaine</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Service</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Unite</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Userlogin</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Perssemainecompt</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Roulement</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Uniteservice</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Moisdisp</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Ecartannee</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Heuresupppaye</value>
    				<value>com.maison.enfant.gestion.horaire.entitybeans.Soldevacance</value>
    			</list>
    		</property>
    		<property name="dataSource" ref="dataSource" />
    		<property name="hibernateProperties">
    			<props>
    				<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
    				<prop key="hibernate.connection.release_mode">auto</prop>
    				<prop key="hibernate.bytecode.provider">javassist</prop>
    				<prop key="hibernate.show_sql">false</prop>
    				<prop key="hibernate.cache.use_second_level_cache">false</prop>
    			</props>
    		</property>
    	</bean>
     
        <bean id="dataSource"
            class="org.springframework.jdbc.datasource.DriverManagerDataSource">
            <property name="driverClassName" value="com.mysql.jdbc.Driver" />
            <property name="url" value="jdbc:mysql://localhost:3306/gestionhoraire" />
            <property name="username" value="root" />
           <property name="password" value="MAPR#2008" />
        </bean>
     
    	<bean id="transactionProxy" abstract="true"
    		class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
    		<property name="transactionManager">
    			<ref bean="transactionManager"/>
    		</property>
    		<property name="transactionAttributes">
    			<props>
    				<prop key="insert*">PROPAGATION_REQUIRED</prop>
    				<prop key="update*">PROPAGATION_REQUIRED</prop>
    				<prop key="save*">PROPAGATION_REQUIRED</prop>
    				<prop key="*">PROPAGATION_REQUIRED, readOnly</prop>
    			</props>
    		</property>
    	</bean>
     
    	<bean id="entityManagerFactory"
            class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
            <property name="persistenceUnitName" value="persistenceUnit" />
            <property name="dataSource" ref="dataSource" />
        </bean>   
     
    	<!-- bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
    		<property name="sessionFactory" ref="sessionFactory" />
    	</bean-->
     
    	<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    		<property name="sessionFactory" ref="sessionFactory"/>
    	</bean>
     
    	<bean id="transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate">
    		<property name="transactionManager" ref="transactionManager" />
    	</bean>
     
        <tx:annotation-driven transaction-manager="transactionManager" />
     
    </beans>

    hibernat.cfg.xml


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-configuration PUBLIC
    		"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
    		"https://hibernate.org/dtd/hibernate-configuration-3.0.dtd">
     
    <hibernate-configuration>
     
        <session-factory>
            <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
            <property name="hibernate.connection.password">MAPR#2008</property>
            <property name="hibernate.connection.url">jdbc:mysql://localhost:8081/gestionhoraire</property>
            <property name="hibernate.connection.username">root</property>
            <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
        </session-factory> 
    </hibernate-configuration>
     
    <!-- "https://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> -->
    spring-security.xml

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
     
    <?xml version="1.0" encoding="UTF-8"?>
     
    <beans:beans xmlns="http://www.springframework.org/schema/security"
    	xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                            http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd">
     
    	<beans:bean id="sessionRegistry"
    		class="org.springframework.security.concurrent.SessionRegistryImpl" />
     
    	<beans:bean id="defaultConcurrentSessionController"
    		class="org.springframework.security.concurrent.ConcurrentSessionControllerImpl">
    		<beans:property name="sessionRegistry" ref="sessionRegistry" />
    		<beans:property name="exceptionIfMaximumExceeded"
    			value="true" />
    	</beans:bean>
     
    	<global-method-security secured-annotations="disabled" />
     
    	<http auto-config="false">
    		<x509 subject-principal-regex="CN=(.*?)," user-service-ref="userService" />
    		<intercept-url pattern="/login*" filters="none" />		
    		<intercept-url pattern="/resources/**" filters="none" />
    		<intercept-url pattern="**.action" access="ROLE_CERTIFICAT" />
    		<form-login 
    			login-page="/accueil.action?error=2" 
    			default-target-url="/displayHomePage" 
    			always-use-default-target="true" 
    			authentication-failure-url="/login.action?error=1"/>
    		<logout />
    	</http>
     
     
    	<beans:bean name="security" class="com.maison.enfant.gestion.horaire.service.security.AuthenticationProvider">
    	<custom-authentication-provider/>
    		<beans:property name="userLogin" ref="userLogin" />
    	</beans:bean>
     
    	<beans:bean name="userService" class="com.maison.enfant.gestion.horaire.service.security.MyUserDetailsService">
    		<beans:property name="userLogin" ref="userLogin" />
    	</beans:bean>
     
    </beans:beans>

    spring-service.xml

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    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
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
     
    <?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:aop="http://www.springframework.org/schema/aop" 
    	xmlns:context="http://www.springframework.org/schema/context"
    	xsi:schemaLocation="http://www.springframework.org/schema/beans
    						http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    						http://www.springframework.org/schema/aop 
    						http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
                            http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
     
    	<!-- mettre les beans services + classes action de struts -->
     
    	<!-- classes actions -->
     
    	<bean id="loginAction" class="com.maison.enfant.gestion.horaire.action.LoginAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="serviceService" ref="service"></property>
    		<property name="compteurService" ref="compteur"></property>
    		<property name="ecartReportService" ref="ecartReport"></property>
    	</bean>
     
     
    	<bean id="ecartReport" class="com.maison.enfant.gestion.horaire.ecartReport.EcartReport" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="ecartAnneeService" ref="ecartAnnee" />
     
    	</bean>
     
    	<bean id="accueilAction" class="com.maison.enfant.gestion.horaire.action.AccueilAction" scope="prototype"></bean>
     
    	<!--bean id="oblAction" class="com.prosodie.facturation.operateur.action.telecom.OblAction" scope="prototype">
    		<property name="oblFacturesService" ref="oblFactures"></property>compteurService
    		<property name="sgdtRefcliSocieteService" ref="societe"></property>
    		<property name="oblAssociationService" ref="oblAssociation"></property>
    		<property name="oblService" ref="obl"></property>
    	</bean-->
     
    	<bean id="fonctionAction" class="com.maison.enfant.gestion.horaire.action.administration.FonctionAction" scope="prototype">
    		<property name="fonctionService" ref="fonction"></property>
    	</bean>
     
    	<bean id="serviceAction" class="com.maison.enfant.gestion.horaire.action.administration.ServiceAction" scope="prototype">
    		<property name="serviceService" ref="service"></property>
    		<property name="roulementService" ref="roulement"></property>
    	</bean>
     
    	<bean id="droitAction" class="com.maison.enfant.gestion.horaire.action.administration.DroitAction" scope="prototype">
    		<property name="droitService" ref="droit"></property>
    	</bean>
     
    	<bean id="personneAction" class="com.maison.enfant.gestion.horaire.action.administration.PersonneAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="fonctionService" ref="fonction"></property>
    		<property name="droitService" ref="droit"></property>
    		<property name="serviceService" ref="service"></property>
    		<property name="userLoginService" ref="userLogin"></property>
    		<property name="soldeVacanceService" ref="soldeVacance"></property>
    	</bean>
     
    	<bean id="uniteAction" class="com.maison.enfant.gestion.horaire.action.administration.UniteAction" scope="prototype">
    		<property name="uniteService" ref="unite"></property>
    		<property name="serviceService" ref="service"></property>
    	</bean>
     
    	<bean id="absenceAction" class="com.maison.enfant.gestion.horaire.action.administration.AbsenceAction" scope="prototype">
    		<property name="absenceService" ref="absence"></property>
    	</bean>
     
    	<bean id="planningAction" class="com.maison.enfant.gestion.horaire.action.planning.PlanningAction" scope="prototype">
    		<property name="serviceService" ref="service"></property>
    		<property name="uniteService" ref="unite"></property>
    		<property name="absenceService" ref="absence"></property>
    		<property name="personneService" ref="personne"></property>
    		<property name="compteurService" ref="compteur"></property>
    		<property name="semaineService" ref="semaine"></property>
    		<property name="userLoginService" ref="userLogin"></property>
    		<property name="jourService" ref="jour"></property>
    		<property name="persSemaineComptService" ref="persSemaineCompt"></property>
    		<property name="roulementService" ref="roulement"></property>
    		<property name="semaineDisplayService" ref="semaineDisplay"></property>
     
    	</bean>
     
    	<bean id="recapPlanningAction" class="com.maison.enfant.gestion.horaire.action.planning.RecapPlanningAction" scope="prototype">
    		<property name="semaineService" ref="semaine"></property>
    	</bean>
     
    	<bean id="compteurAnneePersonneAction" class="com.maison.enfant.gestion.horaire.action.planning.CompteurAnneePersonneAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="persSemaineComptService" ref="persSemaineCompt"></property>
    		<property name="compteurService" ref="compteur"></property>
    		<property name="serviceService" ref="service"></property>
    	</bean>
     
    	<bean id="compteurMoisPersonneAction" class="com.maison.enfant.gestion.horaire.action.planning.CompteurMoisPersonneAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="persSemaineComptService" ref="persSemaineCompt"></property>
    		<property name="compteurService" ref="compteur"></property>
    		<property name="moisDispService" ref="moisDisp" />
    		<property name="ecartAnneeService" ref="ecartAnnee" />
    		<property name="serviceService" ref="service"></property>
    		<property name="uniteService" ref="unite"></property>
     
    	</bean>
     
    	<bean id="compteurElementPayeAction" class="com.maison.enfant.gestion.horaire.action.planning.CompteurElementPayeAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="persSemaineComptService" ref="persSemaineCompt"></property>
    		<property name="compteurService" ref="compteur"></property>
    		<property name="moisDispService" ref="moisDisp" />
    		<property name="ecartAnneeService" ref="ecartAnnee" />
    		<property name="serviceService" ref="service"></property>
    		<property name="uniteService" ref="unite"></property>
    	</bean>
     
     
    	<bean id="compteurMoisPersonneAnneePasCivileAction" class="com.maison.enfant.gestion.horaire.action.planning.CompteurMoisPersonneAnneePasCivileAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="persSemaineComptService" ref="persSemaineCompt"></property>
    		<property name="compteurService" ref="compteur"></property>
    		<property name="moisDispService" ref="moisDisp" />
    		<property name="serviceService" ref="service"></property>
    		<property name="soldeVacanceService" ref="soldeVacance"></property>
    	</bean>
     
    	<bean id="compteurSoldeVacanceUniteAction" class="com.maison.enfant.gestion.horaire.action.planning.CompteurSoldeVacanceUniteAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="persSemaineComptService" ref="persSemaineCompt"></property>
    		<property name="compteurService" ref="compteur"></property>
    		<property name="moisDispService" ref="moisDisp" />
    		<property name="serviceService" ref="service"></property>
    		<property name="soldeVacanceService" ref="soldeVacance"></property>
    		<property name="uniteService" ref="unite"></property>
    	</bean>
     
    	<bean id="compteurDimancheMoisUniteAction" class="com.maison.enfant.gestion.horaire.action.planning.CompteurDimancheMoisUniteAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="persSemaineComptService" ref="persSemaineCompt"></property>
    		<property name="compteurService" ref="compteur"></property>
    		<property name="moisDispService" ref="moisDisp" />
    		<property name="serviceService" ref="service"></property>
    		<property name="uniteService" ref="unite"></property>
    	</bean>
     
     
    	<bean id="compteurVeilleurNuitAction" class="com.maison.enfant.gestion.horaire.action.planning.CompteurVeilleurNuitAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="persSemaineComptService" ref="persSemaineCompt"></property>
    		<property name="compteurService" ref="compteur"></property>
    		<property name="moisDispService" ref="moisDisp" />
    		<property name="ecartAnneeService" ref="ecartAnnee" />
    		<property name="serviceService" ref="service"></property>
    	</bean>
     
     
     
    	<bean id="weekEndAction" class="com.maison.enfant.gestion.horaire.action.planning.WeekEndAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="serviceService" ref="service"></property>
    		<property name="compteurService" ref="compteur"></property>
    	</bean>
     
    	<bean id="congeAction" class="com.maison.enfant.gestion.horaire.action.planning.CongeAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="serviceService" ref="service"></property>
    		<property name="compteurService" ref="compteur"></property>
    		<property name="uniteService" ref="unite"></property>
    	</bean>
     
    	<bean id="planningMensuelAction" class="com.maison.enfant.gestion.horaire.action.planning.PlanningMensuelAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="serviceService" ref="service"></property>
    		<property name="compteurService" ref="compteur"></property>
    		<property name="uniteService" ref="unite"></property>
    	</bean>
     
    	<bean id="gestionQuotidienneAction" class="com.maison.enfant.gestion.horaire.action.planning.GestionQuotidienneAction" scope="prototype">
    		<property name="personneService" ref="personne"></property>
    		<property name="serviceService" ref="service"></property>
    		<property name="compteurService" ref="compteur"></property>
    		<property name="uniteService" ref="unite"></property>
    	</bean>
     
    	<!-- classes services -->
     
    	<bean id="absence" class="com.maison.enfant.gestion.horaire.service.impl.AbsenceImpl">
    		<property name="absenceDao" ref="AbsenceDao" />
    	</bean>
     
    	<bean id="roulement" class="com.maison.enfant.gestion.horaire.service.impl.RoulementImpl">
    		<property name="roulementDao" ref="RoulementDao" />
    		<property name="serviceDao" ref="ServiceDao" />
    	</bean>
     
    	<bean id="persSemaineCompt" class="com.maison.enfant.gestion.horaire.service.impl.PersSemaineComptImpl">
    		<property name="personneDao" ref="PersonneDao" />
    		<property name="persSemaineComptDao" ref="PersSemaineComptDao" />
    		<property name="compteurDao" ref="CompteurDao" />
    		<property name="compteurService" ref="compteur"></property>
    		<property name="personneService" ref="personne"></property>
    		<property name="semaineService" ref="semaine"></property>	
    		<property name="jourService" ref="jour"></property>	
    	</bean>
     
     
     
     
     
    	<bean id="compteur" class="com.maison.enfant.gestion.horaire.service.impl.CompteurImpl">
    		<property name="compteurDao" ref="CompteurDao" />
    	</bean>
     
    	<bean id="semaine" class="com.maison.enfant.gestion.horaire.service.impl.SemaineImpl">
    		<property name="semaineDao" ref="SemaineDao" />
    		<property name="compteurService" ref="compteur"></property>
    		<property name="personneService" ref="personne"></property>
    		<property name="jourService" ref="jour"></property>
    		<property name="persSemaineComptService" ref="persSemaineCompt"></property>
    	</bean>
     
    	<bean id="droit" class="com.maison.enfant.gestion.horaire.service.impl.DroitImpl">
    		<property name="droitDao" ref="DroitDao" />
    		<property name="personneDao" ref="PersonneDao" />
    	</bean>
     
    	<bean id="fonction" class="com.maison.enfant.gestion.horaire.service.impl.FonctionImpl">
    		<property name="fonctionDao" ref="FonctionDao" />
    		<property name="personneDao" ref="PersonneDao" />
    	</bean>
     
    	<bean id="jour" class="com.maison.enfant.gestion.horaire.service.impl.JourImpl">
    		<property name="jourDao" ref="JourDao" />
    		<property name="semaineService" ref="semaine"></property>
    		<property name="absenceService" ref="absence"></property>
    	</bean>
     
    	<bean id="personne" class="com.maison.enfant.gestion.horaire.service.impl.PersonneImpl">
    		<property name="personneDao" ref="PersonneDao" />
    		<property name="fonctionService" ref="fonction"></property>
    		<property name="droitService" ref="droit"></property>
    		<property name="serviceService" ref="service"></property>
    		<property name="userLoginService" ref="userLogin"></property>
    		<property name="soldeVacanceService" ref="soldeVacance"></property>
    		<property name="userLoginDao" ref="UserLoginDao" />
    	</bean>
     
    	<bean id="service" class="com.maison.enfant.gestion.horaire.service.impl.ServiceImpl">
    		<property name="serviceDao" ref="ServiceDao" />
    		<property name="personneDao" ref="PersonneDao" />
    		<property name="uniteDao" ref="UniteDao" />
    	</bean>
     
     
    	<bean id="unite" class="com.maison.enfant.gestion.horaire.service.impl.UniteImpl">
    		<property name="uniteDao" ref="UniteDao" />
    		<property name="serviceService" ref="service"></property>
    	</bean>
     
     
     
    	<bean id="uniteservice" class="com.maison.enfant.gestion.horaire.service.impl.UniteserviceImpl">
    		<property name="uniteserviceDao" ref="UniteserviceDao" />
    		<property name="serviceService" ref="service"></property>
    		<property name="uniteUnite" ref="unite"></property>
    	</bean>
     
     
     
    	<bean id="userLogin" class="com.maison.enfant.gestion.horaire.service.impl.UserLoginImpl">
    		<property name="userLoginDao" ref="UserLoginDao" />
    		<property name="personneDao" ref="PersonneDao" />
    	</bean>
     
     
    	<bean id="soldeVacance" class="com.maison.enfant.gestion.horaire.service.impl.SoldeVacanceImpl">
    		<property name="personneDao" ref="PersonneDao" />
    		<property name="soldeVacanceDao" ref="SoldeVacanceDao" />
     
    	</bean>
     
     
     
     
     
     
    	<bean id="semaineDisplay" class="com.maison.enfant.gestion.horaire.service.impl.SemaineDisplayImpl">
    		<property name="semaineDisplayDao" ref="SemaineDisplayDao" />
    	</bean>
     
    	<bean id="moisDisp" class="com.maison.enfant.gestion.horaire.service.impl.MoisDispImpl">
    		<property name="moisDispDao" ref="MoisDispDao" />
    	</bean>
     
    	<bean id="ecartAnnee" class="com.maison.enfant.gestion.horaire.service.impl.EcartAnneeImpl">
    		<property name="ecartAnneeDao" ref="EcartAnneeDao" />
    	</bean>
     
     
     
    </beans>
    J'avoue que j'ai beau cherché, je ne trouve pas où est le problème.

    J'avoue que je commence à déprimer

    En effet, je n'ai rien modifié depuis la dernière fois que je m'y suis connectée. Cette application a été remplacée il y a maintenant 3 ans, mais il faut tout de même accéder aux anciennes données via l'application et sans passé directement par la base de donnée.

    Quoiqu'il en soit, je vous remercie infiniment de votre aide

    PS : le serveur d'application utilisé est Tomcat6

  12. #12
    Membre habitué
    Femme Profil pro
    Inscrit en
    Mai 2012
    Messages
    360
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Mai 2012
    Messages : 360
    Points : 139
    Points
    139
    Par défaut
    Personne n'a une idée pour m'aider

  13. #13
    Expert confirmé
    Homme Profil pro
    Inscrit en
    Septembre 2006
    Messages
    2 937
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Septembre 2006
    Messages : 2 937
    Points : 4 358
    Points
    4 358
    Par défaut
    Vous dites ne pas mélanger les versions de Spring mais votre copie d'écran montre des versions 6 des jar et vos XML référencent des versions 2.5 des XSD...
    Utilisez Maven ou Graddle pour gérer votre projet et communiquez vos configs.

  14. #14
    Modérateur

    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    12 551
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2004
    Messages : 12 551
    Points : 21 607
    Points
    21 607
    Par défaut
    Oui enfin, Maven ou Gradle ne vont pas lui faire modifier la version des .xsd qu'il mentionne dans ses XML, hein.

    Mais ça pourrait être intéressant de vérifier quelles versions des .xsd on est censé utiliser avec quelle version des .jar.

    (Mais c'est sans doute pas évident, puisque ça fait un bail que tout le monde est censé utiliser Spring Boot, et donc zéro configuration XML.)
    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

Discussions similaires

  1. [SAX] org.xml.sax.SAXParseException probleme avec &nbsp
    Par rasenganguy dans le forum Format d'échange (XML, JSON...)
    Réponses: 14
    Dernier message: 10/05/2012, 09h54
  2. Erreur dans JSP : org.xml.sax.SAXParseException
    Par MetalGearBe dans le forum Servlets/JSP
    Réponses: 2
    Dernier message: 12/02/2012, 20h58
  3. [SAX] Erreur "org.xml.sax.SAXParseException Content is not allowed in prolog."
    Par Wizard50 dans le forum Format d'échange (XML, JSON...)
    Réponses: 3
    Dernier message: 17/06/2011, 15h10
  4. XMLDecoder : org.xml.sax.SAXParseException
    Par benkil dans le forum Format d'échange (XML, JSON...)
    Réponses: 4
    Dernier message: 16/03/2011, 08h56
  5. [netbeans 5.0] Probleme : org.xml.sax.SAXParseException
    Par romarseille dans le forum NetBeans
    Réponses: 4
    Dernier message: 12/06/2006, 11h35

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