For learning purposes, I would just download the distribution from the website, unzip it and run from there. Using built-in Jetty. Then, once you are happy , go back to Tomcat and figure it out.
If that's not an option, you need to find what classpath your tomcat is using. Have you actually tried /usr/share/tomcat/lib ? If not, you need to do some digging. The problem is, this depends on how you start Tomcat (service, command line, etc). But it may print it out in the startup log. But you need to find that. A bit of a catch-22, if you don't where what is. Just as the page says: http://wiki.apache.org/solr/SolrLogging If you are a good with Linux, you can use truss/strace to see which directories Tomcat actually looks in. But if you don't know what I am saying already, don't bother looking it up. :-) The instance libraries and libraries defined in solrconfig.xml are a bit too late for the logging jars. That's why they did not work. Regards, Alex. Personal website: http://www.outerthoughts.com/ Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency On Wed, Apr 16, 2014 at 10:47 PM, Arthur Pemberton <pem...@gmail.com> wrote: > I am trying Solr for the first time, and I am stuck at the error "SEVERE: > Error filterStart" > > My setup: > - Centos 6.x > - OpenJDK 1.7 > - Tomcat 7 > > From reading [1] I believe the issue is missing JAR files, but I have no > idea where to put them, even the wiki is a bit vague on that. > > Lib directories that I am aware of > - /usr/share/tomcat/lib (for tomcat) > - /opt/solr/example/solr/collection1/lib (for my instance) > > > This is the error I get: > > Apr 15, 2014 11:35:36 PM org.apache.catalina.core.StandardContext > filterStart > SEVERE: Exception starting filter SolrRequestFilter > java.lang.NoClassDefFoundError: Failed to initialize Apache Solr: 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.CheckLoggingConfiguration.check(CheckLoggingConfiguration.java:28) > at > org.apache.solr.servlet.BaseSolrFilter.<clinit>(BaseSolrFilter.java:31) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:526) > at java.lang.Class.newInstance(Class.java:374) > at > org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:134) > at > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:256) > at > org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382) > at > org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103) > at > org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306) > 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:633) > at > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) > at > org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:744) > > I would like to get past this so I can try out Solr. > > I have gone as far as putting `<lib > dir="/opt/solr/example/solr/collection1/lib/" regex="*\.jar" />` > into /opt/solr/example/solr/collection1/conf/solrconfig.xml but that did > not help. > > I have used Java before, but purely for academic purposes, so I do not have > experience resolving these dependencies. > > ---- > > [1] https://wiki.apache.org/solr/SolrLogging