참고: http://www.psuedoguru.com/roller/page/psuedoblog?entry=failed_to_create_an_xpathfactory
XPathFactory factory = XPathFactory.newInstance();
여기에서 아래와 같은 에러가 나올 때가 있다.
java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom
문제는 아래.
Finally found out that the problem was due to the Tomcat Java 1.4 compatibility libraries. I had recently upgraded to Java 1.5, but forgot to remove them.
$TOMCAT_HOME/common/endorsed/xercesImpl.jar
$TOMCAT_HOME/common/endorsed/xml-apis.jar
톰캣의 xml관련 api에서 문제가 밸생한 것임.
파일을 옮기던가 지우던가 하면 해결된다.
XPathFactory factory = XPathFactory.newInstance();
여기에서 아래와 같은 에러가 나올 때가 있다.
java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom
문제는 아래.
Finally found out that the problem was due to the Tomcat Java 1.4 compatibility libraries. I had recently upgraded to Java 1.5, but forgot to remove them.
$TOMCAT_HOME/common/endorsed/xercesImpl.jar
$TOMCAT_HOME/common/endorsed/xml-apis.jar
톰캣의 xml관련 api에서 문제가 밸생한 것임.
파일을 옮기던가 지우던가 하면 해결된다.
'프로그래밍 > ETC' 카테고리의 다른 글
[XPath] StringReader를 이용한 InputSource 를 소스로 해서, XPath.evaluate() 시 에러 (0) | 2009.03.03 |
---|---|
[XPath] String으로 InputSource 생성하기 (0) | 2009.03.02 |
06 XML 마지막날. (0) | 2007.11.28 |
05 스키마... (0) | 2007.11.28 |
04 DTD... (0) | 2007.11.28 |