Sie sind auf Seite 1von 4

How to change port number in jboss ?As we all know that JBoss is running on port number 8080 as default.

If you want to change the port number of your JBoss (jBoss 4) then thats also too easy. Just follow the following steps 1. Open the JBoss Folder 2. Goto its Deploy folder 3. Goto the jbossweb-tomcat55.sar 4. Find out the server.xml inside that folder. Actually this is the server configure file of the BuildIn Tomcat. 5. Find the folowing Tag <Connector port=8080? address=${jboss.bind.address}. -----------------------------------------------------------------------------------------------------------Logs 4J path E:\Wissen Public\jboss-4.0.2\jboss-4.0.2\server\node2\conf <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender"> <ErrorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> <param name="File" value="E:/Wissen Public/jboss-4.0.2/jboss4.0.2/LOGS/server.log"/> <param name="Append" value="false"/> JMX-consloe and web-console securtity JMX-Console E:\Wissen Public\jboss-4.0.2\jboss-4.0.2\server\node2\deploy\jmx-console.war\WEBINF\jboss-web.xml Uncomment to this <security-domain>java:/jaas/jmx-console</security-domain> E:\Wissen Public\jboss-4.0.2\jboss-4.0.2\server\node2\deploy\jmx-console.war\WEBINF\web.xml secured access to the HTML JMX console.--> <security-constraint> <web-resource-collection> <web-resource-name>HtmlAdaptor</web-resource-name> <description>An example security config that only allows users with the role JBossAdmin to access the HTML JMX console web application </description> <url-pattern>/*</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> </web-resource-collection> <auth-constraint> <role-name>JBossAdmin</role-name>

Classification: Wissen Public

</auth-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> <realm-name>JBoss JMX Console</realm-name> </login-config> <security-role> <role-name>JBossAdmin</role-name> </security-role> </web-app> Web-console E:\Wissen Public\jboss-4.0.2\jboss-4.0.2\server\node2\deploy\management\consolemgr.sar\web-console.war\WEB-INF <security-constraint> <web-resource-collection> <web-resource-name>HtmlAdaptor</web-resource-name> <description>An example security config that only allows users with ----------------------------------------------------------------------User names and roles E:\Wissen Public\jboss-4.0.2\jboss-4.0.2\server\node2\conf\props 1)roles =jmx-console-roles 2)users =jmx-console-users

Multiple Instances with same port Default port no 8080 we have 3 type of port configuration in the below path E:\Wissen Public\jboss-4.0.2\jboss-4.0.2\docs\examples\binding-manager 1)node-01 2)node-02 3)node-03

Classification: Wissen Public

E:\Wissen Public\jboss-4.0.2\jboss-4.0.2\server\node1\conf/jboss-service.xml Instance-1 <mbean code="org.jboss.services.binding.ServiceBindingManager" name="jboss.system:service=ServiceBindingManager"> <attribute name="ServerName">ports-01</attribute> <attribute name="StoreURL">${ Instance-2 mbean code="org.jboss.services.binding.ServiceBindingManager" name="jboss.system:service=ServiceBindingManager"> <attribute name="ServerName">ports-02</attribute> <attribute name="StoreURL">${

Keep the ports like this in the jboss-service.xml it will work with the same ports. If the instances is not in the cluster you will get the below error message mbean code="org.jboss.services.binding.ServiceBindingManager" name="jboss.system:service=ServiceBindingManager"> <attribute name="ServerName">ports-01</attribute> <attribute name="StoreURL">${">${ For that We need to change the following port in the below path .default is 4446 I chaged as 4449 E:\Wissen Public\jboss-4.0.2\jboss-4.0.2\server\all\deploy/cluste-service.xml <!-- the JRMPInvokerHA creates a thread per request. This implementation uses a pool of threads --> <mbean code="org.jboss.invocation.pooled.server.PooledInvokerHA" name="jboss:service=invoker,type=pooledha"> <attribute name="NumAcceptThreads">1</attribute> <attribute name="MaxPoolSize">300</attribute> <attribute name="ClientMaxPoolSize">300</attribute> <attribute name="SocketTimeout">60000</attribute> <attribute name="ServerBindAddress">${jboss.bind.address}</attribute> <attribute name="ServerBindPort">4449</attribute>

Classification: Wissen Public

<attribute name="ClientConnectAddress">${jboss.bind.address}</attribute> <attribute name="ClientConnectPort">0</attribute> <attribute name="EnableTcpNoDelay">false</attribute> <depends optional-attributename="TransactionManagerService">jboss:service=TransactionManager</depends> </mbean> -----------------------------------------------------------------------

Classification: Wissen Public

Das könnte Ihnen auch gefallen