Bonjour,
voici le message d'erreur que j'ai lorsque j'effectue un "maven test" :
org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception parsing XML from class path resource [com/macif/ged/remoting-servletTest.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@46d228] does not support XML Schema. Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.
Caused by: javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@46d228] does not support XML Schema. Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.
J'utilise pourtant un jdk 1.5...
dans les maven dependencies j'ai un xerces-1.2.3.jar, je suppose que c'est cet artifact qui pose problème, il en faudrait un plus récent... ??
Voici le code de ma classe de Test... (je veux tester un DAO).
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
| public class TypeDossierGedRegioDAOImplTest {
/**
* Le traceur de la classe.
*/
protected static final ILogger LOGGER = LoggerFactory.getLogger(TypeDossierGedRegioDAOImplTest.class);
/**
* Nom du fichier de configuration Spring.
*/
private static final String SPRING_CONFIGURATION_FILE = "com/macif/ged/remoting-servletTest.xml";
/**
* Contexte Spring
*/
private ClassPathXmlApplicationContext context;
/**
* DAO
*/
private TypeDossierGedRegioDAOImpl typeDossierGedRegioDAOImpl = null;
@Test
public void testCreateContactPersonne() {
System.out.println("Go...\n");
System.out.println(SPRING_CONFIGURATION_FILE);
context = new ClassPathXmlApplicationContext(SPRING_CONFIGURATION_FILE); |
L'application plante à la ligne suivante :
context = new ClassPathXmlApplicationContext(SPRING_CONFIGURATION_FILE);
Il n'arrive pas à charger le fichier xml spring.
Quelqu'un a-t-il eu le problème ?
Comment je peux pallier ce problème ?
c'est très urgent... Merci d'avance de vos réponses.
Partager