Salut à tous
J'ai développé une application web avec spring grâce à maven et j'ai un problème
Le contexte
- Un application web utilisant springWebMVC
- Cette application utilise un module Jar
- Ce module Jar utilise DOM4J avec XPATH via Jaxen 1.1.1
Le déploiement de l'application sur GlassFish 3.0.1 fonctionne très bien
La problématique :
Lorsque je tente d'effectuer une action sur mon application j'obtiens toujours l'erreur suivante :
Code java : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Cause possibles :
Manque une libraire.. mais laquelle ?
Ce que j'ai tenté:
Code java : Sélectionner tout - Visualiser dans une fenêtre à part 
2
Qui se trouve dans la méthode
Code java : Sélectionner tout - Visualiser dans une fenêtre à part 
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/** * Setup validation features and return reader * * @throws javax.xml.parsers.ParserConfigurationException * @throws org.xml.sax.SAXException * @throws java.io.IOException * @param schemaSource * @return */ private SAXReader createReaderAgainstSchema(URL schemaSource) throws SAXException, ParserConfigurationException, IOException { System.setProperty("jaxp.debug", "1"); SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setValidating(true); SchemaFactory schemaFactory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema"); Schema s=schemaFactory.newSchema(new Source[] { new StreamSource(schemaSource.openStream()) }); factory.setSchema(s); SAXParser parser = factory.newSAXParser(); SAXReader reader = new SAXReader(parser.getXMLReader()); // set the validation feature to true to report validation errors reader.setFeature("http://xml.org/sax/features/validation", true); // set the validation/schema feature to true to report validation errors against a schema reader.setFeature("http://apache.org/xml/features/validation/schema", true); //set the validation/schema-full-checking feature to true to enable full schema, grammar-constraint checking reader.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true); return reader; }
Lorsque je teste cette classe tout marche bien et j'obtiens la configuration JAXP suivante:
Code java : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Lorsque je test toute ma librairie (utilisant cette méthode) tout passe
Mais lorsque je tente d'exécuter une action spring, l'exception mentionnée survient!
Ce que j'ai trouvé sur notre ami:Ceci
Solutions ?
Je ne sais pas
éclairez moi SVP !
Merci!

 

 
		
		 
         
 

 
			
			


 
   
 


 Exception étrange : This parser does not support specification "null" version "null"
 Exception étrange : This parser does not support specification "null" version "null"
				


 Répondre avec citation
  Répondre avec citation
Partager