Solr 在websphere7中部署出现javax.management.InstanceAlreadyExistsException异常

 在websphere7 中部署solr出现如下异常:

 

[12-12-21 12:11:53:595 CST] 0000000c SystemOut     O 2012-12-21 12:11:53  WARN [server.startup : 0] (JmxMonitoredMap.java:135) - Failed to register info bean: org.apache.solr.handler.component.QueryComponent
javax.management.InstanceAlreadyExistsException: solr/recom:cell=cmsCell01,type=org.apache.solr.handler.component.QueryComponent,node=cmsNode01,process=server1,id=org.apache.solr.handler.component.QueryComponent
	at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:465)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1496)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:975)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:929)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:494)
	at com.ibm.ws.management.PlatformMBeanServer.registerMBean(PlatformMBeanServer.java:484)
	at org.apache.solr.core.JmxMonitoredMap.put(JmxMonitoredMap.java:133)
	at org.apache.solr.core.JmxMonitoredMap.put(JmxMonitoredMap.java:1)
	at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:586)
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:564)
	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:660)
	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:408)
	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:293)
	at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:242)
	at com.huilan.dig.core.DigContext.init(DigContext.java:66)
	at com.huilan.dig.web.listener.WebApplicationContextListener.contextInitialized(WebApplicationContextListener.java:63)
	at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1717)
	at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:384)
	at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:299)
	at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
	at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
	at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:732)
	at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:617)
	at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
	at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1127)
	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1319)
	at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:611)
	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944)
	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:740)
	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2051)
	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:385)
	at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:328)
	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:113)
	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:895)
	at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1646)

 

 

解决办法:

修改solr的配置文件 solrconfig.xml

将solrconfig.xml 配置文件中的  <jmx />  注释掉如: <!-- <jmx />  -->

 

重启服务器就可以了.

 

你可能感兴趣的:(websphere)