[jboss-user] [Clustering/JBoss] - Re: JBoss5.0.0.Beta1 multiple instances error
Annegret
do-not-reply at jboss.com
Wed Nov 14 04:04:37 EST 2007
Hi,
I use JBoss 5.0.0 Beta 2 and run in the ths same problem : portconflict on 8080
After changing some ports in the server configuration directly additional to the binding file I managed to run 2 instances of JBoss on the same machine.
I had to change additional to the binding file the following ports in the server configuration directly:
JBoss/server/deployers/jbossweb.deployer/server.xml
ports 8080 and 8009
| <Service name="jboss.web">
|
| <!-- A HTTP/1.1 Connector on port 8080 -->
| <Connector port="8080" address="${jboss.bind.address}"
| maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
| emptySessionPath="true"
| enableLookups="false" redirectPort="8443" acceptCount="100"
| connectionTimeout="20000" disableUploadTimeout="true"/>
|
| <snip>
|
| <!-- A AJP 1.3 Connector on port 8009 -->
| <Connector port="8009" address="${jboss.bind.address}"
| emptySessionPath="true" enableLookups="false" redirectPort="8443"
| protocol="AJP/1.3"/>
|
JBoss/server/deploy/cluster-beans.xml
ports 4447, 1100, 1101
| <bean name="JRMPInvokerHA"
| class="org.jboss.invocation.jrmp.server.JRMPInvokerHA">
|
| <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=invoker,type=jrmpha", exposedInterface=org.jboss.invocation.jrmp.server.JRMPInvokerMBean.class, registerDirectly=true)</annotation>
|
| <depends>HAPartition</depends>
|
| <property name="serverAddress">${jboss.bind.address}</property>
| <property name="RMIObjectPort">4447</property>
|
| <!--
| <property name="RMIObjectPort">0</property>
| <property name="RMIClientSocketFactory">custom</property>
| <property name="RMIServerSocketFactory">custom</property>
| -->
| </bean>
|
| <snip>
|
| <bean name="HAJNDI" class="org.jboss.ha.jndi.HANamingService">
|
| <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=HAJNDI", exposedInterface=org.jboss.ha.jndi.HANamingServiceMBean.class, registerDirectly=true)</annotation>
|
| <depends>HAPartition</depends>
|
| <property name="clusterPartition"><inject name="HAPartition"/></property>
|
| <!-- Bind address of bootstrap and HA-JNDI RMI endpoints -->
| <property name="bindAddress">${jboss.bind.address}</property>
| <!-- Port on which the HA-JNDI stub is made available -->
| <property name="port">1100</property>
| <!-- RmiPort to be used by the HA-JNDI service once bound. 0 => auto. -->
| <property name="rmiPort">1101</property>
| <snip>
|
JBoss/server/deploy/messaging/remoting-service.xml
port 4457
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.messaging:service=Connector,transport=bisocket"
| display-name="Bisocket transport Connector">
| <attribute name="Configuration">
| <config>
| <invoker transport="bisocket">
| <attribute name="marshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| <attribute name="unmarshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| <!-- Serialization type must be jms - do not change! -->
| <attribute name="serializationtype" isParam="true">jms</attribute>
| <attribute name="dataType" isParam="true">jms</attribute>
| <attribute name="socket.check_connection" isParam="true">false</attribute>
| <attribute name="timeout">0</attribute>
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">4457</attribute>
| <snip>
|
|
How can I override these ports using the binding file ?
Annegret
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104418#4104418
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104418
More information about the jboss-user
mailing list