SAXParseException, impossible de lire les document de schéma
J'ai un problème avec mon applicationContext.xml fichier.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:util="http://www.springframework.org/schema/util"
xmlns:security="http://www.springframework.org/schema/security" xmlns:context="http://www.springframework.org/schema/context"
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-3.1.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.3.xsd">
<import resource="classpath:spring/persistence.xml"/>
<context:annotation-config />
<context:component-scan base-package="com.sgcib.mrp.cva"/>
<util:properties id="jdbcProps" location="jdbc.properties" />
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:configuration.properties</value>
<value>classpath:jdbc.properties</value>
</list>
</property>
</bean>
J'obtiens cette erreur :
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/context/spring-context-3.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
Ça veut dire quoi ?
OriginalL'auteur l0r3nz4cc10 | 2014-02-14
Vous devez vous connecter pour publier un commentaire.
Qui signifie que le fichier de schéma n'était pas disponible pour l'application.
Vous avez un peu d'options pour résoudre ce problème:
Je suis a été très étonnant obligatoires connexion internet pour mon application
Pour moi, l'application est en cours d'exécution à partir de l'Éclipse, mais le pot de l'exécution échoue à partir de la ligne de commande avec la même SAX erreur. Est-il une configuration supplémentaire, etc, qui contrôle l'exécution de la ligne de commande.
Je vous remercie. Pour moi, ça fonctionne lors du téléchargement du schéma et de l'ajouter au projet
OriginalL'auteur WeMakeSoftware