2016-08-18 5 views
0
<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:p="http://www.springframework.org/schema/p" 
    xmlns:context="http://www.springframework.org/schema/context" 
    xmlns:jms="http://www.springframework.org/schema/jms" 
    xmlns:amq="http://activemq.apache.org/schema/core" 
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
         http://www.springframework.org/schema/beans/spring-beans.xsd 
         http://www.springframework.org/schema/context 
         http://www.springframework.org/schema/context/spring-context.xsd 
         http://www.springframework.org/schema/jms 
         http://www.springframework.org/schema/jms/spring-jms.xsd 
         http://activemq.apache.org/schema/core 
         http://activemq.apache.org/schema/core/activemq-core.xsd"> 

Wenn ich diese Anwendung ausführen, es beschwert sich sagen:Was ist falsch an meiner XML-Konfiguration?

org.xml.sax.SAXParseException: schema: schema value = 'http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://activemq.apache.org/schema/core' muss eine gerade Anzahl von URIs haben.

Antwort

0

Die Ausnahme fehlt die letzten Schema-URI, die Sie in Ihrem Bohnen-Tag geben „http://activemq.apache.org/schema/core/activemq-core.xsd“. Ist es möglich, dass Sie eine andere Kopie der Konfiguration haben, in der Sie diesen URI weggelassen haben, oder haben Sie die Konfiguration, die diesen URI enthält, nicht bereitgestellt?

Die Ausnahme stimmt nicht mit der Konfiguration überein, deshalb frage ich Sie, ob das, was Sie als Konfiguration angegeben haben, völlig korrekt ist.

Verwandte Themen