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

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

Spring Java Discussion :

Pb de config du appicationContexte.xml [Framework]


Sujet :

Spring Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Homme Profil pro
    Ingénieur étude et dévellopement
    Inscrit en
    Février 2009
    Messages
    13
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Ingénieur étude et dévellopement
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2009
    Messages : 13
    Par défaut Pb de config du appicationContexte.xml
    Bonjour tout le monde !
    Actuellement je travaille sur une application client/serveur riche utilisant swing/spring.
    Mon application fonctionne correctement. Cependant, il y a très peu de temps j'ai eu une coupure réseau. Ceci ne m'a pas empêcher de travailler.
    Le problème est que lorsque j'ai tenté de lancer l'application que j'ai conçu. J'ai eu erreur suivante :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from class path resource [META-INF/spring/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
    Suite à ca, j'ai constaté que mon application spring ne possède pas les fichiers *.xsd nécessaire à la configuration de mon application. Ce qui signifie qu'il le recupere via la connexion internet.
    Je vous met le fichier de configuration :
    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
     
    <?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"
    	xmlns:p="http://www.springframework.org/schema/p"
    	xsi:schemaLocation="http://www.springframework.org/schema/beans 
    	spring-beans-3.0.xsd
    	http://www.springframework.org/schema/context 
    	http://www.springframework.org/schema/context/spring-context-3.0.xsd">
     
     
    	<!-- ANNOTATIONS POUR L'INJECTION DE DEPENDANCES -->
    	<context:annotation-config />
     
     	<!-- ANNOTATIONS POUR LA CREATION DE BEANS -->
    	 <context:component-scan base-package="taranis.dao.xml"/>
    	 <context:component-scan base-package="taranis.metier.plan"/>	
    	 <context:component-scan base-package="taranis.gui.composant"/>
    	 <context:component-scan base-package="taranis.gui.composant.listeners"/>
     
    	<!-- ANNOTATIONS POUR AOP -->
    	<context:spring-configured/>
     
    </beans>
    Et comme je travaille avec le plugin maven installe sous eclispe, je vous met le pom.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
     
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    	<modelVersion>4.0.0</modelVersion>
    	<groupId>taranis</groupId>
    	<artifactId>Prototype</artifactId>
    	<version>0.0.1-SNAPSHOT</version>
    	<description>Editeur de plan pour taranis</description>
    	<name>GTIT</name>
     
     
    	<properties>
        	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    	</properties>
     
      <!-- DEVELOPPEURS DU PROJETS -->
    	<developers>
    		<developer>
      			<id>adel</id>
      			<name>Adel KALLOUBI</name>
      			<email>adel.kalloubi@cnrs-orleans.fr</email>
      			<timezone>0</timezone>
      		</developer>
      	</developers>
     
     
     
      <!-- DEPENDANCES -->
    	<dependencies>
    	  <!-- Dependances pour la serialisation d'objet java  -->
    	  	<dependency>
    	    	<groupId>com.thoughtworks.xstream</groupId>
    	    	<artifactId>xstream</artifactId>
    	    	<version>1.3.1</version>
    		</dependency>
     
     
    	  	<!-- creation de la trace de log -->
    		<dependency>
    		    <groupId>log4j</groupId>
    		    <artifactId>log4j</artifactId>
    		    <version>1.2.16</version>
    		</dependency>
     
    		<!-- IOC de spring   -->
     
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-aspects</artifactId>
    			<version>2.5.5</version>
    		</dependency>
     
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring</artifactId>
    			<version>2.5.5</version>
    		</dependency> 
    		<!-- Api pour la génération d'un servlet -->
    		<dependency>
          		<groupId>javax.servlet</groupId>
          		<artifactId>servlet-api</artifactId>
          		<version>2.5</version>
          		<scope>provided</scope>
        	</dependency>
    		<!-- Test Unitaire -->
    		<dependency>
    		      <groupId>junit</groupId>
    		      <artifactId>junit</artifactId>
    		      <version>4.8.1</version>
    		      <scope>test</scope>
    	   </dependency>
    	</dependencies>
     
    	<!-- PLUGINS ET OPTIONS DE COMPILATION -->
    	<build>
    		<plugins>
    			<plugin>
    	      <groupId>org.apache.maven.plugins</groupId>
    	      <artifactId>maven-compiler-plugin</artifactId>
    	      <configuration>
    	        <source>1.6</source>
    	        <target>1.6</target>
    	      </configuration>
    	    </plugin>
    		<!-- PLUGINS DE COMPILATION ET DE RESOLUTION DES DEPENDANCES DES CLASSE -->
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>aspectj-maven-plugin</artifactId>
    				<version>1.0</version>
    				<dependencies>
        				<dependency>
    						<groupId>org.aspectj</groupId>
    					    <artifactId>aspectjrt</artifactId>
    					   	<version>1.6.0</version>
    					</dependency>
    					<dependency>
    						<groupId>org.aspectj</groupId>
    					    <artifactId>aspectjtools</artifactId>
    					    <version>1.6.0</version>
    					</dependency>
    				</dependencies>
      				<executions>
        				<execution>
    				    	<goals>
    				        	<goal>compile</goal>
    							<goal>test-compile</goal>
          				  	</goals>
        				</execution>
      				</executions>
      			   	<configuration>
        				<aspectLibraries>
    						<aspectLibrary>
    					  		<groupId>org.springframework</groupId>
    					  		<artifactId>spring-aspects</artifactId>
          					</aspectLibrary>
        				</aspectLibraries>
        				<source>1.6</source>
        				<target>1.6</target>
      				</configuration>
    			</plugin>
    			<!-- PLUGINS DE GENERATION DU JAR DU PROJET -->
    		    <plugin>
    		    	<artifactId>maven-assembly-plugin</artifactId>
    		      	<version>2.2-beta-2</version>
    		      	<executions>
    		        	<execution>
    		          		<id>create-executable-jar</id>
    		          		<phase>package</phase>
    		          		<goals>
    		            		<goal>single</goal>
    		          		</goals>
    		          		<configuration>
    		            		<descriptors>
    		              			<descriptor>src/main/assembly/assembly.xml</descriptor>
    		            		</descriptors>
    		            		<archive>
    		              			<manifest>
    		                			<mainClass>taranis.gui.Main</mainClass>
    		             			 </manifest>
    		            		</archive>
    		          		</configuration>
    		       		</execution>
    		    	</executions>
    		    </plugin>
    		</plugins>
    	</build>
      	<!-- GENERATION DE LA DOC ET DES RAPPORT -->
    	<reporting>
    		<plugins>
    		  <!-- PLUGINS DE GENERATION DE LA JAVADOC -->
    		  <!-- Permet de générer la javadoc du projet-->
    		    <plugin>
          			<groupId>org.apache.maven.plugins</groupId>
          			<artifactId>maven-javadoc-plugin</artifactId>
    		     </plugin>
    		  <!-- Generation des rapport de test unitair -->
    		  <!-- Surefire permet d'avoir les rapports d'exécution de tests unitaires. -->
    		     <plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-surefire-report-plugin</artifactId>
    				<version>2.4.3</version>
    			</plugin>
     
    		  <!-- PLUGINS DES ERREUR CHEKSTYLE  -->
    		  <!-- permet de contrôler le respect des conventions de codage et d'avoir quelques métriques. --> 
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-checkstyle-plugin</artifactId>
    				<version>2.6</version>
    				<configuration>
                 			<failOnViolation>false</failOnViolation>
                 			<enableRulesSummary>false</enableRulesSummary>
            		</configuration>
    			</plugin>
    			<!-- Qualite du Code --> 
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>jdepend-maven-plugin</artifactId>
    				<version>2.0-beta-2</version>
    			</plugin>
    			<!-- CORBERTERA -->
    			<!-- Permet d'identifer les lignes de codes tester -->
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>cobertura-maven-plugin</artifactId>
    				<version>2.2</version>
    			</plugin>
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
        			<artifactId>jxr-maven-plugin</artifactId>
    			</plugin>
    			<plugin>
            		<groupId>org.codehaus.mojo</groupId>
            		<artifactId>findbugs-maven-plugin</artifactId>
     
    	      	</plugin>
    	      	<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-pmd-plugin</artifactId>
    				<version>2.5</version>
    				<configuration>
    					  <linkXref>true</linkXref>
    			          <sourceEncoding>utf-8</sourceEncoding>
    			          <targetJdk>1.6</targetJdk>
    				</configuration>
    			</plugin>
    		</plugins>
    	</reporting> 
    </project>
    Tout ca pour vous demande s'il y aurait pas un jar ou un moyen de recuperer et intégrer ces fichier *.xsd pour que mon application fonctionne sans connexion internet.

    Je vous remercie d'avance pour les futures réponse apporté.
    @+

    Remarque : C'est une application client/serveur locale et interne à l'entreprise dans laquelle je travaille (c'est au cas ou une personne me dit qu'il n'y a pas de soucis puisqu'une application client/serveur s'appuie sur une connexion internet .

  2. #2
    Rédacteur/Modérateur
    Avatar de Logan Mauzaize
    Homme Profil pro
    Architecte technique
    Inscrit en
    Août 2005
    Messages
    2 894
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : Transports

    Informations forums :
    Inscription : Août 2005
    Messages : 2 894
    Par défaut
    Essayes de virer xsi:schemaLocation
    Java : Cours et tutoriels - FAQ - Java SE 8 API - Programmation concurrente
    Ceylon : Installation - Concepts de base - Typage - Appels et arguments

    ECM = Exemple(reproduit le problème) Complet (code compilable) Minimal (ne postez pas votre application !)
    Une solution vous convient ? N'oubliez pas le tag
    Signature par pitipoisson

  3. #3
    Membre averti
    Homme Profil pro
    Ingénieur étude et dévellopement
    Inscrit en
    Février 2009
    Messages
    13
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Ingénieur étude et dévellopement
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2009
    Messages : 13
    Par défaut
    J'ai supprimé
    xsi:schemaLocation
    .
    De ce fait mon applicationcontext.xml devient :
    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
     
    <?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"
    	xmlns:p="http://www.springframework.org/schema/p">
     
     
    	<!-- ANNOTATIONS POUR L'INJECTION DE DEPENDANCES -->
    	<context:annotation-config />
     
     	<!-- ANNOTATIONS POUR LA CREATION DE BEANS -->
    	 <context:component-scan base-package="taranis.dao.xml"/>
    	 <context:component-scan base-package="taranis.metier.plan"/>	
    	 <context:component-scan base-package="taranis.gui.composant"/>
    	 <context:component-scan base-package="taranis.gui.composant.listeners"/>
     
    	<!-- ANNOTATIONS POUR AOP -->
    	<context:spring-configured/>
     
    </beans>
    Mais malheureusement,j'obtiens 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
     
    Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML document from class path resource [META-INF/spring/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
    	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.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
    	at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
    	at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80)
    	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
    	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    	at taranis.gui.Main.main(Main.java:31)
    Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
    	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
    	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
    	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
    	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
    	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1887)
    	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:685)
    	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
    	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3095)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
    	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
    	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
    	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
    	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
    	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
    	at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
    	... 14 more
    DEBUG [main] (DefaultDocumentLoader.java:72) - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]

  4. #4
    Rédacteur/Modérateur
    Avatar de Logan Mauzaize
    Homme Profil pro
    Architecte technique
    Inscrit en
    Août 2005
    Messages
    2 894
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Architecte technique
    Secteur : Transports

    Informations forums :
    Inscription : Août 2005
    Messages : 2 894
    Par défaut
    Etrange qu'il veuille valider le document ...

    J'ai regardé sur une application qui utilise Spring 2.5, nous n'utilisons pas les xsd mais une DTD et effectivement nous avons le fichier DTD à côté. Il te faudra donc télécharger les schémas et les référencer correctement via l'attribut "xsi:schemaLocation"

    Pour information cela se constitue d'une liste de paire séparée par des espaces : le premier élément est le namspace et le deuxième élément est l'URI du schéma.

    EDIT:
    D'après la documentation, il vaut mieux éviter d'utiliser directement cet objet.
    This is a simple, one-stop shop convenience ApplicationContext. Consider using the GenericApplicationContext class in combination with an XmlBeanDefinitionReader for more flexible context setup.
    source

    En instanciant toi-même XmlBeanDefinitionReader tu peux désactiver la validation du schéma.
    Java : Cours et tutoriels - FAQ - Java SE 8 API - Programmation concurrente
    Ceylon : Installation - Concepts de base - Typage - Appels et arguments

    ECM = Exemple(reproduit le problème) Complet (code compilable) Minimal (ne postez pas votre application !)
    Une solution vous convient ? N'oubliez pas le tag
    Signature par pitipoisson

  5. #5
    Membre expérimenté Avatar de aymen83
    Inscrit en
    Décembre 2007
    Messages
    271
    Détails du profil
    Informations forums :
    Inscription : Décembre 2007
    Messages : 271
    Par défaut
    utilise la version 2.5.6 et non 2.5.5 de spring

  6. #6
    Membre averti
    Homme Profil pro
    Ingénieur étude et dévellopement
    Inscrit en
    Février 2009
    Messages
    13
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Ingénieur étude et dévellopement
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Février 2009
    Messages : 13
    Par défaut
    Bon je pense avoir trouvé.
    Finalement je me suis trompe dans le fichier de configuration de spring.
    Si vous faites attention à mon pom.xml, on voit bien que j'utilise la version 2.5.5 de spring.
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-aspects</artifactId>
    <version>2.5.5</version>
    </dependency>

    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring</artifactId>
    <version>2.5.5</version>
    </dependency>
    Après analyse du jar, je constate que Nemek a raison.
    les fichier *.xsd et *.dtd sont bien inclus dans l'archive de mon projet.

    De ce fait, le problème vient de mon fichier de configuration qui est le suivant :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    	xsi:schemaLocation="http://www.springframework.org/schema/beans 
    	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    	http://www.springframework.org/schema/context 
    	http://www.springframework.org/schema/context/spring-context-3.0.xsd">
    Effectivement, je travaille avec la 2.5 et je recupere "spring-context-3.0.xsd", forcément ca colle pas.

    Après modification de l'entête qui finit par ressemble à ca :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
     
    <?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:context="http://www.springframework.org/schema/context"
    	xmlns:p="http://www.springframework.org/schema/p"
    	xsi:schemaLocation="http://www.springframework.org/schema/beans 
    	http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    	http://www.springframework.org/schema/context 
    	http://www.springframework.org/schema/context/spring-context-2.5.xsd">
    Je constate que mon application fonctionne plus tôt bien sans connexion à internet.
    Bon ,J'espère que je me suis pas trompé et qu'il n'y a pas d'autres problème.
    @+

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

Discussions similaires

  1. [Jetty] Erreur config jetty-web.xml
    Par mapmip dans le forum Servlets/JSP
    Réponses: 5
    Dernier message: 09/11/2012, 21h44
  2. [ Tomcat ] [ débutant ] config web.xml
    Par TeTram dans le forum Tomcat et TomEE
    Réponses: 3
    Dernier message: 09/02/2009, 10h22
  3. Format du fichier de config : .ini ou .xml ?
    Par LapinGarou dans le forum Développement 2D, 3D et Jeux
    Réponses: 11
    Dernier message: 30/06/2007, 10h44
  4. [struts]: struts-config.xml
    Par sleepy2002 dans le forum Struts 1
    Réponses: 2
    Dernier message: 01/10/2004, 10h32
  5. [TomCat][sécurité]config fichier web.xml
    Par liomac dans le forum Tomcat et TomEE
    Réponses: 6
    Dernier message: 24/09/2003, 15h46

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