All you need to do is change the ports that the connectors of one of the tomcat instances uses, for instance if i run jboss with the default configuration, then configure stand alone tomcat to use 8081 for http connector and 8008 for the ajp connector, everything starts with no errors and works fine.
Thanks for your help.
1. By the way, exactly which files should I re-configure in JBoss. (Tomcat is running with the default config).
2. What config values should I change to safely deploy both servers without any clash.
Take a look at the jboss-3.x/docs/examples/binding-manager/ directory. It has information on use the bindingservice-plugin.jar to configure ports to run two instances on the same machine.
If you can't find that directory, checkout the source and look under the varia directory.
I am following the 3.2.3 admin development guide instructions for starting jboss0 server with examples/src/main/org/jboss/chap10/ex1/jboss-service.xml, where ServiceBindingManager is enabled to read chap10ex1-bindings.xml which has been copied to server directory.
I get the following error:
17:14:10,899 ERROR [ClientUserTransactionService] Starting failed
javax.management.InstanceNotFoundException: null object name at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:340)
You do not need to post your question twice on here.