0 Replies Latest reply on Nov 20, 2003 9:58 AM by a_ja

    Exception when started two instance on same machine

    a_ja Newbie

      Hi,

      I previously tried setting up a second server on the same machine with 3.2.1 and it worked.

      I perform these tasks:
      1) made a copy of default server and renamed the dir default to 'instance1','instance2'
      2) I took were sample-bindings.xml (from 3.2.2rc1,I renamed to service-binding.xml) and bindingservice-plugin.jar(from 3.2.2rc1).
      and
      Place the xml file somwhere in the %jboss_home%/server, place the bindingservice-plugin.jar in the lib directory of each instance.

      Edit the jboss-service.xml in each instance
      instance1:

      instance1
      file:${jboss.server.base.dir}/service-bindings.xml
      org.jboss.services.binding.XMLServicesStoreFactory


      instance2:

      instance2
      file:${jboss.server.base.dir}/service-bindings.xml
      org.jboss.services.binding.XMLServicesStoreFactory




      started instance1 successfully,but when i start instance2,

      and I get this error:
      23:46:37,410 INFO [MainDeployer] Starting deployment of package: file:/D:/Progr
      amApplication/jboss/server/default2/deploy/jmx-rmi-adaptor.sar/
      23:46:37,430 INFO [RMIAdaptorService] Creating
      23:46:37,430 INFO [RMIAdaptorService] Created
      23:46:37,430 INFO [RMIAdaptorService] Starting
      23:46:37,480 ERROR [RMIAdaptorService] Starting failed
      javax.naming.NameAlreadyBoundException
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
      RemoteCall.java:245)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
      220)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
      at org.jnp.server.NamingServer_Stub.bind(Unknown Source)
      at org.jnp.interfaces.NamingContext.bind(NamingContext.java:452)
      at org.jnp.interfaces.NamingContext.bind(NamingContext.java:423)
      at org.jboss.naming.Util.bind(Util.java:83)
      at org.jboss.naming.Util.bind(Util.java:70)
      at org.jboss.jmx.adaptor.rmi.RMIAdaptorService.startService(RMIAdaptorSe
      rvice.java:168)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      92)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:966)
      at $Proxy11.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:392)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)