lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: [Update] Solr can be started from jetty but not tomcat
Date Fri, 14 Mar 2008 05:34:01 GMT

: By your hint, I found there is XML library missing in tomcat, not
: ** Also please someone kindly put those library in the system requirement/
: wiki FAQ. That save a lot of people and forum resources if all library used
: is listed properly (with links) - newly build tomcat server have nothing...

While there are certainly XML libraries out there that can provide 
alternate implementaions of XPathFactory, there is normally no *need* for 
any extra XML libraries... 

: >>         at org.apache.catalina.startup.Bootstrap.main(
: >> Caused by: java.lang.RuntimeException: XPathFactory#newInstance() failed
: >> to
: >> create an XPathFactory for the default object model:
: >> with the
: >> XPathFactoryConfigurationException:
: >> javax.xml.xpath.XPathFactoryConfiguration

... Java 1.5 provides that object model out of the box.  

a quick google search for the error you encountered turns up several 
promising links, most notably this post...

...which indicates...

>>> 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

With Java 1.5 and a completley clean tomcat install, you shouldn't get 
this error.


View raw message