lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
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(Bootstrap.java:433)
: >> Caused by: 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.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...

http://www.psuedoguru.com/roller/page/psuedoblog?entry=failed_to_create_an_xpathfactory

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




-Hoss


Mime
View raw message