2016-08-18 2 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"> 

, 그것은 말하는 불평 :내 XML 구성에 어떤 문제가 있습니까? 나는이 응용 프로그램을 실행할 때

org.xml.sax.SAXParseException : SCHEMALOCATION :의 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://activemq.apache.org/schema/core' URI의 짝수 여야합니다.

답변

0

예외는 당신이 당신의 빈 태그, "http://activemq.apache.org/schema/core/activemq-core.xsd"내주는 마지막 스키마 URI가 없습니다. 해당 URI를 생략했거나 해당 URI가있는 구성을 배포하지 않은 다른 구성 사본이있을 수 있습니까?

예외가 구성과 일치하지 않으므로 구성이 완전히 정확했는지 묻는 것입니다.