lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: how to run solr in windows & Tomcat5
Date Mon, 29 May 2006 20:15:33 GMT

: Oh.I'v tried run tomcat with the precompiled solr.war.When visit
: http://localhost:8080/solr/admin/ always show the page:

: root cause
: java.lang.NoClassDefFoundError
: 	org.apache.jsp.admin.index_jsp._jspService(

...did you look at the tomcat logs directory to see if there were any
errors when the server tried to start itself?

I'm guessing the problem is that on startup it couldn't find your
solrconfig.xml file (or your schema.xml) so the core classes couldn't be
initialized, so when you tried to load the page those classes can't be
found.  Where do you have your config files?  is there a "solr/" directory
in the current working directory when you start the server, or are you
setting the solr.solr.home system property, or using the recently added
(but not yet well documented) jndi options for specifying solr.home?

using the following steps, i was able to start up solr server using the
example configs (copied into my current working directory) and access it
at http://localhost:8080/solr/admin/ ...

laptop:~/tmp> mkdir solr-tomcat
laptop:~/tmp> cd solr-tomcat/
laptop:~/tmp/solr-tomcat> wget
> & /dev/null
laptop:~/tmp/solr-tomcat> wget
> & /dev/null
laptop:~/tmp/solr-tomcat> unzip > & /dev/null
laptop:~/tmp/solr-tomcat> unzip > & /dev/null
laptop:~/tmp/solr-tomcat> cp solr-nightly/dist/solr-nightly.war apache-tomcat-5.5.17/webapps/solr.war
laptop:~/tmp/solr-tomcat> cp -r solr-nightly/example/solr .
laptop:~/tmp/solr-tomcat> chmod a+x apache-tomcat-5.5.17/bin/*
laptop:~/tmp/solr-tomcat> ./apache-tomcat-5.5.17/bin/ > & /dev/null

...if it can't find your configs, you'll see some really obvious
exceptions in tomcats "localhost" log that look like this...

SEVERE: StandardWrapper.Throwable
        at org.apache.solr.update.SolrIndexConfig.<clinit>(
        at org.apache.solr.core.SolrCore.<clinit>(
Caused by: java.lang.RuntimeException: Error in solrconfig.xml
        at org.apache.solr.core.SolrConfig.<clinit>(
        ... 30 more
Caused by: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in classpath or
'solr/conf/', cwd=/home/hossman/tmp/solr-tomcat
SEVERE: Servlet /solr threw load() exception


View raw message