[
https://issues.apache.org/jira/browse/SOLR-3764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443691#comment-13443691
]
Hoss Man commented on SOLR-3764:
--------------------------------
Steps to reproduce...
1) run the Solr 3.6.1 example and index some data
2) checkout the 4x branch, and run "cd solr && ant example && cd example"
3) run 4x, pointed to the existing 3.6.1 solr home...
{noformat}
hossman@frisbee:~/lucene/4x_dev/solr/example$ java
-Dsolr.solr.home=/home/hossman/lucene-3.6.1_tag/solr/example/solr -jar start.jar
2012-08-28 17:20:01.656:INFO:oejs.Server:jetty-8.1.2.v20120308
2012-08-28 17:20:01.668:INFO:oejdp.ScanningAppProvider:Deployment monitor
/home/hossman/lucene/4x_dev/solr/example/contexts at interval 0
2012-08-28 17:20:01.671:INFO:oejd.DeploymentManager:Deployable added:
/home/hossman/lucene/4x_dev/solr/example/contexts/solr.xml
2012-08-28 17:20:02.208:INFO:oejw.StandardDescriptorProcessor:NO JSP Support
for /solr, did not find org.apache.jasper.servlet.JspServlet
2012-08-28 17:20:02.225:INFO:oejsh.ContextHandler:started
o.e.j.w.WebAppContext{/solr,file:/home/hossman/lucene/4x_dev/solr/example/solr-webapp/webapp/},/home/hossman/lucene/4x_dev/solr/example/webapps/solr.war
2012-08-28 17:20:02.225:INFO:oejsh.ContextHandler:started
o.e.j.w.WebAppContext{/solr,file:/home/hossman/lucene/4x_dev/solr/example/solr-webapp/webapp/},/home/hossman/lucene/4x_dev/solr/example/webapps/solr.war
Aug 28, 2012 5:20:02 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: JNDI not configured for solr (NoInitialContextEx)
Aug 28, 2012 5:20:02 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: using system property solr.solr.home:
/home/hossman/lucene-3.6.1_tag/solr/example/solr
Aug 28, 2012 5:20:02 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: new SolrResourceLoader for deduced Solr Home:
'/home/hossman/lucene-3.6.1_tag/solr/example/solr/'
Aug 28, 2012 5:20:02 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
Aug 28, 2012 5:20:02 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: JNDI not configured for solr (NoInitialContextEx)
Aug 28, 2012 5:20:02 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: using system property solr.solr.home:
/home/hossman/lucene-3.6.1_tag/solr/example/solr
Aug 28, 2012 5:20:02 PM org.apache.solr.core.CoreContainer$Initializer
initialize
INFO: looking for solr.xml:
/home/hossman/lucene-3.6.1_tag/solr/example/solr/solr.xml
Aug 28, 2012 5:20:02 PM org.apache.solr.core.CoreContainer <init>
INFO: New CoreContainer 420745445
Aug 28, 2012 5:20:02 PM org.apache.solr.core.CoreContainer$Initializer
initialize
INFO: no solr.xml file found - using default
Aug 28, 2012 5:20:02 PM org.apache.solr.core.CoreContainer load
INFO: Loading CoreContainer using Solr Home:
'/home/hossman/lucene-3.6.1_tag/solr/example/solr/'
Aug 28, 2012 5:20:02 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: new SolrResourceLoader for directory:
'/home/hossman/lucene-3.6.1_tag/solr/example/solr/'
Aug 28, 2012 5:20:02 PM org.apache.solr.core.CoreContainer load
INFO: Registering Log Listener
Aug 28, 2012 5:20:02 PM org.apache.solr.core.CoreContainer create
INFO: Creating SolrCore 'collection1' using instanceDir:
/home/hossman/lucene-3.6.1_tag/solr/example/solr/collection1
Aug 28, 2012 5:20:02 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: new SolrResourceLoader for directory:
'/home/hossman/lucene-3.6.1_tag/solr/example/solr/collection1/'
Aug 28, 2012 5:20:02 PM org.apache.solr.common.SolrException log
SEVERE: null:java.io.IOException: Can't find resource 'solrconfig.xml' in
classpath or
'/home/hossman/lucene-3.6.1_tag/solr/example/solr/collection1/conf/',
cwd=/home/hossman/lucene/4x_dev/solr/example
at
org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:317)
at
org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:283)
at org.apache.solr.core.Config.<init>(Config.java:111)
at org.apache.solr.core.Config.<init>(Config.java:78)
at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:117)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:780)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:539)
at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:312)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:106)
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:754)
at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:258)
at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1221)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699)
at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454)
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:63)
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:263)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at
org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1215)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1138)
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:457)
at org.eclipse.jetty.start.Main.start(Main.java:602)
at org.eclipse.jetty.start.Main.main(Main.java:82)
Aug 28, 2012 5:20:02 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: user.dir=/home/hossman/lucene/4x_dev/solr/example
Aug 28, 2012 5:20:02 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init() done
2012-08-28 17:20:02.447:INFO:oejs.AbstractConnector:Started
[email protected]:8983
{noformat}
We should either fix this so it continues to assume that "." is the instanceDir
for a solr home with no solr.xml file (as 3x did) or -- if this behavior is
neccessary for some reason i don't understand -- then heavily document that
users who upgrade with existing configs need to add this directory and move
their existing files into it.
But if we go that route, then it seems like it would just be better to
completley remove the support for solr instances w/o a solr.xml files, and just
tell people who upgrade "add this file to your solr home dir" and it can have
instanceDir="." in it for the default core.
> Upgrading to Solr 4 from Solr 3.x doesn't support "single core" mode Solr
> Home dirs (ie: all 3.x examples)
> ----------------------------------------------------------------------------------------------------------
>
> Key: SOLR-3764
> URL: https://issues.apache.org/jira/browse/SOLR-3764
> Project: Solr
> Issue Type: Bug
> Affects Versions: 4.0-ALPHA, 4.0-BETA
> Reporter: Hoss Man
> Priority: Blocker
> Fix For: 4.0
>
>
> if users were previously using a "Solr Home" based on the solr example, and
> attempt to upgrade to Solr 4 using their existing Solr Home dir, they will
> get an error because the implicit behavior when no solr.xml file is found
> seems to be assuming that a "./collection1" instanceDir will exist.
--
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: [email protected]
For additional commands, e-mail: [email protected]