[ 
https://issues.apache.org/jira/browse/SOLR-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474296
 ] 

Ryan McKinley commented on SOLR-166:
------------------------------------

running resin on winXP from cwd: c:/tmp

resin.conf:


      <web-app id="/solr" character-encoding="utf-8"
        document-directory="C:/workspace/solr-clean/example/webapps/solr" 
              archive-path="C:/workspace/solr-clean/example/webapps/solr.war">
            <env-entry>
              <env-entry-name>solr/home</env-entry-name>
              <env-entry-type>java.lang.String</env-entry-type>
              
<env-entry-value>C:/workspace/solr-clean/example/solr</env-entry-value>
            </env-entry>
          </web-app>


when i run, i get:

Starting Resin on Mon, 19 Feb 2007 14:05:42 -0800 (PST)

[14:05:43.343] Server[] starting
[14:05:43.343] 
[14:05:43.343] Windows XP 5.1 x86
[14:05:43.343] Java 1.5.0_07-b03, 32, mixed mode, Cp1252, en, Sun Microsystems 
Inc.
[14:05:43.343] resin.home = null
[14:05:43.343] server.root = null
[14:05:43.343] 
[14:05:43.390] http listening to *:8080
[14:05:43.421] Host[] starting
[14:05:43.906] WebApp[http://localhost:8080/solr] starting
[14:05:43.937] SolrServer: init
[14:05:43.937] SolrServlet.init()
[14:05:44.000] Solr home defaulted to 'solr/' (system property solr.solr.home 
not set)
[14:05:44.015] java.lang.ExceptionInInitializerError
[14:05:44.015]  at 
org.apache.solr.update.SolrIndexConfig.<clinit>(SolrIndexConfig.java:36)
[14:05:44.015]  at org.apache.solr.core.SolrCore.<clinit>(SolrCore.java:73)
[14:05:44.015]  at org.apache.solr.servlet.SolrServlet.init(SolrServlet.java:48)
[14:05:44.015]  at javax.servlet.GenericServlet.init(GenericServlet.java:69)
[14:05:44.015]  at 
com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:646)
[14:05:44.015]  at 
com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:587)
[14:05:44.015]  at 
com.caucho.server.dispatch.ServletManager.init(ServletManager.java:154)
[14:05:44.015]  at 
com.caucho.server.webapp.Application.start(Application.java:1654)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
[14:05:44.015]  at 
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
[14:05:44.015]  at 
com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:670)
[14:05:44.015]  at com.caucho.server.host.Host.start(Host.java:420)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
[14:05:44.015]  at 
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
[14:05:44.015]  at 
com.caucho.server.host.HostContainer.start(HostContainer.java:504)
[14:05:44.015]  at 
com.caucho.server.resin.ServletServer.start(ServletServer.java:971)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
[14:05:44.015]  at 
com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.start(DeployController.java:517)
[14:05:44.015]  at 
com.caucho.server.resin.ResinServer.start(ResinServer.java:546)
[14:05:44.015]  at com.caucho.server.resin.Resin.init(Resin.java)
[14:05:44.015]  at com.caucho.server.resin.Resin.main(Resin.java:625)
[14:05:44.015]  at com.caucho.server.http.ResinServer.main(ResinServer.java:61)
[14:05:44.015] Caused by: java.lang.RuntimeException: Error in solrconfig.xml
[14:05:44.015]  at org.apache.solr.core.SolrConfig.<clinit>(SolrConfig.java:82)
[14:05:44.015]  ... 27 more
[14:05:44.015] Caused by: java.lang.RuntimeException: Can't find resource 
'solrconfig.xml' in classpath or 'solr/conf/', cwd=C:\tmp
[14:05:44.015]  at org.apache.solr.core.Config.openResource(Config.java:324)
[14:05:44.015]  at 
org.apache.solr.core.SolrConfig.initConfig(SolrConfig.java:72)
[14:05:44.015]  at org.apache.solr.core.SolrConfig.<clinit>(SolrConfig.java:80)
[14:05:44.015]  ... 27 more
[14:05:44.015] javax.servlet.ServletException: 
java.lang.ExceptionInInitializerError
[14:05:44.015]  at 
com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:618)
[14:05:44.015]  at 
com.caucho.server.dispatch.ServletManager.init(ServletManager.java:154)
[14:05:44.015]  at 
com.caucho.server.webapp.Application.start(Application.java:1654)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
[14:05:44.015]  at 
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
[14:05:44.015]  at 
com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:670)
[14:05:44.015]  at com.caucho.server.host.Host.start(Host.java:420)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
[14:05:44.015]  at 
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
[14:05:44.015]  at 
com.caucho.server.host.HostContainer.start(HostContainer.java:504)
[14:05:44.015]  at 
com.caucho.server.resin.ServletServer.start(ServletServer.java:971)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
[14:05:44.015]  at 
com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.start(DeployController.java:517)
[14:05:44.015]  at 
com.caucho.server.resin.ResinServer.start(ResinServer.java:546)
[14:05:44.015]  at com.caucho.server.resin.Resin.init(Resin.java)
[14:05:44.015]  at com.caucho.server.resin.Resin.main(Resin.java:625)
[14:05:44.015]  at com.caucho.server.http.ResinServer.main(ResinServer.java:61)
[14:05:44.015] Caused by: java.lang.ExceptionInInitializerError
[14:05:44.015]  at 
org.apache.solr.update.SolrIndexConfig.<clinit>(SolrIndexConfig.java:36)
[14:05:44.015]  at org.apache.solr.core.SolrCore.<clinit>(SolrCore.java:73)
[14:05:44.015]  at org.apache.solr.servlet.SolrServlet.init(SolrServlet.java:48)
[14:05:44.015]  at javax.servlet.GenericServlet.init(GenericServlet.java:69)
[14:05:44.015]  at 
com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:646)
[14:05:44.015]  at 
com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:587)
[14:05:44.015]  ... 21 more
[14:05:44.015] Caused by: java.lang.RuntimeException: Error in solrconfig.xml
[14:05:44.015]  at org.apache.solr.core.SolrConfig.<clinit>(SolrConfig.java:82)
[14:05:44.015]  ... 27 more
[14:05:44.015] Caused by: java.lang.RuntimeException: Can't find resource 
'solrconfig.xml' in classpath or 'solr/conf/', cwd=C:\tmp
[14:05:44.015]  at org.apache.solr.core.Config.openResource(Config.java:324)
[14:05:44.015]  at 
org.apache.solr.core.SolrConfig.initConfig(SolrConfig.java:72)
[14:05:44.015]  at org.apache.solr.core.SolrConfig.<clinit>(SolrConfig.java:80)
[14:05:44.015]  ... 27 more
[14:05:44.015] javax.servlet.ServletException: 
java.lang.ExceptionInInitializerError
[14:05:44.015]  at 
com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:618)
[14:05:44.015]  at 
com.caucho.server.dispatch.ServletManager.init(ServletManager.java:154)
[14:05:44.015]  at 
com.caucho.server.webapp.Application.start(Application.java:1654)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
[14:05:44.015]  at 
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
[14:05:44.015]  at 
com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:670)
[14:05:44.015]  at com.caucho.server.host.Host.start(Host.java:420)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
[14:05:44.015]  at 
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
[14:05:44.015]  at 
com.caucho.server.host.HostContainer.start(HostContainer.java:504)
[14:05:44.015]  at 
com.caucho.server.resin.ServletServer.start(ServletServer.java:971)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
[14:05:44.015]  at 
com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
[14:05:44.015]  at 
com.caucho.server.deploy.DeployController.start(DeployController.java:517)
[14:05:44.015]  at 
com.caucho.server.resin.ResinServer.start(ResinServer.java:546)
[14:05:44.015]  at com.caucho.server.resin.Resin.init(Resin.java)
[14:05:44.015]  at com.caucho.server.resin.Resin.main(Resin.java:625)
[14:05:44.015]  at com.caucho.server.http.ResinServer.main(ResinServer.java:61)
[14:05:44.015] Caused by: java.lang.ExceptionInInitializerError
[14:05:44.015]  at 
org.apache.solr.update.SolrIndexConfig.<clinit>(SolrIndexConfig.java:36)
[14:05:44.015]  at org.apache.solr.core.SolrCore.<clinit>(SolrCore.java:73)
[14:05:44.015]  at org.apache.solr.servlet.SolrServlet.init(SolrServlet.java:48)
[14:05:44.015]  at javax.servlet.GenericServlet.init(GenericServlet.java:69)
[14:05:44.015]  at 
com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:646)
[14:05:44.015]  at 
com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:587)
[14:05:44.015]  ... 21 more
[14:05:44.015] Caused by: java.lang.RuntimeException: Error in solrconfig.xml
[14:05:44.015]  at org.apache.solr.core.SolrConfig.<clinit>(SolrConfig.java:82)
[14:05:44.015]  ... 27 more
[14:05:44.015] Caused by: java.lang.RuntimeException: Can't find resource 
'solrconfig.xml' in classpath or 'solr/conf/', cwd=C:\tmp
[14:05:44.015]  at org.apache.solr.core.Config.openResource(Config.java:324)
[14:05:44.015]  at 
org.apache.solr.core.SolrConfig.initConfig(SolrConfig.java:72)
[14:05:44.015]  at org.apache.solr.core.SolrConfig.<clinit>(SolrConfig.java:80)
[14:05:44.015]  ... 27 more



> trunk requires solr.solr.home set even if JNDI is set
> -----------------------------------------------------
>
>                 Key: SOLR-166
>                 URL: https://issues.apache.org/jira/browse/SOLR-166
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Ryan McKinley
>
> The current trunk requires the solr.solr.home property to be set - even if 
> JNDI is configured properly.  
> I think this is because SolrServlet loads before SolrDispatchFilter and calls 
> SolrCore.getSolrCore();
> is there a way to make sure SolrDispatchFilter gets initalized first?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to