I'll take the Tomcat question first:

--- snip ---

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?

--- end snip ---

It is just saying there must be at least one blank context which is
the root "/" URL for the Tomcat server.  It is already defined and you
can ignore this unless you start deleting other contexts defined
elsewhere.  So pretend you did not read that at all and you'll be
dandy!

The NoClassDefFoundError is an odd one.  You are running JDK 1.6 (not
JDK 1.5) and Tomcat 6 so base classes should be present, and the WAR
contains everything else.

Did you modify the solrconfig.xml file, possibly change any class
names in there that are referenced?  Or in your schema point to a
class that does not exist?  Something there might cause a failure
during that part of the loading.

Or you are not pointing to the right solr home.  In fact, your Solr
home looks wrong and is the likely culprit.  It should point to your
own directory that you created that contains a copy of the conf
directory from the example deployment.

mkdir solr-data
cd solr-data
mkdir conf
cd conf
cp -R /usr/local/apache-solr-1.2.0/example/solr/conf/* .

then set the /solr/home to this new solr-data directory (which now
contains the conf directory)

--j

--j

On Wed, Mar 19, 2008 at 11:37 AM, David Arpad Geller
<[EMAIL PROTECTED]> wrote:
> 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
>
>

Reply via email to