users@glassfish.java.net

Problems when running two domains in the same machine

From: <glassfish_at_javadesktop.org>
Date: Tue, 08 Jul 2008 09:01:16 PDT

Hello,
I've tried to configure two domains (representing two environments, lets say DEV and QUALITY) for the same application.
When I've tried to start the DAS for DEV domain while DAS for QUALITY domain was running, I can not start the DAS for DEV. I had this stack trace:
[#|2008-07-07T16:06:26.808-0400|WARNING|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=14;_ThreadName=Thread-13;_RequestID=a49b431c-5a0c-4999-8881-0b9adeae98c9;|[b]javax.management.InstanceAlreadyExistsException[/b]: "amx:j2eeType=J2EEServer,name=server"
com.sun.jmx.mbeanserver.RepositorySupport.addMBean(RepositorySupport.java:452)
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1410)
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:936)
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:337)
com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:497)
com.sun.enterprise.interceptor.DynamicInterceptor.registerMBean(DynamicInterceptor.java:263)
com.sun.enterprise.management.support.Loader.registerNew(Loader.java:427)
com.sun.enterprise.management.support.LoaderOfOld.registerNew(LoaderOfOld.java:212)
com.sun.enterprise.management.support.LoaderOfOld.ensureNew(LoaderOfOld.java:397)
com.sun.enterprise.management.support.LoaderOfOld.syncWithOld(LoaderOfOld.java:417)
com.sun.enterprise.management.support.Loader._sync(Loader.java:548)
com.sun.enterprise.management.support.Loader.sync(Loader.java:522)
com.sun.enterprise.management.support.Loader.handleMBeanRegistered(Loader.java:209)
com.sun.enterprise.management.support.LoaderRegThread.processRegistration(LoaderRegThread.java:204)
com.sun.enterprise.management.support.LoaderRegThread.process(LoaderRegThread.java:253)
com.sun.enterprise.management.support.LoaderRegThread.run(LoaderRegThread.java:154)

Any help will be very helpful.
[Message sent by forum member 'adelcast' (adelcast)]

http://forums.java.net/jive/thread.jspa?messageID=285101