Thankyou! You are right. Seems like tomcat overwrites my path. I had to manually move the .jar files into Tomcat's precence.
On 8/24/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
My hunch is you don't have the Lucene JAR in the classpath at runtime. Erik On Aug 24, 2006, at 7:58 AM, Mag Gam wrote: > Hi All, > > I keep getting this error in my tomcatlogs > > > Aug 24, 2006 7:44:09 AM org.apache.catalina.core.ApplicationContext > log > INFO: Marking servlet search as unavailable > Aug 24, 2006 7:44:09 AM > org.apache.catalina.core.StandardWrapperValve invoke > SEVERE: Allocate exception for servlet search > java.lang.NoClassDefFoundError: org/apache/lucene/queryParser/ > ParseException > at java.lang.Class.getDeclaredConstructors0(Native Method) > at java.lang.Class.privateGetDeclaredConstructors(Class.java: > 2357) > at java.lang.Class.getConstructor0(Class.java:2671) > at java.lang.Class.newInstance0(Class.java:321) > at java.lang.Class.newInstance(Class.java:303) > at org.apache.catalina.core.StandardWrapper.loadServlet( > StandardWrapper.java:1048) > at org.apache.catalina.core.StandardWrapper.allocate( > StandardWrapper.java:750) > at org.apache.catalina.core.StandardWrapperValve.invoke( > StandardWrapperValve.java:130) > at org.apache.catalina.core.StandardContextValve.invoke( > StandardContextValve.java:178) > at org.apache.catalina.core.StandardHostValve.invoke( > StandardHostValve.java:126) > at org.apache.catalina.valves.ErrorReportValve.invoke( > ErrorReportValve.java:105) > at org.apache.catalina.core.StandardEngineValve.invoke( > StandardEngineValve.java:107) > at org.apache.catalina.connector.CoyoteAdapter.service( > CoyoteAdapter.java:148) > at org.apache.coyote.http11.Http11Processor.process( > Http11Processor.java:868) > at > > org.apache.coyote.http11.Http11BaseProtocol > $Http11ConnectionHandler.processConnection > (Http11BaseProtocol.java: > > 663) > at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( > PoolTcpEndpoint.java:527) > at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( > LeaderFollowerWorkerThread.java:80) > at org.apache.tomcat.util.threads.ThreadPool > $ControlRunnable.run( > ThreadPool.java:684) > at java.lang.Thread.run(Thread.java:595) > > > > > My code works well, in Linux but on Solaris 9 it tanks, I keep > getting this > exception. Is there anything I can tweak? The code in question I am > assuming > is this: > > try > > { > > Query query = parser.parse (request.getParameter ("param1")); > > Hits hits = searcher.search (query); > > out.println (hits.length () + " results<br><hr>"); > > for (int i = 0; i < hits.length (); i++) > > { > > Document doc = hits.doc (i); > > out.println (doc.get ("path")); > > out.println ("<br>"); > > } > > } > > catch (ParseException pe) > > { > > throw new IOException (pe.getMessage ()); > > } > > > > Any thoughts? > > tia --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]