Hi all, and especially Yonik :),

Just for grins, I'm trying Solr with Resin. I did the following:

1. Copied solr-nightly.war into <resin root>/webapps/.

2. Cloned/edited the resin.conf file to include a mapping for Solr, by adding:

      <web-app id='/solr/'>
        <document-directory>webapps/solr-nightly</document-directory>
      </web-app>

3. Started up Resin.

It created the <resin root>/webapps/solr-nightly directory, as expected, but then when I tried to use the Solr servlet it complained about not finding solrconfig.xml (see stack trace at end of email).

4. I realized that there was no solrconf folder included by default in the .war, so I added it inside of the <resin root>/webapps/solr-nightly directory. Same result. Tried moving it to inside of WEB-INF, same thing.

5. I uncommented out the lines in the web.xml file that Yonik indicated were necessary to get Resin to work properly with Solr, but that didn't change anything.

So I figured I'd ask here about the "correct" way to configure Solr with Resin, rather than continue to thrash. It would help if I was more of a Resin jock, but so far my usage has been limited to futzing with the Resin config file to add simple servlets.

Thanks,

-- Ken

PS - I'm using Resin-3.0.17, running on Mac OS X 10.4.5, if that matters.

====================================================================
java.lang.RuntimeException: Can't find resource solrconfig.xml
        at org.apache.solr.core.Config.openResource(Config.java:259)
        at org.apache.solr.core.SolrConfig.<clinit>(SolrConfig.java:33)
at org.apache.solr.update.SolrIndexConfig.<clinit>(SolrIndexConfig.java:34)
        at org.apache.solr.core.SolrCore.<clinit>(SolrCore.java:71)
        at org.apache.solr.servlet.SolrServlet.init(SolrServlet.java:58)
        at javax.servlet.GenericServlet.init(GenericServlet.java:69)
at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:600) at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:152)
        at com.caucho.server.webapp.Application.start(Application.java:1599)
at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:579) at com.caucho.server.deploy.DeployController.restartImpl(DeployController.java:542) at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.request(StartAutoRedeployAutoStrategy.java:125) at com.caucho.server.deploy.DeployController.request(DeployController.java:512) at com.caucho.server.webapp.ApplicationContainer.getApplication(ApplicationContainer.java:847) at com.caucho.server.webapp.ApplicationContainer.buildInvocation(ApplicationContainer.java:687)
        at com.caucho.server.host.Host.buildInvocation(Host.java:421)
at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:316) at com.caucho.server.resin.ServletServer.buildInvocation(ServletServer.java:582) at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:198) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:262)
        at com.caucho.server.port.TcpConnection.run(TcpConnection.java:388)
        at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490)
        at com.caucho.util.ThreadPool.run(ThreadPool.java:423)
        at java.lang.Thread.run(Thread.java:613)


--
Ken Krugler
Krugle, Inc.
+1 530-210-6378
"Find Code, Find Answers"

Reply via email to