miércoles, 17 de septiembre de 2008

solr-tomcat5.5: Solr app does not start: Exception starting filter SolrRequestFilter

Debugging apache-solr-1.2.0.jar, using tomcat 5.5 running on java 5, I found the problem comes from another hidden exception:
Caused by: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model...

Two solutions:
  • Remove $TOMCAT_HOME/common/endorsed/xml-apis.jar (I mean mv xml-apis.jar xml-apis.jar.removed). So, the runtime libraries of java 5 will be used, not the tomcat endorsed.
Or:
Then, restart tomcat.

Ref del problema:
http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/f551fc6f05c48d17

No hay comentarios: