lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mat Brown <...@patch.com>
Subject NoClassDefFoundError for org.apache.solr.handler.component.SearchComponent when running LocalSolr
Date Mon, 03 Aug 2009 23:49:19 GMT
Hi all,

I just tried installing LocalSolr and LocalLucene - both the v2.0 tags
- in my Solr 1.3 instance, but when I start up I'm getting a
NoClassDefFoundError for
org.apache.solr.handler.component.SearchComponent. Grepping through
the source it appears that that class does exist in Solr 1.3, so I'm
not sure what could be wrong. Any help would be much appreciated -
thanks!

Mat

P.S. Here's the whole logging output when I try to start Solr:

java -Djetty.port=8983 -Dsolr.data.dir=/tmp/solr_data -jar start.jar
2009-08-03 19:46:09.599::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2009-08-03 19:46:09.743::INFO:  jetty-6.1.3
2009-08-03 19:46:09.822::INFO:  Extract
jar:file:/home/mat/projects/sunspot/solr/webapps/solr.war!/ to
/tmp/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp
Aug 3, 2009 7:46:10 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrResourceLoader locateInstanceDir
INFO: JNDI not configured for solr (NoInitialContextEx)
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrResourceLoader locateInstanceDir
INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
Aug 3, 2009 7:46:10 PM org.apache.solr.core.CoreContainer$Initializer initialize
INFO: looking for solr.xml: /home/mat/projects/sunspot/solr/solr/solr.xml
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to 'solr/'
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Reusing parent classloader
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrResourceLoader locateInstanceDir
INFO: JNDI not configured for solr (NoInitialContextEx)
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrResourceLoader locateInstanceDir
INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to 'solr/'
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Reusing parent classloader
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrConfig <init>
INFO: Loaded SolrConfig: solrconfig.xml
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrCore <init>
INFO: Opening new SolrCore at solr/, dataDir=/tmp/solr_data/
Aug 3, 2009 7:46:10 PM org.apache.solr.schema.IndexSchema readSchema
INFO: Reading Solr Schema
Aug 3, 2009 7:46:10 PM org.apache.solr.schema.IndexSchema readSchema
INFO: Schema name=sunspot
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.StandardTokenizerFactory
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.StandardFilterFactory
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.LowerCaseFilterFactory
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created text: org.apache.solr.schema.TextField
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created rand: org.apache.solr.schema.RandomSortField
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created boolean: org.apache.solr.schema.BoolField
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created sfloat: org.apache.solr.schema.SortableFloatField
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created date: org.apache.solr.schema.DateField
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created sint: org.apache.solr.schema.SortableIntField
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created string: org.apache.solr.schema.StrField
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created sdouble: org.apache.solr.schema.SortableDoubleField
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created slong: org.apache.solr.schema.SortableLongField
Aug 3, 2009 7:46:10 PM org.apache.solr.schema.IndexSchema readSchema
INFO: default search field is text
Aug 3, 2009 7:46:10 PM org.apache.solr.schema.IndexSchema readSchema
INFO: query parser default operator is AND
Aug 3, 2009 7:46:10 PM org.apache.solr.schema.IndexSchema readSchema
INFO: unique key field: id
Aug 3, 2009 7:46:10 PM org.apache.solr.core.JmxMonitoredMap <init>
INFO: No JMX servers found, not exposing Solr information with JMX.
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrCore parseListener
INFO: Searching for listeners: //listener[@event="firstSearcher"]
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrCore parseListener
INFO: Added SolrEventListener:
org.apache.solr.core.QuerySenderListener{queries=[{q=fast_warm,start=0,rows=10},
{q=static firstSearcher warming query from solrconfig.xml}]}
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrCore parseListener
INFO: Searching for listeners: //listener[@event="newSearcher"]
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrCore parseListener
INFO: Added SolrEventListener:
org.apache.solr.core.QuerySenderListener{queries=[{q=solr,start=0,rows=10},
{q=rocks,start=0,rows=10}, {q=static newSearcher warming query from
solrconfig.xml}]}
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created xslt: org.apache.solr.request.XSLTResponseWriter
Aug 3, 2009 7:46:10 PM org.apache.solr.request.XSLTResponseWriter init
INFO: xsltCacheLifetimeSeconds=5
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created spellcheck: org.apache.solr.handler.component.SpellCheckComponent
Aug 3, 2009 7:46:10 PM org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created elevator:
org.apache.solr.handler.component.QueryElevationComponent
Aug 3, 2009 7:46:10 PM org.apache.solr.servlet.SolrDispatchFilter init
SEVERE: Could not start SOLR. Check solr/home property
java.lang.NoClassDefFoundError:
org/apache/solr/handler/component/SearchComponent
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:375)
	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:257)
	at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:278)
	at org.apache.solr.util.plugin.AbstractPluginLoader.create(AbstractPluginLoader.java:83)
	at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:140)
	at org.apache.solr.core.SolrCore.loadSearchComponents(SolrCore.java:741)
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:439)
	at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:119)
	at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69)
	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
	at org.mortbay.jetty.Server.doStart(Server.java:210)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
	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.mortbay.start.Main.invokeMain(Main.java:183)
	at org.mortbay.start.Main.start(Main.java:497)
	at org.mortbay.start.Main.main(Main.java:115)
Caused by: java.lang.ClassNotFoundException:
org.apache.solr.handler.component.SearchComponent
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	... 47 more
Aug 3, 2009 7:46:10 PM org.apache.solr.common.SolrException log
SEVERE: java.lang.NoClassDefFoundError:
org/apache/solr/handler/component/SearchComponent
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:375)
	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:257)
	at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:278)
	at org.apache.solr.util.plugin.AbstractPluginLoader.create(AbstractPluginLoader.java:83)
	at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:140)
	at org.apache.solr.core.SolrCore.loadSearchComponents(SolrCore.java:741)
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:439)
	at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:119)
	at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69)
	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
	at org.mortbay.jetty.Server.doStart(Server.java:210)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
	at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
	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.mortbay.start.Main.invokeMain(Main.java:183)
	at org.mortbay.start.Main.start(Main.java:497)
	at org.mortbay.start.Main.main(Main.java:115)
Caused by: java.lang.ClassNotFoundException:
org.apache.solr.handler.component.SearchComponent
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	... 47 more

Aug 3, 2009 7:46:10 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init() done
Aug 3, 2009 7:46:10 PM org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init()
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrResourceLoader locateInstanceDir
INFO: JNDI not configured for solr (NoInitialContextEx)
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrResourceLoader locateInstanceDir
INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
Aug 3, 2009 7:46:10 PM org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init() done
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrResourceLoader locateInstanceDir
INFO: JNDI not configured for solr (NoInitialContextEx)
Aug 3, 2009 7:46:10 PM org.apache.solr.core.SolrResourceLoader locateInstanceDir
INFO: solr home defaulted to 'solr/' (could not find system property or JNDI)
Aug 3, 2009 7:46:10 PM org.apache.solr.servlet.SolrUpdateServlet init
INFO: SolrUpdateServlet.init() done
2009-08-03 19:46:10.659::INFO:  Started SocketConnector @ 0.0.0.0:8983
2009-08-03 19:46:18.269::INFO:  Shutdown hook executing
2009-08-03 19:46:18.395::INFO:  Shutdown hook complete

Mime
View raw message