Okay, for posterity: I did manage to get it working. It WAS lack of the logging files.

First, the only way I could manage to get Tomcat6 to log an actual stacktrace for the "Error filterStart" was to _delete_ my CATALINA_HOME/conf/logging.properties file. Apparently without this file at all, the default ends up being 'log everything'.

And once that happened, it did confirm that the "Error filterStart" problem WAS an inability to find the logging jars. (And the stack trace was an exception from Solr with a nice message including the URL to the logging wiki page, nice one solr). Nothing I tried before in a fit of desperation deleting that file entirely worked to get the stack trace logged.

Once confirmed that the problem really was not finding the logging jars, I could keep doing things and restarting and seeing if that was still the exception.

And I found that for some reason, despite http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html suggesting that jars could be found in either CATALINA_BASE/lib (for me /opt/tomcat6/lib), OR CATALINA_BASE/lib (for me /usr/share/tomcat6/lib), in fact for whatever reason /opt/tomcat6/lib was being ignored, but /usr/share/tomcat6/lib worked.

And now I succesfully have solr started in tomcat.

I realize that these are all tomcat6 issues, not solr issues. But others trying to get solr started may have similar problems. Appreciate the tip that the "Error filterStart" was probably related to new solr 4.3.0 logging setup, which ended up confirmed.

Jonathan

On 5/30/2013 3:19 PM, Jonathan Rochkind wrote:
Okay, sadly, i still can't get this to work.

Following the instructions at:
https://wiki.apache.org/solr/SolrLogging#Using_the_example_logging_setup_in_containers_other_than_Jetty


I copied solr/example/lib/ext/*.jar into my tomcat's ./lib, and copied
solr/example/resources/log4j.properties there too.

The result is unchanged, when I start tomcat, it still says:

May 30, 2013 3:15:00 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
May 30, 2013 3:15:00 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/solr] startup failed due to previous errors


This is very frustrating. I have no way to even be sure this problem
really is logging related, although it seems likely. But I feel like I'm
just randomly moving chairs around and hoping the error will go away,
and it does not.

Is there anyone that has succesfully run Solr 4.3.0 in a Tomcat 6? Can
we even confirm this is possible?  Can anyone give me any other hints,
especially does anyone have any idea how to get some more logging out of
Tomcat, then the fairly useless "Error filterSTart"?

The only reason I'm using tomcat is that we always have in our current
Solr 1.4-based application, for reasons lost to time. I was hoping to
upgrade to Solr 4.3, without simultaneously switching our infrastructure
from tomcat to jetty, change one thing at a time. I suppose I might need
to abandon that and switch to jetty too, but I'd rather not.

Reply via email to