Re: Unable to run two multicore Solr instances under Tomcat

2012-11-15 Thread Erick Erickson
Thanks for wrapping this up, it's always nice to get closure, especially
when it comes to googling G..


On Wed, Nov 14, 2012 at 5:34 AM, Adam Neal an...@mass.co.uk wrote:

 Just to wrap up this one. Previously all the lib jars were located in the
 war file on our setup, this was mainly to ease deployment as it's just a
 single file. Moving the lib directory external to the war seems to have
 fixed the issue.

 Thanks for the pointer Erick.


 -Original Message-
 From: Erick Erickson [mailto:erickerick...@gmail.com]
 Sent: Tue 13/11/2012 12:05
 To: solr-user@lucene.apache.org
 Subject: Re: Unable to run two multicore Solr instances under Tomcat


 At a guess you have leftover jars from your earlier installation in your
 classpath that are being picked up. I've always found that figuring out how
 _that_ happened is...er... interesting...

 Best
 Erick


 On Mon, Nov 12, 2012 at 7:44 AM, Adam Neal an...@mass.co.uk wrote:

  Hi,
 
  I have been running two multicore Solr instances under Tomcat using a
  nightly build of 4.0 from September 2011. This has been running fine but
  when I try to update these instances to the release version of 4.0 I'm
  hitting problems when the second instance starts up. If I have one
 instance
  on the release version and one on the nightly build it also works fine.
 
  It's running on a Solaris 10 box using Tomcat 6.0.26 and Java 1.6.0_20
 
  I can run up either instance on it's own and it works fine, it's just
 when
  starting both together so I'm pretty sure my configs aren't the issue.
 
  Snippet from the log is below, please note that I have had to type this
  out so there may be some typos, hopefully not!
 
  Any ideas?
 
  Adam
 
 
  12-Nov-2012 09:58:50 org.apache.solr.core.SolrResourceLoader
 locateSolrHome
  INFO: Using JNDI solr.home: /conf_solr/instance2
  12-Nov-2012 09:58:50 org.apache.solr.core.SolrResourceLoader init
  INFO: new SolrResourceLoader for deduced Solr Home:
 '/conf_solr/instance2/'
  12-Nov-2012 09:58:52 org.apache.solr.servlet.SolrDispatchFilter init
  INFO: SolrDispatchFilter.init()
  12-Nov-2012 09:58:52 org.apache.solr.core.SolrResourceLoader
 locateSolrHome
  INFO: Using JNDI solr.home /conf_solr/instance2
  12-Nov-2012 09:58:52 org.apache.solr.core.CoreContainer$Initializer
  initialize
  INFO: looking for solr.xml: /conf_solr/instance2/solr.xml
  12-Nov-2012 09:58:52 org.apache.solr.core.CoreContainer init
  INFO: New CoreContainer 15471347
  12-Nov-2012 09:58:52 org.apache.solr.core.CoreContainer load
  INFO: Loading CoreContainer using Solr Home: '/conf_solr/instance2/'
  12-Nov-2012 09:58:52 org.apache.solr.core.SolrResourceLoader init
  INFO: new SOlrResourceLoader for directory: '/conf_solr/instance2/'
  12-Nov-2012 09:58:52 org.apache.solr.servlet.SolrDispatchFilter init
  SEVERE: Could not start Solr. Check solr/home property and the logs
  12-Nov-2012 09:58:52 org.apache.solr.common.SolrException log
  SEVERE: null:java.lang.ClassCastException:
  org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast
  to org.apache.xerces.xni.parser.XMLParserConfiguration
  at org.apache.xerces.parsers.DOMParser.init(Unknown Source)
  at org.apache.xerces.parsers.DOMParser.init(Unknown Source)
  at org.apache.xerces.jaxp.DocumentBuilderImpl.init(Unknown
  Source)
  at
 
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
  Source)
  at
 
 com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument(SAX2DOM.java:324)
  at
 
 com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.init(SAX2DOM.java:84)
  at
 
 com.sun.org.apache.xalan.internal.xsltc.runtime.output.TranslateOutputHandlerFactory.getSerializationHanlder(TransletOutputHandlerFactory.java:187)
  at
 
 com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)
  at
 
 com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:298)
  at
  org.apache.solr.core.CoreContainer.copyDoc(CoreContainer.java:551)
  at
 org.apache.solr.core.CoreContainer.load(CoreContainer.java:381)
  at
 org.apache.solr.core.CoreContainer.load(CoreContainer.java:356)
  at
 
 org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:308)
  at
 
 org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:107)
  at
 
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
  at
 
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
  at
 
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115)
  at
 
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
  at
  org.apache.catalina.core.StandardContext.start(StandardContext.java:4488

RE: Unable to run two multicore Solr instances under Tomcat

2012-11-14 Thread Adam Neal
Just to wrap up this one. Previously all the lib jars were located in the war 
file on our setup, this was mainly to ease deployment as it's just a single 
file. Moving the lib directory external to the war seems to have fixed the 
issue.

Thanks for the pointer Erick.


-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com]
Sent: Tue 13/11/2012 12:05
To: solr-user@lucene.apache.org
Subject: Re: Unable to run two multicore Solr instances under Tomcat
 

At a guess you have leftover jars from your earlier installation in your
classpath that are being picked up. I've always found that figuring out how
_that_ happened is...er... interesting...

Best
Erick


On Mon, Nov 12, 2012 at 7:44 AM, Adam Neal an...@mass.co.uk wrote:

 Hi,

 I have been running two multicore Solr instances under Tomcat using a
 nightly build of 4.0 from September 2011. This has been running fine but
 when I try to update these instances to the release version of 4.0 I'm
 hitting problems when the second instance starts up. If I have one instance
 on the release version and one on the nightly build it also works fine.

 It's running on a Solaris 10 box using Tomcat 6.0.26 and Java 1.6.0_20

 I can run up either instance on it's own and it works fine, it's just when
 starting both together so I'm pretty sure my configs aren't the issue.

 Snippet from the log is below, please note that I have had to type this
 out so there may be some typos, hopefully not!

 Any ideas?

 Adam


 12-Nov-2012 09:58:50 org.apache.solr.core.SolrResourceLoader locateSolrHome
 INFO: Using JNDI solr.home: /conf_solr/instance2
 12-Nov-2012 09:58:50 org.apache.solr.core.SolrResourceLoader init
 INFO: new SolrResourceLoader for deduced Solr Home: '/conf_solr/instance2/'
 12-Nov-2012 09:58:52 org.apache.solr.servlet.SolrDispatchFilter init
 INFO: SolrDispatchFilter.init()
 12-Nov-2012 09:58:52 org.apache.solr.core.SolrResourceLoader locateSolrHome
 INFO: Using JNDI solr.home /conf_solr/instance2
 12-Nov-2012 09:58:52 org.apache.solr.core.CoreContainer$Initializer
 initialize
 INFO: looking for solr.xml: /conf_solr/instance2/solr.xml
 12-Nov-2012 09:58:52 org.apache.solr.core.CoreContainer init
 INFO: New CoreContainer 15471347
 12-Nov-2012 09:58:52 org.apache.solr.core.CoreContainer load
 INFO: Loading CoreContainer using Solr Home: '/conf_solr/instance2/'
 12-Nov-2012 09:58:52 org.apache.solr.core.SolrResourceLoader init
 INFO: new SOlrResourceLoader for directory: '/conf_solr/instance2/'
 12-Nov-2012 09:58:52 org.apache.solr.servlet.SolrDispatchFilter init
 SEVERE: Could not start Solr. Check solr/home property and the logs
 12-Nov-2012 09:58:52 org.apache.solr.common.SolrException log
 SEVERE: null:java.lang.ClassCastException:
 org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast
 to org.apache.xerces.xni.parser.XMLParserConfiguration
 at org.apache.xerces.parsers.DOMParser.init(Unknown Source)
 at org.apache.xerces.parsers.DOMParser.init(Unknown Source)
 at org.apache.xerces.jaxp.DocumentBuilderImpl.init(Unknown
 Source)
 at
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
 Source)
 at
 com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument(SAX2DOM.java:324)
 at
 com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.init(SAX2DOM.java:84)
 at
 com.sun.org.apache.xalan.internal.xsltc.runtime.output.TranslateOutputHandlerFactory.getSerializationHanlder(TransletOutputHandlerFactory.java:187)
 at
 com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)
 at
 com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:298)
 at
 org.apache.solr.core.CoreContainer.copyDoc(CoreContainer.java:551)
 at org.apache.solr.core.CoreContainer.load(CoreContainer.java:381)
 at org.apache.solr.core.CoreContainer.load(CoreContainer.java:356)
 at
 org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:308)
 at
 org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:107)
 at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
 at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
 at
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115)
 at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546

Re: Unable to run two multicore Solr instances under Tomcat

2012-11-13 Thread Erick Erickson
At a guess you have leftover jars from your earlier installation in your
classpath that are being picked up. I've always found that figuring out how
_that_ happened is...er... interesting...

Best
Erick


On Mon, Nov 12, 2012 at 7:44 AM, Adam Neal an...@mass.co.uk wrote:

 Hi,

 I have been running two multicore Solr instances under Tomcat using a
 nightly build of 4.0 from September 2011. This has been running fine but
 when I try to update these instances to the release version of 4.0 I'm
 hitting problems when the second instance starts up. If I have one instance
 on the release version and one on the nightly build it also works fine.

 It's running on a Solaris 10 box using Tomcat 6.0.26 and Java 1.6.0_20

 I can run up either instance on it's own and it works fine, it's just when
 starting both together so I'm pretty sure my configs aren't the issue.

 Snippet from the log is below, please note that I have had to type this
 out so there may be some typos, hopefully not!

 Any ideas?

 Adam


 12-Nov-2012 09:58:50 org.apache.solr.core.SolrResourceLoader locateSolrHome
 INFO: Using JNDI solr.home: /conf_solr/instance2
 12-Nov-2012 09:58:50 org.apache.solr.core.SolrResourceLoader init
 INFO: new SolrResourceLoader for deduced Solr Home: '/conf_solr/instance2/'
 12-Nov-2012 09:58:52 org.apache.solr.servlet.SolrDispatchFilter init
 INFO: SolrDispatchFilter.init()
 12-Nov-2012 09:58:52 org.apache.solr.core.SolrResourceLoader locateSolrHome
 INFO: Using JNDI solr.home /conf_solr/instance2
 12-Nov-2012 09:58:52 org.apache.solr.core.CoreContainer$Initializer
 initialize
 INFO: looking for solr.xml: /conf_solr/instance2/solr.xml
 12-Nov-2012 09:58:52 org.apache.solr.core.CoreContainer init
 INFO: New CoreContainer 15471347
 12-Nov-2012 09:58:52 org.apache.solr.core.CoreContainer load
 INFO: Loading CoreContainer using Solr Home: '/conf_solr/instance2/'
 12-Nov-2012 09:58:52 org.apache.solr.core.SolrResourceLoader init
 INFO: new SOlrResourceLoader for directory: '/conf_solr/instance2/'
 12-Nov-2012 09:58:52 org.apache.solr.servlet.SolrDispatchFilter init
 SEVERE: Could not start Solr. Check solr/home property and the logs
 12-Nov-2012 09:58:52 org.apache.solr.common.SolrException log
 SEVERE: null:java.lang.ClassCastException:
 org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast
 to org.apache.xerces.xni.parser.XMLParserConfiguration
 at org.apache.xerces.parsers.DOMParser.init(Unknown Source)
 at org.apache.xerces.parsers.DOMParser.init(Unknown Source)
 at org.apache.xerces.jaxp.DocumentBuilderImpl.init(Unknown
 Source)
 at
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
 Source)
 at
 com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument(SAX2DOM.java:324)
 at
 com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.init(SAX2DOM.java:84)
 at
 com.sun.org.apache.xalan.internal.xsltc.runtime.output.TranslateOutputHandlerFactory.getSerializationHanlder(TransletOutputHandlerFactory.java:187)
 at
 com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)
 at
 com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:298)
 at
 org.apache.solr.core.CoreContainer.copyDoc(CoreContainer.java:551)
 at org.apache.solr.core.CoreContainer.load(CoreContainer.java:381)
 at org.apache.solr.core.CoreContainer.load(CoreContainer.java:356)
 at
 org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:308)
 at
 org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:107)
 at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
 at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
 at
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115)
 at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
 at
 org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
 at
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
 at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 

RE: Unable to run two multicore Solr instances under Tomcat

2012-11-13 Thread Adam Neal
Hi Erick,

Thanks for the info, I figured out that it was a jar problem earlier today but 
I don't think it is an old jar. Both of the instances I ran included the 
extraction libraries and it appears that the problem is due to the 
xercesImpl-2.9.1.jar. If I remove the extraction tool jars from one of the 
instances, or even just the specific jar, then everything works as normal. 
Fortunately I only need the extraction tools in one of my instances so this 
work around is good for now.

I can't see any old jars that would interfere, I will try and test this at some 
point on a clean install of 4.0 and see if the same problem occurs.


-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com]
Sent: Tue 13/11/2012 12:05
To: solr-user@lucene.apache.org
Subject: Re: Unable to run two multicore Solr instances under Tomcat
 
At a guess you have leftover jars from your earlier installation in your
classpath that are being picked up. I've always found that figuring out how
_that_ happened is...er... interesting...

Best
Erick


On Mon, Nov 12, 2012 at 7:44 AM, Adam Neal an...@mass.co.uk wrote:

 Hi,

 I have been running two multicore Solr instances under Tomcat using a
 nightly build of 4.0 from September 2011. This has been running fine but
 when I try to update these instances to the release version of 4.0 I'm
 hitting problems when the second instance starts up. If I have one instance
 on the release version and one on the nightly build it also works fine.

 It's running on a Solaris 10 box using Tomcat 6.0.26 and Java 1.6.0_20

 I can run up either instance on it's own and it works fine, it's just when
 starting both together so I'm pretty sure my configs aren't the issue.

 Snippet from the log is below, please note that I have had to type this
 out so there may be some typos, hopefully not!

 Any ideas?

 Adam


 12-Nov-2012 09:58:50 org.apache.solr.core.SolrResourceLoader locateSolrHome
 INFO: Using JNDI solr.home: /conf_solr/instance2
 12-Nov-2012 09:58:50 org.apache.solr.core.SolrResourceLoader init
 INFO: new SolrResourceLoader for deduced Solr Home: '/conf_solr/instance2/'
 12-Nov-2012 09:58:52 org.apache.solr.servlet.SolrDispatchFilter init
 INFO: SolrDispatchFilter.init()
 12-Nov-2012 09:58:52 org.apache.solr.core.SolrResourceLoader locateSolrHome
 INFO: Using JNDI solr.home /conf_solr/instance2
 12-Nov-2012 09:58:52 org.apache.solr.core.CoreContainer$Initializer
 initialize
 INFO: looking for solr.xml: /conf_solr/instance2/solr.xml
 12-Nov-2012 09:58:52 org.apache.solr.core.CoreContainer init
 INFO: New CoreContainer 15471347
 12-Nov-2012 09:58:52 org.apache.solr.core.CoreContainer load
 INFO: Loading CoreContainer using Solr Home: '/conf_solr/instance2/'
 12-Nov-2012 09:58:52 org.apache.solr.core.SolrResourceLoader init
 INFO: new SOlrResourceLoader for directory: '/conf_solr/instance2/'
 12-Nov-2012 09:58:52 org.apache.solr.servlet.SolrDispatchFilter init
 SEVERE: Could not start Solr. Check solr/home property and the logs
 12-Nov-2012 09:58:52 org.apache.solr.common.SolrException log
 SEVERE: null:java.lang.ClassCastException:
 org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast
 to org.apache.xerces.xni.parser.XMLParserConfiguration
 at org.apache.xerces.parsers.DOMParser.init(Unknown Source)
 at org.apache.xerces.parsers.DOMParser.init(Unknown Source)
 at org.apache.xerces.jaxp.DocumentBuilderImpl.init(Unknown
 Source)
 at
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
 Source)
 at
 com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument(SAX2DOM.java:324)
 at
 com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.init(SAX2DOM.java:84)
 at
 com.sun.org.apache.xalan.internal.xsltc.runtime.output.TranslateOutputHandlerFactory.getSerializationHanlder(TransletOutputHandlerFactory.java:187)
 at
 com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)
 at
 com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:298)
 at
 org.apache.solr.core.CoreContainer.copyDoc(CoreContainer.java:551)
 at org.apache.solr.core.CoreContainer.load(CoreContainer.java:381)
 at org.apache.solr.core.CoreContainer.load(CoreContainer.java:356)
 at
 org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:308)
 at
 org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:107)
 at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
 at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
 at
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115)
 at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838