Gianluca Varisco created SOLR-3978:
--------------------------------------

             Summary: CoreAdmin - configName definition
                 Key: SOLR-3978
                 URL: https://issues.apache.org/jira/browse/SOLR-3978
             Project: Solr
          Issue Type: Bug
          Components: multicore
         Environment: * Solr 3.6.1
* Jetty 8.1.5.v20120716
            Reporter: Gianluca Varisco
            Priority: Minor


Hello,

I'm trying to define a bunch of cores as follows:

<core name="venus" instanceDir="/opt/solr-3.6.1/staging/venus/" 
dataDir="/opt/solr-3.6.1/staging/venus/data/" 
configName="/shop/www/htdocs/venus/shop.staging/solr/app/conf/solrconfig.xml" 
schemaName="/shop/www/htdocs/venus/shop.staging/solr/app/conf/schema.xml" />

Is it possible to point configName and schemaName to a different path? It works 
if conf/solrconfig.xml is added in /opt/solr-3.6.1/staging/venus/

Am I missing something? Trace output is attached.

SEVERE: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in 
classpath or '/opt/solr-3.6.1/staging/venus/conf/', cwd=/opt/jetty/staging
        at 
org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:273)
        at 
org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:239)
        at org.apache.solr.core.Config.<init>(Config.java:141)
        at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:138)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:452)
        at org.apache.solr.core.CoreContainer.load(CoreContainer.java:332)
        at org.apache.solr.core.CoreContainer.load(CoreContainer.java:216)
        at 
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:161)
        at 
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:96)
        at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:114)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at 
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:719)
        at 
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:258)
        at 
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1233)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:701)
        at 
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:475)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at 
org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:36)
        at 
org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:183)
        at 
org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:491)
        at 
org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:138)
        at 
org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:142)
        at 
org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:53)
        at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:604)
        at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:535)
        at org.eclipse.jetty.util.Scanner.scan(Scanner.java:398)
        at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:332)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at 
org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:118)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at 
org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:552)
        at 
org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:227)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at 
org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:75)
        at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:53)
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:91)
        at org.eclipse.jetty.server.Server.doStart(Server.java:272)
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at 
org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1260)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1183)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:462)
        at org.eclipse.jetty.start.Main.start(Main.java:610)
        at org.eclipse.jetty.start.Main.main(Main.java:86)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to