2016-12-08 6 views
1

나는 서버를 시작하는 동안, 그것은 나에게 같은 오류 메시지 제공, 제이보스 EAP 5.x의에 struts2/봄 프로젝트가 :은 제이보스 EAP 5.x의에 스키마를 해결하는 데 실패

Failed to parse source: Failed to resolve schema nsURI=http://java.sun.com/xml/ns/javaee location=http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd 

유일한 XML 파일 사용을 web-app_3_0.xsd은 다음과 같이 web.xml입니다.

<?xml version="1.0" encoding="UTF-8"?> 
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xmlns="http://java.sun.com/xml/ns/javaee" 
     xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" 
     id="WebApp_ID" version="3.0"> 
    <display-name>XXXXXX</display-name> 
    <jsp-config> 
    <taglib> 
      <taglib-uri>HTTP://java.sun.com/jsp/jstl/core</taglib-uri> 
      <taglib-location>/WEB-INF/tld/c.tld</taglib-location> 
    </taglib> 
    </jsp-config> 
    <welcome-file-list> 
    <welcome-file>index.html</welcome-file> 
     <welcome-file>index.htm</welcome-file> 
     <welcome-file>index.jsp</welcome-file> 
     <welcome-file>default.html</welcome-file> 
     <welcome-file>default.htm</welcome-file> 
     <welcome-file>default.jsp</welcome-file> 
    </welcome-file-list> 
</web-app> 

다음과 같이 URL에 액세스하려고했으나 모두 액세스 할 수 있습니다.

어떻게 일이 있습니까? 무슨 뜻입니까 을 해결하지 못했습니다. 그 원격 파일에 액세스 할 수 없다는 의미입니까?

+0

서버가 인터넷에 액세스 할 수 있습니까? '$ JBOSS_INSTALL/docs/schemas /'에있는 스키마 중 하나를 위치로 사용할 수 있다고 생각합니다. 그러나 JBoss EAP 5.1.2에서 발견 된 web_app.xsd의 최신 버전은 2.5입니다. – Aaron

+0

현재 JBoss EAP 6.x 또는 7.x로 업그레이드하는 것이 좋습니다. 문제가 해결 될 것이며 5.x는 지난 달 이후 RedHat에서 더 이상 지원되지 않습니다. – Aaron

+0

web-app_3_0.xsd를 저기에 두려고합니다. 어떻게 진행되는지 볼 수 있습니다. – RRTW

답변