Stop!!!! It was my fault! Unfortunatelly a secound identical web.xml went into tomcat! That caused the double registration. Stefan
________________________________ Von: Liebig, Stefan [mailto:[EMAIL PROTECTED] Gesendet: Mi 24.08.2005 10:01 An: [email protected] Betreff: JMX-Problems when switching from 1.1 beta 2 to 1.1 beta 3 When switching from HM 1.1 beta 2 to HM 1.1 beta 3 I got errors when starting webapps in tomcat 5.0 using the HM jmx extensions. The Exception is: HiveMind error: Registering MBean hivemind:module=spirit.proxy.server,type=service,id=ProxyMBean failed - Cause: javax.management.InstanceAlreadyExistsException: hivemind:module=spirit.proxy.server,type=service,id=ProxyMBean - Stacktrace: javax.management.InstanceAlreadyExistsException: hivemind:module=spirit.proxy.server,type=service,id=ProxyMBean at com.sun.jmx.mbeanserver.RepositorySupport.addMBean(RepositorySupport.java:452) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1410) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:936) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:337) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:497) at $MBeanServer_105e7609813.registerMBean($MBeanServer_105e7609813.java) at org.apache.hivemind.management.impl.MBeanRegistryImpl.registerMBean(MBeanRegistryImpl.java:203) at org.apache.hivemind.management.impl.MBeanRegistryImpl.registerServiceAsMBean(MBeanRegistryImpl.java:133) at org.apache.hivemind.management.impl.MBeanRegistryImpl.processContributions(MBeanRegistryImpl.java:100) at org.apache.hivemind.management.impl.MBeanRegistryImpl.<init>(MBeanRegistryImpl.java:85) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.apache.hivemind.util.ConstructorUtils.invoke(ConstructorUtils.java:139) at org.apache.hivemind.service.impl.BuilderFactoryLogic.instantiateExplicitConstructorInstance(BuilderFactoryLogic.java:135) at org.apache.hivemind.service.impl.BuilderFactoryLogic.instantiateCoreServiceInstance(BuilderFactoryLogic.java:109) at org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:75) at org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42) at org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:84) at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:107) at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:157) at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:139) at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:68) at $MBeanRegistry_105e7609810._service($MBeanRegistry_105e7609810.java) at $MBeanRegistry_105e7609810._instantiateServiceImplementation($MBeanRegistry_105e7609810.java) at org.apache.hivemind.impl.servicemodel.SingletonServiceModel.instantiateService(SingletonServiceModel.java:273) at org.apache.hivemind.impl.ServicePointImpl.forceServiceInstantiation(ServicePointImpl.java:309) at org.apache.hivemind.service.impl.EagerLoader.run(EagerLoader.java:39) at org.apache.hivemind.impl.StartupImpl.run(StartupImpl.java:45) at $Runnable_105e76097f8.run($Runnable_105e76097f8.java) at $Runnable_105e76097f7.run($Runnable_105e76097f7.java) at org.apache.hivemind.impl.RegistryInfrastructureImpl.startup(RegistryInfrastructureImpl.java:436) at org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:154) at de.compeople.spirit.core.base.microkernel.hivemind.HiveMindRegistry.createRegistry(HiveMindRegistry.java:225) at de.compeople.spirit.core.base.microkernel.hivemind.HiveMindRegistry.<init>(HiveMindRegistry.java:77) at de.compeople.spirit.core.base.microkernel.hivemind.HiveMindRegistry.<init>(HiveMindRegistry.java:61) at de.compeople.spirit.core.base.microkernel.RegistryAccessor.createSingeltonRegistry(RegistryAccessor.java:133) at de.compeople.spirit.core.base.microkernel.RegistryAccessor.fetchRegistry(RegistryAccessor.java:46) at de.compeople.spirit.core.base.logging.LoggerAccessor.fetchLoggerFactory(LoggerAccessor.java:81) at de.compeople.spirit.core.base.logging.LoggerAccessor.fetchLogger(LoggerAccessor.java:57) at de.compeople.spirit.proxy.server.ProxyCheckAccess.<clinit>(ProxyCheckAccess.java:68) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:212) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3698) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4349) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:480) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) The hivemodule definition for the mbean is: <service-point id="ProxyMBean" interface="de.compeople.spirit.proxy.server.management.IProxyMBean"> </service-point> <contribution configuration-id="hivemind.management.MBeans"> <mbean service-id="spirit.proxy.server.ProxyMBean"/> </contribution> <implementation service-id="spirit.proxy.server.ProxyMBean"> <invoke-factory> <construct class="de.compeople.spirit.proxy.server.management.ProxyMBean"> </construct> </invoke-factory> </implementation> Do you need more information? Stefan
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
