security 관련 긴급합니다.
- 작성자 :
- 김*성
- 작성일 :
- 2010-08-05 09:39:26
- 조회수 :
- 3,524
- 구분 :
- 실행환경
- 진행상태 :
- 완료
Q
-- 인터넷을 끊고...서버를 기동하는 중 context-security 에서 다음과 같이
failed 이 납니다.
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document http://www.springframework.org/schema/security/spring-security-2.0.4.xsd 에 대한 에러 인데요....
인터넷을 연결하면 에러가 안 나는데 왜 레퍼런스를 꼭 참조해야 되나요...
해결 방안이 급합니다. 꼭 자세한 답변 부탁드립니다.
2010-08-05 09:34:49,363 INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
2010-08-05 09:34:49,441 INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@6ac615: display name [Root WebApplicationContext]; startup date [Thu Aug 05 09:34:49 KST 2010]; root of context hierarchy
2010-08-05 09:34:49,550 INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/config/spring/context-common.xml]
2010-08-05 09:34:50,393 INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/config/spring/context-aspect.xml]
2010-08-05 09:34:50,518 INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/config/spring/context-httpInvoker.xml]
2010-08-05 09:34:50,534 INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/config/spring/context-datasource.xml]
2010-08-05 09:34:50,627 INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/config/spring/context-security.xml]
2010-08-05 09:34:50,675 WARN : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/security/spring-security-2.0.4.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>.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
failed 이 납니다.
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document http://www.springframework.org/schema/security/spring-security-2.0.4.xsd 에 대한 에러 인데요....
인터넷을 연결하면 에러가 안 나는데 왜 레퍼런스를 꼭 참조해야 되나요...
해결 방안이 급합니다. 꼭 자세한 답변 부탁드립니다.
2010-08-05 09:34:49,363 INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
2010-08-05 09:34:49,441 INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@6ac615: display name [Root WebApplicationContext]; startup date [Thu Aug 05 09:34:49 KST 2010]; root of context hierarchy
2010-08-05 09:34:49,550 INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/config/spring/context-common.xml]
2010-08-05 09:34:50,393 INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/config/spring/context-aspect.xml]
2010-08-05 09:34:50,518 INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/config/spring/context-httpInvoker.xml]
2010-08-05 09:34:50,534 INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/config/spring/context-datasource.xml]
2010-08-05 09:34:50,627 INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/config/spring/context-security.xml]
2010-08-05 09:34:50,675 WARN : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/security/spring-security-2.0.4.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>.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
A
안녕하세요.. 김대성님..
XML Schema 기반의 validation의 경우 적용된 jar 안에 xsd 파일이 존재하기 때문에 인터넷이 연결되지 않더라고 처리되도록 되어 있습니다.
Spring Security의 경우는 "spring-security-core-2.0.4.jar"안에 META-INF/spring.schemas 파일이 있고..
이 파일 안에..
다음과 같은 형식으로 schema에 대한 xsd 파일이 지정되어 있는지 확인해 보시기 바랍니다.
http\://www.springframework.org/schema/security/spring-security-2.0.4.xsd=org/springframework/security/config/spring-security-2.0.4.xsd
확인 부탁드립니다.
그럼.. 즐거운 하루되십시오.
감사합니다.
XML Schema 기반의 validation의 경우 적용된 jar 안에 xsd 파일이 존재하기 때문에 인터넷이 연결되지 않더라고 처리되도록 되어 있습니다.
Spring Security의 경우는 "spring-security-core-2.0.4.jar"안에 META-INF/spring.schemas 파일이 있고..
이 파일 안에..
다음과 같은 형식으로 schema에 대한 xsd 파일이 지정되어 있는지 확인해 보시기 바랍니다.
http\://www.springframework.org/schema/security/spring-security-2.0.4.xsd=org/springframework/security/config/spring-security-2.0.4.xsd
확인 부탁드립니다.
그럼.. 즐거운 하루되십시오.
감사합니다.