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 :
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.
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'.
Je vous met le fichier de configuration :
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 <?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>
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.
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>
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 .
Partager