Running JBoss and Jonas


This document covers running JBoss and Jonas on the same physical machine. This relates to JBoss 3.0.8 (non-Tomcat version) and Jonas 4.1.2.


It seems the only default port that conflicts is the that used for the jndi lookup. Port 1099.

This port is configured in <jbossinstalldir>/server/<config_type>/conf/jboss-service.xml

Find the following entry;

<mbean code="org.jboss.naming.NamingService"

and amend the <attribute> tag to

  • <attribute name="Port">1097</attribute>

To run clients, such as JUnit tests, put the following file on the classpath when calling the JBoss server. Make sure this will be the first file to be found on the classpath.


Additional notes for JBoss 3.2.6 with Tomcat

There are conflicts which I haven't sorted out as yet. The following notes are a start on sorting them out.

The shutdown.jar supplied with JBoss 3.2.6 requires alteration to it's file.

  • mkdir tmp
  • cd tmp
  • jar -xvf /usr/local/jboss/bin/shutdown.jar

Modify tmp/ appropriately

  • mv /usr/local/jboss/bin/shutdown.jar shutdown.old.jar
  • jar -cmvf META-INF/MANIFEST /usr/local/jboss/bin/shutdown.jar *

-- Frank Dean - 9 Feb 2005

-- Frank Dean - 15 Oct 2004

See also JbossHintsAndTips