: hmmm... the INFO log suggests it has found my solr.solr.home argument ok.

it's more a question of wether or not there were any errors when trying to
load any classes needed to parse your configs (either because they are
staticly refered to, or because they are loaded by reflection based on
your config)

: I don't know how readable the whole stack is but I've included it below.

it's totally readable, but i'm wondering if there are any more log
messages of interest in whatever log you found those in?  possibly earlier
in the file?

: 13-Jun-2007 16:33:16 org.apache.solr.core.SolrConfig initConfig
: INFO: Loaded SolrConfig: solrconfig.xml

this is certainly promising.  It implies (to me anyway) that the
solrconfig.xml is being loaded fine.

: <1181748797062> <BEA-101165> <Could not load user defined filter in
: web.xml: org.apache.solr.servlet.SolrDispatchFilter.
: java.lang.NoClassDefFoundError
:         at
: org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:75)

this is interesting ... i clearly missread the earlier error mesasage you
had, i thought the problem was SolrDispatchFilter was the subject of the
NoClassDefFoundError, but it's clearly finding SolrDispatchFilter and
having some problem loading another class needed by it (pity weblogic's
classloader doesn't seem to put hte name of hte class it can't find in the
exception)

unless i'm misisng something Line 75 in Solr 1.2 is "SolrCore.log( t )" in
a catch blockfor Throwable, the problem may be that the SolrCore class
can't be loaded at line 69, triggering a NoClassDefFound, which is then
caught and SolrCore is refered to again triggering another NoClassDefFound
which cascades up to weblogic without a more helpful error.


: <1181748797078> <BEA-101216> <Servlet: "SolrServer" failed to preload on
: startup in Web application: "solr.war".
: java.lang.NoClassDefFoundError
:         at org.apache.solr.servlet.SolrServlet.init(SolrServlet.java:48)

this again points to a problem loading SolrCore ... SolrServlet L48 is an
attempt to fetch a SolrCore.

The real question is why can't the SolrCore class be loaded? ... the
static initialization of that class does a lot of stuff, but i would
expect to see more errors about whatever the problem was being logged.

Shaun: if there are no other error messages earlier in yorr logs, and you
are comfortable with java code, would you mid trying to change these lines
in SolrDispatchFilter.init(FilterConfig) ....

    catch( Throwable t ) {
      // catch this so our filter still works
      log.log(Level.SEVERE, "Could not start SOLR. Check solr/home property", 
t);
      SolrConfig.severeErrors.add( t );
      SolrCore.log( t );
    }

to...

    catch( Throwable t ) {
      // catch this so our filter still works
      log.log(Level.SEVERE, "Could not start SOLR. Check solr/home property", 
t);
      SolrConfig.severeErrors.add( t );
      SolrException.logOnce(log,null,e); // TESTING CHANGE IN ERROR HANDLING
    }

...and see if that gives you a better error message?


-Hoss

Reply via email to