I am trying to follow http://wiki.jboss.org/wiki/ConfiguringMultipleJBossInstancesOnOneMachine to configure two JBoss instances running on my machine, with different ports.
1. I unzip the jboss packet 2. I copy jboss-4.2.1.GA\server\default to jboss-4.2.1.GA\server\ports-01 3. in ports-01\conf\jboss-service-xml, I uncomment and configure: | <mbean code="org.jboss.services.binding.ServiceBindingManager" | name="jboss.system:service=ServiceBindingManager"> | <attribute name="ServerName">ports-01</attribute> | <attribute name="StoreURL">file:../server/port-bindings.xml</attribute> | <attribute name="StoreFactoryClassName"> | org.jboss.services.binding.XMLServicesStoreFactory | </attribute> | </mbean> | 4. I copy docs\examples\binding-manager\sample-bindings.xml to server\port-bindings.xml This should do it AFAIK, but I get a port exception when starting up: > run.bat -c ports-01 ... | | 13:19:50,078 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8183/ | 13:19:50,078 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml | 13:19:52,093 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc. | 13:19:52,093 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer | 13:19:52,546 INFO [TransactionManagerService] Starting recovery manager | 13:19:52,656 INFO [TransactionManagerService] Recovery manager started | 13:19:52,656 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference | 13:19:58,703 INFO [EJB3Deployer] Starting java:comp multiplexer | 13:20:01,296 INFO [ServiceEndpointManager] jbossws-1.2.1.GA (build=200704151756) | 13:20:04,265 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the | java.library.path: C:\Program Files\Java\jdk1.5.0_09\bin;.;C:\WINDOWS\system32;C:\WINDOWS;D:\ORAHOME102\bin;C:\Program Files\PC Connectivity Solution\;D:\ | java\maven\maven-2.0.7\bin;C:\Program Files\Java\jdk1.5.0_09\bin;D:\servers\ORAPORTAL\bin;D:\servers\ORAPORTAL\jlib;D:\servers\ORACLEHOME\bin;D:\servers\OR | ACLEHOME\jlib;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\devtools\jdev1012\jdk\bin;C:\PROGRA~1\XRay;C:\Program Files\MySQL\MySQL Server 5.0 | \bin;D:\java\ant\apache-ant-1.7.0-bin\apache-ant-1.7.0\bin;d:\Program Files\Subversion\bin;C:\Program Files\Common Files\GTK\2.0\bin;D:\Program Files\Quick | Time\QTSystem\;D:\product\10.1.3.1\OraBPEL_1\MOBILE\sdk\bin;d:\Sun\jwsdp-2.0\jwsdp-shared\bin | 13:20:04,656 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8180 | 13:20:04,656 ERROR [AjpProtocol] Error initializing endpoint | java.net.BindException: Address already in use: JVM_Bind:8109 | at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501) | at org.apache.coyote.ajp.AjpProtocol.init(AjpProtocol.java:174) | at org.apache.catalina.connector.Connector.initialize(Connector.java:1059) | at org.apache.catalina.core.StandardService.initialize(StandardService.java:669) | at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792) | at org.apache.catalina.startup.Catalina.load(Catalina.java:518) | at org.apache.catalina.startup.Catalina.start(Catalina.java:558) | 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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297) | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.web.tomcat.service.JBossWeb.startService(JBossWeb.java:440) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97) | at org.jboss.deployment.SubDeployerInterceptor.invokeNext(SubDeployerInterceptor.java:124) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:109) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145437#4145437 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145437 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user