Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Solr 4.6.1 on Tomcat 7.0.53 fails to start due to SolrRequestFilter / filterStart errors
ay 05, 2014 3:32:38 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
May 05, 2014 3:32:39 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8983"]
May 05, 2014 3:32:39 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 946 ms
May 05, 2014 3:32:39 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina-Solr
May 05, 2014 3:32:39 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.53
May 05, 2014 3:32:39 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /usr/share/tomcat7-solr/webapps/current-solr/solr.war
May 05, 2014 3:32:55 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
May 05, 2014 3:32:55 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/solr] startup failed due to previous errors
May 05, 2014 3:32:55 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8983"]
May 05, 2014 3:32:55 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 16030 ms
May 06, 2014 1:09:03 PM org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
May 06, 2014 1:09:03 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8983"]
May 06, 2014 1:09:03 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina-Solr
May 06, 2014 1:09:03 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8983"]
May 06, 2014 1:09:03 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8983"]
May 06, 2014 1:11:18 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
May 06, 2014 1:11:18 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8983"]
May 06, 2014 1:11:18 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 926 ms
May 06, 2014 1:11:18 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina-Solr
May 06, 2014 1:11:18 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.53
May 06, 2014 1:11:18 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /usr/share/solr/versions/4.6.1/dist/solr-4.6.1.war
May 06, 2014 1:11:32 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
May 06, 2014 1:11:32 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/solr-4.6.1] startup failed due to previous errors
May 06, 2014 1:11:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/share/solr/versions/4.6.1/dist/test-framework
May 06, 2014 1:11:32 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/share/solr/versions/4.6.1/dist/solrj-lib
May 06, 2014 1:11:32 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8983"]
May 06, 2014 1:11:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 14246 ms
May 06, 2014 1:11:32 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter SolrRequestFilter
org.apache.solr.common.SolrException: Could not find necessary SLF4j logging jars. If using Jetty, the SLF4j logging jars need to go in the jetty lib/ext directory. For other containers, the corresponding directory should be used. For more information, see: http://wiki.apache.org/solr/SolrLogging
at org.apache.solr.servlet.SolrDispatchFilter.<init>(SolrDispatchFilter.java:115)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:140)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.apache.solr.servlet.SolrDispatchFilter.<init>(SolrDispatchFilter.java:113)
... 21 more
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
... 22 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment