lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glock, Thomas" <thomas.gl...@pfizer.com>
Subject RE: Getting update/extract RequestHandler to work under Tomcat
Date Tue, 03 Nov 2009 14:34:01 GMT

Thanks -

Looked at it last night and I think the problem is that I need to
compile the ExtractingRequestHandler classes/jar.  

I see the source - but no classes or jar that seems to fit the bill.  

I've had problems getting ant to build from the nightly trunk.  I'm of
the opinion I simply need to get the latest source and perform an ant
build.  But this is the first I've worked with ant and so I'm sure I
don't have things set up correctly.

If there is an existing jar of the ExtractingRequestHandler classes that
I might download - please point me to it.

I'll look at this today - thanks again - much appreciated.


-----Original Message-----
From: Grant Ingersoll [mailto:gsingers@apache.org] 
Sent: Tuesday, November 03, 2009 8:12 AM
To: solr-user@lucene.apache.org
Subject: Re: Getting update/extract RequestHandler to work under Tomcat

Try making it a non-Lazy loaded handler. Does that help?


On Nov 2, 2009, at 4:37 PM, Glock, Thomas wrote:

>
> Hoping someone might help with getting /update/extract RequestHandler 
> to work under Tomcat.
>
> Error 500 happens when trying to access 
> http://localhost:8080/apache-solr-1.4-dev/update/extract/  (see below)
>
> Note /update/extract DOES work correctly under the Jetty provided 
> example.
>
> I think I must have a directory path incorrectly specified but not 
> sure where.
>
> No errors in the Catalina log on startup - only this:
>
> 	Nov 2, 2009 7:10:49 PM org.apache.solr.core.RequestHandlers
> initHandlersFromConfig
> 	INFO: created /update/extract:
> org.apache.solr.handler.extraction.ExtractingRequestHandler
>
> Solrconfig.xml under tomcat is slightly changed from the example with 
> regards to <lib> elements:
>
>  <lib dir="../contrib/extraction/lib" />  <lib dir="../dist/" 
> regex="apache-solr-cell-\d.*\.jar" />  <lib dir="../dist/" 
> regex="apache-solr-clustering-\d.*\.jar" />:
>
> The \contrib and \dist directories were copied directly below the 
> "webapps\apache-solr-1.4-dev" unchanged from the example.
>
> Im the catalina log I see all the "Adding specified lib dirs..." added

> without error:
>
> 	INFO: Adding specified lib dirs to ClassLoader
> 	Nov 2, 2009 7:31:20 PM org.apache.solr.core.SolrResourceLoader
> replaceClassLoader
> 	INFO: Adding
> 'file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat
> %206.0/we
> bapps/apache-solr-1.4-dev/contrib/extraction/lib/asm-3.1.jar' to 
> classloader
> 	Nov 2, 2009 7:31:20 PM org.apache.solr.core.SolrResourceLoader
> replaceClassLoader
> 	INFO: Adding
> 'file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat
> %206.0/we
> bapps/apache-solr-1.4-dev/contrib/extraction/lib/bcmail-jdk14-136.jar'
> to classloader
> 	Nov 2, 2009 7:31:20 PM org.apache.solr.core.SolrResourceLoader
> replaceClassLoader
> 	INFO: Adding
> 'file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat
> %206.0/we
> bapps/apache-solr-1.4-dev/contrib/extraction/lib/bcprov-jdk14-136.jar'
> to classloader
>
> 	(...many more...)
>
> Solr Home is mapped to:
>
> 	INFO: SolrDispatchFilter.init()
> 	Nov 2, 2009 7:10:47 PM org.apache.solr.core.SolrResourceLoader
> locateSolrHome
> 	INFO: Using JNDI solr.home: .\webapps\apache-solr-1.4-dev\solr
> 	Nov 2, 2009 7:10:47 PM
> org.apache.solr.core.CoreContainer$Initializer initialize
> 	INFO: looking for solr.xml: C:\Program Files\Apache Software 
> Foundation\Tomcat 6.0\.\webapps\apache-solr-1.4-dev\solr\solr.xml
> 	Nov 2, 2009 7:10:47 PM org.apache.solr.core.SolrResourceLoader
> <init>
> 	INFO: Solr home set to '.\webapps\apache-solr-1.4-dev\solr\'
>
> 500 Error:
>
> HTTP Status 500 - lazy loading error
> org.apache.solr.common.SolrException: lazy loading error at 
> org.apache.solr.core.RequestHandlers
> $LazyRequestHandlerWrapper.getWrappe
> dHandler(RequestHandlers.java:249) at
> org.apache.solr.core.RequestHandlers
> $LazyRequestHandlerWrapper.handleReq
> uest(RequestHandlers.java:231) at
> org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at 
> org.apache.solr.servlet.SolrDispatchFilter.execute
> (SolrDispatchFilter.ja
> va:338) at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter
> (SolrDispatchFilter.j
> ava:241) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (Applica
> tionFilterChain.java:235) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilt
> erChain.java:206) at
> org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValv
> e.java:233) at
> org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValv
> e.java:191) at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke
> (Authenticator
> Base.java:433) at
> org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java
> :128) at
> org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java
> :102) at
> org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.
> java:109) at
> org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.java:2
> 93) at
> org.apache.coyote.http11.Http11AprProcessor.process
> (Http11AprProcessor.j
> ava:859) at
> org.apache.coyote.http11.Http11AprProtocol
> $Http11ConnectionHandler.proce
> ss(Http11AprProtocol.java:574) at
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java: 
> 1527)
> at java.lang.Thread.run(Unknown Source) Caused by:
> org.apache.solr.common.SolrException: Error loading class 
> 'org.apache.solr.handler.extraction.ExtractingRequestHandler' at 
> org.apache.solr.core.SolrResourceLoader.findClass
> (SolrResourceLoader.jav
> a:373) at
> org.apache.solr.core.SolrCore.createInstance(SolrCore.java:413) at
> org.apache.solr.core.SolrCore.createRequestHandler(SolrCore.java: 
> 449) at
> org.apache.solr.core.RequestHandlers
> $LazyRequestHandlerWrapper.getWrappe
> dHandler(RequestHandlers.java:240) ... 17 more Caused by:
> java.lang.ClassNotFoundException:
> org.apache.solr.handler.extraction.ExtractingRequestHandler at 
> java.net.URLClassLoader$1.run(Unknown Source) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.net.URLClassLoader.findClass(Unknown Source) at 
> java.lang.ClassLoader.loadClass(Unknown Source) at 
> java.net.FactoryURLClassLoader.loadClass(Unknown Source) at 
> java.lang.ClassLoader.loadClass(Unknown Source) at 
> java.lang.ClassLoader.loadClassInternal(Unknown Source) at 
> java.lang.Class.forName0(Native Method) at 
> java.lang.Class.forName(Unknown Source) at 
> org.apache.solr.core.SolrResourceLoader.findClass
> (SolrResourceLoader.jav
> a:357)

--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
using Solr/Lucene:
http://www.lucidimagination.com/search


Mime
View raw message