Hi,
I try to answer this as well because I am itself interested in the subject and did it many times. And well, are ready to learn things I don't know or which can be done with less pain. But first I have to ask you a few things: If you refer to an instance of tomcat then you refer to the running instance of JVM up on which tomcat is running? Is this correct? If yes: then running 3 instances of tomcat means having 3 JVM running? Yes? Remote debugging is to connect a debugger to a debuggee, that is to say; connecting i.e. NetBeans Debugger via TCP-sockets to the debugger port of the JVM-B up on which this Tomcat-B is running up on which Axi2-B is running up on which your Service-B is running. And that gives you the ability to debug, single step through code, be it Tomcat, Axis2, or your service, it depends about your project, reach ability of your sources and how well they are in sync with the byte code executing on the JVM which is under debugger control. In order to have multiple tomcats starting up, each on its own JVM, one needs to configure Tomcat's server.xml to have unique ports. I configure it server-A.xml, server-B.xml, server-C.xml, and through this make that ports are unique for the various JVM's. Let's say, the JVM-A of tomcat-A listens on port 8080 for normal A-request, then listens for 8009 for A-admin-request, then my tomcat-B listens on 8180 for normal B-request, for 8109 for B-admin-request, and I can start JVM-B for tomcat-B with an -X switch stating the B-debugger-port to listen for B-debugger-requests. This works for me with exception that I have sometimes code-sync problems. Also Digging deep into JAVA JDK Code depends on how they are compiled, if not with the -g switch as most JDK's are, then JDK code i.e. among security managers etc. can't be debugged. (this my learning's) Now; as I am still a novice in configuring AXIS2's and TOMCAT's, can you learn me how to do it your way? If I have axis2a deployed and axis2b, each leading to a set of subdirectories, (is that a container) one being ./service and another one ./lib etc. how can I then make that tomcat-A starts axis2-a only and tomcat-b starts only axis2-b? in other word how can I tell tomcat what to start and what not? Josef Von: Jacques [mailto:[email protected]] Gesendet: Mittwoch, 8. September 2010 16:03 An: [email protected] Betreff: Eclipse Remote Debugging with multiple instance of Axis2 in same Tomcat container ? Hi, I previously had one instance of Axis2 installed in Tomcat. I configured Tomcat to allow remote debugging, and I successfully remote-debugged a web service from Eclipse. I've since then installed multiple instances of Axis2 in Tomcat. In other words, I've got the axis2 webapp, but I now also have axis2a, axis2b, axis2c. Each of the Axis instances run the same web service. Is there a way to configure remote-debugging so that one particular instance of the web service is used for debugging purposes ? Thanks.
