So it seems that I got Tomcat to recognize where solr is with this
conf/Catalina/localhost/solr.xml:
<Context
docBase="/usr/local/apache-solr-1.2.0/dist/apache-solr-1.2.0.war"
debug="0"
crossContext="true" >
<Environment name="solr/home"
value="/usr/local/apache-solr-1.2.0"
type="java.lang.String"
override="true" />
</Context>
But still, there's still some problem (see below). Thank you for
all of
the help, it's good stuff to know.
Also, the Tomcat page for Context says:
-----
You may define as many *Context* elements as you wish. Each such
Context
MUST have a unique context path. In addition, a Context must be
present
with a context path equal to a zero-length string. This Context
becomes
the /default/ web application for this virtual host, and is used to
process all requests that do not match any other Context's context
path.
------
Which also isn't clear to me. "...context path equal to a zero-
length
string?" I guess I'm misunderstanding what "context path" is. It
seems
to me that this describes "localhost/solr.xml." Am I missing
something
here?
---------------------------------------
INFO: HTMLManager: start: Starting web application at '/solr'
Mar 19, 2008 2:07:27 PM org.apache.solr.servlet.SolrDispatchFilter
init
INFO: SolrDispatchFilter.init()
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getInstanceDir
INFO: Using JNDI solr.home: /usr/local/apache-solr-1.2.0
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config setInstanceDir
INFO: Solr home set to '/usr/local/apache-solr-1.2.0/'
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getClassLoader
INFO: Adding
'file:/usr/local/apache-solr-1.2.0/lib/commons-csv-0.1-
SNAPSHOT.jar' to
Solr classloader
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getClassLoader
INFO: Adding
'file:/usr/local/apache-solr-1.2.0/lib/lucene-
highlighter-2007-05-20_00-04-53.jar'
to Solr classloader
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getClassLoader
INFO: Adding
'file:/usr/local/apache-solr-1.2.0/lib/lucene-
analyzers-2007-05-20_00-04-53.jar'
to Solr classloader
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getClassLoader
INFO: Adding 'file:/usr/local/apache-solr-1.2.0/lib/easymock.jar' to
Solr classloader
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getClassLoader
INFO: Adding
'file:/usr/local/apache-solr-1.2.0/lib/lucene-
core-2007-05-20_00-04-53.jar'
to Solr classloader
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getClassLoader
INFO: Adding 'file:/usr/local/apache-solr-1.2.0/lib/servlet-
api-2.4.jar'
to Solr classloader
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getClassLoader
INFO: Adding
'file:/usr/local/apache-solr-1.2.0/lib/commons-codec-1.3.jar' to
Solr
classloader
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getClassLoader
INFO: Adding
'file:/usr/local/apache-solr-1.2.0/lib/lucene-
spellchecker-2007-05-20_00-04-53.jar'
to Solr classloader
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getClassLoader
INFO: Adding
'file:/usr/local/apache-solr-1.2.0/lib/lucene-
snowball-2007-05-20_00-04-53.jar'
to Solr classloader
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getClassLoader
INFO: Adding 'file:/usr/local/apache-solr-1.2.0/lib/
xpp3-1.1.3.4.O.jar'
to Solr classloader
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getClassLoader
INFO: Adding 'file:/usr/local/apache-solr-1.2.0/lib/commons-
io-1.2.jar'
to Solr classloader
Mar 19, 2008 2:07:27 PM org.apache.solr.core.Config getClassLoader
INFO: Adding
'file:/usr/local/apache-solr-1.2.0/lib/commons-fileupload-1.2.jar'
to
Solr classloader
Mar 19, 2008 2:07:27 PM org.apache.catalina.core.StandardContext
filterStart
SEVERE: Exception starting filter SolrRequestFilter
java.lang.NoClassDefFoundError
at
org
.apache
.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:74)
..
(Trace omitted)
..
at java.lang.Thread.run(Thread.java:595)
Mar 19, 2008 2:07:27 PM org.apache.catalina.core.StandardContext
start
SEVERE: Error filterStart
Mar 19, 2008 2:07:27 PM org.apache.catalina.core.StandardContext
start
SEVERE: Context [/solr] startup failed due to previous errors
Mar 19, 2008 2:07:27 PM
org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host
'localhost'
--
They must find it difficult, those who have taken authority as
truth, rather than truth as authority. - Gerald Massey