lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Bell <billnb...@gmail.com>
Subject Re: Error :dataimport handler is not request Handler, help
Date Sun, 19 Jun 2011 18:27:51 GMT
Add the jar to your classpath or put in solr/lib

From:  Muhannad <muh.acit@gmail.com>
Reply-To:  <dev@lucene.apache.org>
Date:  Sun, 19 Jun 2011 21:00:57 +0300
To:  <dev@lucene.apache.org>
Subject:  Error :dataimport handler is not request Handler, help

Hi All , I am really stuck in this problem ,  I am using solr to index some
tables in database and I followed these steps to achieve my goal 1- added
the following section  to solrconfig.xml
   <requestHandler name="/dataimport"
class="org.apache.solr.handler.dataimport.DataImportHandler">
                <lst name="defaults">
                        <str name="config">data-config.xml</str>
                </lst>
        </requestHandler>

2- added apache-solr-dataimporthandler.jar to lib/ directory (include path)
every thing goes nice !!! for now , till I fire the server
the following error appears , Please I need You help urgently !!!

=======================Error message==============================
HTTP ERROR 500
Problem accessing /solr/. Reason:
    Severe errors in solr configuration.

Check your log files for more detailed information on what may be wrong.

-------------------------------------------------------------
org.apache.solr.common.SolrException: Error Instantiating Request Handler,
org.apache.solr.handler.dataimport.DataImportHandler is not a
org.apache.solr.request.SolrRequestHandler
	at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:396)
	at org.apache.solr.core.SolrCore.createRequestHandler(SolrCore.java:431)
	at 
org.apache.solr.core.RequestHandlers.initHandlersFromConfig(RequestHandlers.
java:158)
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:513)
	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:653)
	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:406)
	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:291)
	at 
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java
:240)
	at 
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:93)
	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at 
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
	at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
	at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:1
52)
	at 
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCol
lection.java:156)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:1
52)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
	at org.mortbay.jetty.Server.doStart(Server.java:224)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.mortbay.start.Main.invokeMain(Main.java:194)
	at org.mortbay.start.Main.start(Main.java:534)
	at org.mortbay.start.Main.start(Main.java:441)
	at org.mortbay.start.Main.main(Main.java:119)
-------------------------------------------------------------
org.apache.solr.common.SolrException: RequestHandler init failure
	at 
org.apache.solr.core.RequestHandlers.initHandlersFromConfig(RequestHandlers.
java:173)
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:513)
	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:653)
	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:406)
	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:291)
	at 
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java
:240)
	at 
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:93)
	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at 
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
	at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
	at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:1
52)
	at 
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCol
lection.java:156)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:1
52)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
	at org.mortbay.jetty.Server.doStart(Server.java:224)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.mortbay.start.Main.invokeMain(Main.java:194)
	at org.mortbay.start.Main.start(Main.java:534)
	at org.mortbay.start.Main.start(Main.java:441)
	at org.mortbay.start.Main.main(Main.java:119)
Caused by: org.apache.solr.common.SolrException: Error Instantiating Request
Handler, org.apache.solr.handler.dataimport.DataImportHandler is not a
org.apache.solr.request.SolrRequestHandler
	at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:396)
	at org.apache.solr.core.SolrCore.createRequestHandler(SolrCore.java:431)
	at 
org.apache.solr.core.RequestHandlers.initHandlersFromConfig(RequestHandlers.
java:158)
	... 31 more

Powered by Jetty://
                   
                   

-- 
Eng.Muhannad al Hariri

Software Developer
email : muh.acit@gmail.com <mailto:muh.acit@gmail.com>
twitter : @muh_acit <http://twitter.com/muh_acit>
Skype : muh.hari
phone : 
      Jordan +962 78 677 5125

حاسبونا فدققوا ثمّ منّوا فأعتقوا ..هكذا شيمة الملوك
بالمماليك يرفقوا





Mime
View raw message