- From: KC Braunschweig <
>
- To:
- Subject: [chef] solr issue trying to start chef 0.10 rc server
- Date: Fri, 15 Apr 2011 21:52:06 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=G68xrKBCwymFmVhy6YLXeD0igTT/D2QNkB26cfNA5vGS5Vm3VMXpASf3R47Db7UR1L VTV2CUkhRc0QDBiXIKnL8ZX9a/jamV+RIbPCm9N0u8Fep/JKBH87vWARu/ZJwel8dzWo cbd7xGsJLsa5ip/Na8LiOaLxNmjRjux5+2cLE=
So I've been trying to go through the manual chef server setup with
0.10.0.rc0 using the gem install on RHEL 5.6 and hit a snag with solr.
-chef-expander is running
- when trying to start chef-solr via the init script, it starts up and
jetty binds to the port but solr isn't working:
# ps -ef | grep java
root 13287 1 0 21:42 ? 00:00:00 java -Xmx256M -Xms256M
-Dsolr.data.dir=/var/chef/solr/data -Dsolr.solr.home=/var/chef/solr
-jar /var/chef/solr-jetty/start.jar
But the logs reveal a problem (see the bottom). I'm guessing something
simple about my solr config is wrong. Hoping someone can help. The
server api and server webui will start up but solr returns a 404
whenever you try t hit it so they server can't do much.
# cat solr.rb
log_location STDOUT
solr_url "
http://localhost:8983"
supportdir = "/var/chef"
solr_jetty_path "/var/chef/solr-jetty"
solr_data_path "/var/chef/solr/data"
solr_home_path "/var/chef/solr"
solr_heap_size "256M"
Here is the log output:
[Fri, 15 Apr 2011 21:42:52 -0700] INFO: Daemonizing..
[Fri, 15 Apr 2011 21:42:52 -0700] INFO: Forked, in 13287. Priveleges: 0 0
[Fri, 15 Apr 2011 21:42:52 -0700] INFO: Starting Solr with java
-Xmx256M -Xms256M -Dsolr.data.dir=/var/chef/solr/data
-Dsolr.solr.home=/var/chef/solr -jar /var/chef/solr-jetty/start.jar
2011-04-15 21:42:52.214::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
2011-04-15 21:42:52.285::INFO: jetty-6.1.3
2011-04-15 21:42:52.376::INFO: NO JSP Support for /solr, did not find
org.apache.jasper.servlet.JspServlet
2011-04-15 21:42:52.456::WARN: failed SolrRequestFilter
java.lang.NoClassDefFoundError: org.apache.solr.core.SolrResourceLoader
at java.lang.Class.initializeClass(libgcj.so.7rh)
at org.apache.solr.core.Config.<init>(Config.java:93)
at
org.apache.solr.servlet.SolrDispatchFilter.<init>(SolrDispatchFilter.java:65)
at java.lang.Class.newInstance(libgcj.so.7rh)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:94)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:210)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
Caused by: java.lang.ClassNotFoundException:
java.util.concurrent.ConcurrentHashMap not found in
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
at java.lang.Class.forName(libgcj.so.7rh)
at java.lang.Class.initializeClass(libgcj.so.7rh)
...25 more
2011-04-15 21:42:52.480::WARN: failed
/solr,jar:file:/var/chef/solr-jetty/webapps/solr.war!/}
java.lang.NoClassDefFoundError: org.apache.solr.core.SolrResourceLoader
at java.lang.Class.initializeClass(libgcj.so.7rh)
at org.apache.solr.core.Config.<init>(Config.java:93)
at
org.apache.solr.servlet.SolrDispatchFilter.<init>(SolrDispatchFilter.java:65)
at java.lang.Class.newInstance(libgcj.so.7rh)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:94)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:210)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
Caused by: java.lang.ClassNotFoundException:
java.util.concurrent.ConcurrentHashMap not found in
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
at java.lang.Class.forName(libgcj.so.7rh)
at java.lang.Class.initializeClass(libgcj.so.7rh)
...25 more
2011-04-15 21:42:52.480::WARN: failed
java.lang.NoClassDefFoundError: org.apache.solr.core.SolrResourceLoader
at java.lang.Class.initializeClass(libgcj.so.7rh)
at org.apache.solr.core.Config.<init>(Config.java:93)
at
org.apache.solr.servlet.SolrDispatchFilter.<init>(SolrDispatchFilter.java:65)
at java.lang.Class.newInstance(libgcj.so.7rh)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:94)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:210)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
Caused by: java.lang.ClassNotFoundException:
java.util.concurrent.ConcurrentHashMap not found in
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
at java.lang.Class.forName(libgcj.so.7rh)
at java.lang.Class.initializeClass(libgcj.so.7rh)
...25 more
2011-04-15 21:42:52.483::WARN: failed
java.lang.NoClassDefFoundError: org.apache.solr.core.SolrResourceLoader
at java.lang.Class.initializeClass(libgcj.so.7rh)
at org.apache.solr.core.Config.<init>(Config.java:93)
at
org.apache.solr.servlet.SolrDispatchFilter.<init>(SolrDispatchFilter.java:65)
at java.lang.Class.newInstance(libgcj.so.7rh)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:94)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:210)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
Caused by: java.lang.ClassNotFoundException:
java.util.concurrent.ConcurrentHashMap not found in
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
at java.lang.Class.forName(libgcj.so.7rh)
at java.lang.Class.initializeClass(libgcj.so.7rh)
...25 more
2011-04-15 21:42:52.484::WARN: Error starting handlers
java.lang.NoClassDefFoundError: org.apache.solr.core.SolrResourceLoader
at java.lang.Class.initializeClass(libgcj.so.7rh)
at org.apache.solr.core.Config.<init>(Config.java:93)
at
org.apache.solr.servlet.SolrDispatchFilter.<init>(SolrDispatchFilter.java:65)
at java.lang.Class.newInstance(libgcj.so.7rh)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:94)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:210)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
Caused by: java.lang.ClassNotFoundException:
java.util.concurrent.ConcurrentHashMap not found in
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
at java.lang.Class.forName(libgcj.so.7rh)
at java.lang.Class.initializeClass(libgcj.so.7rh)
...25 more
2011-04-15 21:42:52.486::INFO: Started SocketConnector @ 0.0.0.0:8983
KC Braunschweig
- [chef] solr issue trying to start chef 0.10 rc server, KC Braunschweig, 04/15/2011
Archive powered by MHonArc 2.6.16.