Re: [Update] Solr can be started from jetty but not tomcat

2008-06-19 Thread mike segv
(LifecycleSupport.java:120)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:448)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
 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
 

-- 
View this message in context: 
http://www.nabble.com/-Update--Solr-can-be-started-from-jetty-but-not-tomcat-tp15998642p18012994.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: [Update] Solr can be started from jetty but not tomcat

2008-03-14 Thread Vinci

Hi,

I am using java 1.6, the tomcat 5.5 also contains this file. But actually
this is the problems solved by adding 4 jar...I think the problem may be
come will xalan.jar ( resolver.jar I am not so sure)
but anyone in trouble can try this sequence

xalan.jar-resolver.jar-xercesImpl.jar-xml-apis.jar

(I tried the resolver.jar come first, but problem still no solvedmay be
someone can try this sequence...)



hossman wrote:
 
 
 : 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-Update--Solr-can-be-started-from-jetty-but-not-tomcat-tp15998642p16047002.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: [Update] Solr can be started from jetty but not tomcat

2008-03-13 Thread Vinci
)
 at
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
 at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:448)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
 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
 

-- 
View this message in context: 
http://www.nabble.com/-Update--Solr-can-be-started-from-jetty-but-not-tomcat-tp15998642p16022290.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: [Update] Solr can be started from jetty but not tomcat

2008-03-13 Thread Vinci

Hi ryantxu,

By your hint, I found there is XML library missing in tomcat, not
multicore.xml cause the problem 
(* For single core mode, you should not allow any multicore.xml exist in
solr/home - unless you placed the file properly, as
http://www.nabble.com/forum/ViewPost.jtp?post=16001210 mentioned.)

 resolver.jar (Apache XML cmmon, available at
http://xml.apache.org/mirrors.cgi)
 xalan.jar (Xalan-j,
http://xml.apache.org/xalan-j/downloads.html)
 xercesImpl.jar (Xalan-j)
 xml-apis.jar (Xalan-j)

One more question: Does tomcat have anywhere to place the library shared by
all application? This is quite troublesome to copy the xml jar file among
the applications...

*I also changed the security setting in tomcat, which were reported by the
debian user. If you using debian and ubuntu and encounter security problem,
please refer to the debian and ubuntu package for the 05solr.policy file
structure as well as the catalina.policy

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

Finally Thank you a lots!


ryantxu wrote:
 
 Vinci wrote:
 Hi all, 
 
 after several hour I make the solr works a little bit: the jetty version
 works, but the tomcat version doesn't.
 
 
 To me it looks like the xml parser is not loading properly... check the 
 last line of your trace.
 
 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
 
 I'm not sure how that is configured in tomcat though...
 
 

-- 
View this message in context: 
http://www.nabble.com/-Update--Solr-can-be-started-from-jetty-but-not-tomcat-tp15998642p16022807.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: [Update] Solr can be started from jetty but not tomcat

2008-03-13 Thread Vinci
)
 at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
 at
 org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
 at
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
 at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:448)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-Update--Solr-can-be-started-from-jetty-but-not-tomcat-tp15998642p16023732.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: [Update] Solr can be started from jetty but not tomcat

2008-03-13 Thread Vinci
)
 at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
 at
 org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
 at
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
 at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:448)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-Update--Solr-can-be-started-from-jetty-but-not-tomcat-tp15998642p16023734.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: [Update] Solr can be started from jetty but not tomcat

2008-03-13 Thread Ryan McKinley


glad you got things worked out.  I don't use tomcat, so I can't be too 
much use.  Check:


http://wiki.apache.org/solr/SolrTomcat

and also feel free to include any tips to help others as well.



One more question: Does tomcat have anywhere to place the library shared by
all application? This is quite troublesome to copy the xml jar file among
the applications...

*I also changed the security setting in tomcat, which were reported by the
debian user. If you using debian and ubuntu and encounter security problem,
please refer to the debian and ubuntu package for the 05solr.policy file
structure as well as the catalina.policy

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

Finally Thank you a lots!


ryantxu wrote:

Vinci wrote:
Hi all, 


after several hour I make the solr works a little bit: the jetty version
works, but the tomcat version doesn't.

To me it looks like the xml parser is not loading properly... check the 
last line of your trace.



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

I'm not sure how that is configured in tomcat though...








Re: [Update] Solr can be started from jetty but not tomcat

2008-03-13 Thread Chris Hostetter

: 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



[Update] Solr can be started from jetty but not tomcat

2008-03-12 Thread Vinci
(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
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
-- 
View this message in context: 
http://www.nabble.com/-Update--Solr-can-be-started-from-jetty-but-not-tomcat-tp15998642p15998642.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: [Update] Solr can be started from jetty but not tomcat

2008-03-12 Thread Ryan McKinley

Vinci wrote:
Hi all, 


after several hour I make the solr works a little bit: the jetty version
works, but the tomcat version doesn't.



To me it looks like the xml parser is not loading properly... check the 
last line of your trace.



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


I'm not sure how that is configured in tomcat though...