tomcat - solr server on tomcat7 on aws is not starting -
my solr server not starting on tomcat7 on aws created using bitnami tomcat stack
below error:
severe: error deploying configuration descriptor /opt/bitnami/apache-tomcat/conf/catalina/localhost/solr.xml java.lang.nullpointerexception
here's full stacktrace:
info: starting service catalina may 15, 2013 7:01:51 org.apache.catalina.core.standardengine startinternal info: starting servlet engine: apache tomcat/7.0.39 may 15, 2013 7:01:51 org.apache.catalina.startup.hostconfig deploydescriptor info: deploying configuration descriptor /opt/bitnami/apache-tomcat/conf/catalina/localhost/solr.xml may 15, 2013 7:01:52 org.apache.catalina.startup.hostconfig deploydescriptor severe: error deploying configuration descriptor /opt/bitnami/apache-tomcat/conf/catalina/localhost/solr.xml java.lang.nullpointerexception @ org.apache.catalina.startup.hostconfig.deploydescriptor(hostconfig.java:625) @ org.apache.catalina.startup.hostconfig$deploydescriptor.run(hostconfig.java:1637) @ java.util.concurrent.executors$runnableadapter.call(executors.java:471) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:334) @ java.util.concurrent.futuretask.run(futuretask.java:166) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:722) may 15, 2013 7:01:52 org.apache.catalina.startup.hostconfig deploydescriptors severe: error waiting multi-thread deployment of context descriptors complete java.util.concurrent.executionexception: java.lang.nullpointerexception @ java.util.concurrent.futuretask$sync.innerget(futuretask.java:252) @ java.util.concurrent.futuretask.get(futuretask.java:111) @ org.apache.catalina.startup.hostconfig.deploydescriptors(hostconfig.java:579) @ org.apache.catalina.startup.hostconfig.deployapps(hostconfig.java:475) @ org.apache.catalina.startup.hostconfig.start(hostconfig.java:1402) @ org.apache.catalina.startup.hostconfig.lifecycleevent(hostconfig.java:318) @ org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:119) @ org.apache.catalina.util.lifecyclebase.firelifecycleevent(lifecyclebase.java:90) @ org.apache.catalina.util.lifecyclebase.setstateinternal(lifecyclebase.java:402) @ org.apache.catalina.util.lifecyclebase.setstate(lifecyclebase.java:347)
the /opt/bitnami/apache-tomcat/conf/catalina/localhost/solr.xml looks this.
<?xml version="1.0" encoding="utf-8"?> <context crosscontext="true" debug="0" docbase="/usr/share/solr/solr.war"> <environment name="solr/home" override="true" value="/usr/share/solr" type="java.lang.string"> </environment></context>
the contents of /usr/share/solr/ looks fine
bitnami@ip-10-144-66-148:/usr/share/solr$ ls -l total 11384 drwxr-xr-x 2 tomcat tomcat 4096 jul 17 2012 bin drwxr-xr-x 5 tomcat tomcat 4096 may 13 13:11 conf drwxr-xr-x 9 tomcat tomcat 4096 jul 17 2012 contrib drwxr-xr-x 2 tomcat tomcat 4096 may 13 13:20 data drwxr-xr-x 2 tomcat tomcat 4096 may 13 13:21 lib -rw-r--r-- 1 tomcat tomcat 2259 jul 17 2012 readme.txt -rw-r--r-- 1 tomcat tomcat 11628199 may 14 12:58 solr.war -rw-r--r-- 1 tomcat tomcat 1676 jul 17 2012 solr.xml
not sure wrong, killing me :-(
the issue because of in file /usr/share/tomcat7/conf/catalina/localhost/solr.xml xml node in small letter should start caps
<context crosscontext="true" debug="0" docbase="/usr/share/solr/solr.war"> <environment name="solr/home" override="true" value="/usr/share/solr" type="java.lang.string"> </environment></context>
should be
<context crosscontext="true" debug="0" docbase="/usr/share/solr/solr.war"> <environment name="solr/home" override="true" value="/usr/share/solr" type="java.lang.string"> </environment></context>
Comments
Post a Comment