Skip to main content

Problems when running two domains in the same machine

3 replies [Last post]
adelcast
Offline
Joined: 2003-09-02

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;|javax.management.InstanceAlreadyExistsException: "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.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
adelcast
Offline
Joined: 2003-09-02

Hello again,
The version: Version = Sun Java System Application Server 9.1_01 (build local)
I am using cluster profile but I didn't create any cluster yet.
I am using agent-nodes to manage the standalone instances in each domain.
Actually (see the domain.xml files attached):
Domain DEV: 2 stand-alone instances: server (Admin server) and my application TPA.
Domain DH (Quality): 1 stand-alone instance: server (Admin server).
Alberto

claudio
Offline
Joined: 2003-06-17

Error message suggests there are some mbeam from the server trying to bind on the same port the other domain (server) is already working.

As both domains shares the host and they are working in a cluster, I strongly suggest to have one DAS managing both domains and standalone instances.

This suggestion, will make available more memory for the runtime system, as 2 JVMs (node management and DAS) will not be running.

Claudio Miranda

claudio
Offline
Joined: 2003-06-17

Can you attach the domain.xml of both domains ?
Are you using clustering ?
Are you using node management ?
Which glassfish version ? ./asadmin version -v

Claudio Miranda