lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muhannad <muh.a...@gmail.com>
Subject Re: Developing to Solr 4.0
Date Sun, 05 Jun 2011 23:17:37 GMT
*Hi
I'd added dataimprthadler to lib dir and solr discovered the jar file but
some other error message appeared this is the message

*

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
	at org.apache.solr.handler.dataimport.DataImportHandler.<clinit>(DataImportHandler.java:72)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:392)
	at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:394)
	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:152)
	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
	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: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
	... 38 more





On Mon, Jun 6, 2011 at 1:54 AM, Koji Sekiguchi <koji@r.email.ne.jp> wrote:

> (11/06/06 5:58), Muhannad wrote:
>
>> I tried to upgrade from 1.4 to solr 4.0 snapshot ,
>> I ran "ant example"
>> I used DataImportHandler to index database tables
>> after adding apache-dataimporthandeler to llib/ dir and created
>> data-config.xml for the request handler in solr
>>
>>
>> *******************************************************************************************************************
>> org.apache.solr.common.SolrException: Error loading class
>> 'org.apache.solr.handler.dataimport.DataImportHandler'
>>
>>
>> **********************************************************************************************************************
>>
>
> CHANGES.txt says:
>
> * The DataImportHandler jars are no longer included in the solr
>  WAR and should be added in Solr's lib directory, or referenced
>  via the <lib> directive in solrconfig.xml.
>
> So you should have copy of the the following lines in solrconfig.xml:
>
>  <lib dir="../../dist/" regex="apache-solr-clustering-\d.*\.jar" />
>  <lib dir="../../contrib/clustering/lib/" />
>
> and change "clustering" to "dataimporthandler".
>
> koji
> --
> http://www.rondhuit.com/en/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>


-- 
*Eng.Muhannad al Hariri *
*
*
*Software Developer*
*email : 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