Don't know about other servlet containers, but i can confirm Resin 3 breaks if you try to load 2 completely independent webapps into it that both use solr with jmx enabled.
I also had a similar issue with Blaze DS (library for flash remoting that I'm using to power the UI for my webapp), but Blaze DS uses the display-name from the web.xml to register MBeans under. So making sure each webapp had a different display name fixed that issue. However solr always insists in using "solr" regardless of ... well pretty much everything ;) here's a part of the stack trace for informational purposes: 13:23:19,572 WARN JmxMonitoredMap:139 - Failed to register info bean: org.apache.solr.highlight.HtmlFormatter javax.management.InstanceNotFoundException: solr:type=org.apache.solr.highlight.HtmlFormatter,id=org.apache.solr.highlight.HtmlFormatter at com.caucho.jmx.MBeanContext.unregisterMBean(MBeanContext.java:285) at com.caucho.jmx.AbstractMBeanServer.unregisterMBean(AbstractMBeanServer.java:477) at org.apache.solr.core.JmxMonitoredMap.put(JmxMonitoredMap.java:135) at org.apache.solr.core.JmxMonitoredMap.put(JmxMonitoredMap.java:47) at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:508) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:605) at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83) at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:144) at com.caucho.server.dispatch.FilterManager.init(FilterManager.java:91) at com.caucho.server.webapp.WebApp.start(WebApp.java:1871) note1: I get a bunch of these, one for every mbean note2: I did notice the javax.management.InstanceNotFoundException that suggests it means the mentioned Mbean doesn't exist. However if i enable jmx for any one of my applications everything works. However if i enable it for more then one then one webapp it starts giving these errors for every webapp after the first that gets loaded. That and my experiences with fixing this same error under Blaze DS suggests to me a very high likelyhood of some sort of name collision going on. Constantijn On Tue, Mar 23, 2010 at 11:23 PM, Chris Hostetter <hossman_luc...@fucit.org>wrote: > > : I'm having a problem trying to get multiple solr applications to run in > the > : same servlet container because they all try to claim "solr" as a > > Hmmm... i think you're in new territory here. I don't know that anyone > has ever mentioned doing this before. > > Honestly: I thought the hierarchical nature of JMX would mean that > the Servlet Container would start up a JMX server, and present a seperate > "branch" to each webapp in isolation -- based on what you're saying it > sounds like different webapps can't actually break eachother by mucking > with JMX Beans/values. > > : If a configuration option like <jmx name="solr1" /> exists that'd fix my > : problem but i can't seem to find it in the documentation. > > It doesn't, but it would probably be pretty trivial to add if you want to > take a stab at a patch for it. > > > -Hoss > >