RE: remote debug with tomcat 3.3.2
From: Kedzior Wojciech [mailto:wojciech.kedz...@gemalto.com] Subject: remote debug with tomcat 3.3.2 I'm having a problem with setting up a remote debug session to my Tomcat 3.3.2 Final. You're asking for help with a version of Tomcat that's six years old and hasn't been supported for ages? Not to mention buggier and much slower than the current releases. Your time would be better spent moving up to a supported level and then working on the debugging. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: remote debug with tomcat 3.3.2
Hi Chuck, Thanks for your answer. That is exactly how I feel. However I'm not the person responsible for these kinds of decisions within the company. I am merely trying to help the guys here by being more (much much more) efficient by using a debugger instead of log files when developing code. To be honest I have no idea why they use such an old version of Tomcat. And I hope RND or someone is looking at upgrading. I also suspect that there are some proprietary libraries involved here, which may hinder a tomcat upgrade. I hate it, but I have to do with what I have and I'm just trying to get the best out of what I have. So, any other suggestions? Cheers -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: 2. března 2010 15:16 To: Tomcat Users List Subject: RE: remote debug with tomcat 3.3.2 From: Kedzior Wojciech [mailto:wojciech.kedz...@gemalto.com] Subject: remote debug with tomcat 3.3.2 I'm having a problem with setting up a remote debug session to my Tomcat 3.3.2 Final. You're asking for help with a version of Tomcat that's six years old and hasn't been supported for ages? Not to mention buggier and much slower than the current releases. Your time would be better spent moving up to a supported level and then working on the debugging. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug with tomcat 3.3.2
On 02/03/2010 15:28, Kedzior Wojciech wrote: Hi Chuck, Thanks for your answer. That is exactly how I feel. However I'm not the person responsible for these kinds of decisions within the company. I am merely trying to help the guys here by being more (much much more) efficient by using a debugger instead of log files when developing code. To be honest I have no idea why they use such an old version of Tomcat. And I hope RND or someone is looking at upgrading. I also suspect that there are some proprietary libraries involved here, which may hinder a tomcat upgrade. I hate it, but I have to do with what I have and I'm just trying to get the best out of what I have. So, any other suggestions? http://www.monster.fr/ ;o) p Cheers -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: 2. března 2010 15:16 To: Tomcat Users List Subject: RE: remote debug with tomcat 3.3.2 From: Kedzior Wojciech [mailto:wojciech.kedz...@gemalto.com] Subject: remote debug with tomcat 3.3.2 I'm having a problem with setting up a remote debug session to my Tomcat 3.3.2 Final. You're asking for help with a version of Tomcat that's six years old and hasn't been supported for ages? Not to mention buggier and much slower than the current releases. Your time would be better spent moving up to a supported level and then working on the debugging. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug with tomcat 3.3.2
I'm pretty sure that I compiled the binary for 3.3.2 without debugging support. The only thing I can think of is to download the source release of 3.3.2 and compile it with debugging. At the time 3.3.2 was released, using a debugger in Java was so painful that almost nobody did it. Kedzior Wojciech wojciech.kedz...@gemalto.com wrote in message news:a8dd7b2abeb7b842af607d392ff73c7ee4834af...@croexcfwp03.gemalto.com... Hello, I'm having a problem with setting up a remote debug session to my Tomcat 3.3.2 Final. I am copying some classes I developed into the working directory of an application deployed on tomcat. I can connect to the remote debug port from eclipse but the debugger will not stop on any break points what so ever. Here is my environment: I specify the following system variables: JPDA_ADDRESS=8000 JPDA_TRANSPORT=dt_socket I start my Tomcat with the jpda start parameters. While tailing the logs I can see the following line: Listening for transport dt_socket at address: 8000 At this point I can connect to the remote debug port from Eclipse. I can see all the treads running within Tomcat, but my debug will not stop on any breakpoints. Even though the class I am trying to debug was created by me in Eclipse and I have the correct source. The classes were compiled using Java 1.5.0_09. Tomcat also uses the same version of Java. The tomcat is deployed on Linux RedHat 5. Eclipse version is 3.5.1 The complied classes have a reference to the .java file. To prove that the problem occurs with the entire deployment I obtained the sources for the deployed application, linked them in my eclipse and set some debug points. I know the flow goes through the line with break points because I used some dirty System.err output to prove this. One thing that may be a hint is that the Tomcat startup log shows the following line: EmbededTomcat: Startup time 45 The thing to note here is that I don't have control over the actual war file deployed in tomcat. I simply get the war from a different department in the company, deploy it, and write some classes that the deployed application will pick up and use. I have studied this Embedded Tomcat a little bit and I don't know if this could be a problem. Has someone experienced anything like this before? If so, I would appreciate it very much if you could shed some (even the dimmest) light onto this. Thanks, Wojtek Kedzior - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: remote debug with tomcat 3.3.2
Hahaha! -Original Message- From: Pid [mailto:p...@pidster.com] Sent: 3. března 2010 0:13 To: Tomcat Users List Subject: Re: remote debug with tomcat 3.3.2 On 02/03/2010 15:28, Kedzior Wojciech wrote: Hi Chuck, Thanks for your answer. That is exactly how I feel. However I'm not the person responsible for these kinds of decisions within the company. I am merely trying to help the guys here by being more (much much more) efficient by using a debugger instead of log files when developing code. To be honest I have no idea why they use such an old version of Tomcat. And I hope RND or someone is looking at upgrading. I also suspect that there are some proprietary libraries involved here, which may hinder a tomcat upgrade. I hate it, but I have to do with what I have and I'm just trying to get the best out of what I have. So, any other suggestions? http://www.monster.fr/ ;o) p Cheers -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: 2. března 2010 15:16 To: Tomcat Users List Subject: RE: remote debug with tomcat 3.3.2 From: Kedzior Wojciech [mailto:wojciech.kedz...@gemalto.com] Subject: remote debug with tomcat 3.3.2 I'm having a problem with setting up a remote debug session to my Tomcat 3.3.2 Final. You're asking for help with a version of Tomcat that's six years old and hasn't been supported for ages? Not to mention buggier and much slower than the current releases. Your time would be better spent moving up to a supported level and then working on the debugging. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: remote debug with tomcat 3.3.2
I see. Thanks for the input. I think I will try to run the app (as a local experiment only) on tomcat 6 to see what happens. If that fails I may try to recompile 3.3.2. Cheers -Original Message- From: Bill Barker [mailto:billwbar...@verizon.net] Sent: 3. března 2010 4:13 To: users@tomcat.apache.org Subject: Re: remote debug with tomcat 3.3.2 I'm pretty sure that I compiled the binary for 3.3.2 without debugging support. The only thing I can think of is to download the source release of 3.3.2 and compile it with debugging. At the time 3.3.2 was released, using a debugger in Java was so painful that almost nobody did it. Kedzior Wojciech wojciech.kedz...@gemalto.com wrote in message news:a8dd7b2abeb7b842af607d392ff73c7ee4834af...@croexcfwp03.gemalto.com... Hello, I'm having a problem with setting up a remote debug session to my Tomcat 3.3.2 Final. I am copying some classes I developed into the working directory of an application deployed on tomcat. I can connect to the remote debug port from eclipse but the debugger will not stop on any break points what so ever. Here is my environment: I specify the following system variables: JPDA_ADDRESS=8000 JPDA_TRANSPORT=dt_socket I start my Tomcat with the jpda start parameters. While tailing the logs I can see the following line: Listening for transport dt_socket at address: 8000 At this point I can connect to the remote debug port from Eclipse. I can see all the treads running within Tomcat, but my debug will not stop on any breakpoints. Even though the class I am trying to debug was created by me in Eclipse and I have the correct source. The classes were compiled using Java 1.5.0_09. Tomcat also uses the same version of Java. The tomcat is deployed on Linux RedHat 5. Eclipse version is 3.5.1 The complied classes have a reference to the .java file. To prove that the problem occurs with the entire deployment I obtained the sources for the deployed application, linked them in my eclipse and set some debug points. I know the flow goes through the line with break points because I used some dirty System.err output to prove this. One thing that may be a hint is that the Tomcat startup log shows the following line: EmbededTomcat: Startup time 45 The thing to note here is that I don't have control over the actual war file deployed in tomcat. I simply get the war from a different department in the company, deploy it, and write some classes that the deployed application will pick up and use. I have studied this Embedded Tomcat a little bit and I don't know if this could be a problem. Has someone experienced anything like this before? If so, I would appreciate it very much if you could shed some (even the dimmest) light onto this. Thanks, Wojtek Kedzior - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug
On 13/11/2009 02:33, maven apache wrote: 2009/11/12 Christopher Schultzch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 11/11/2009 8:33 PM, maven apache wrote: Thanks for your attention. Actually I did not modify the catalina.bat directly , I create a new bat named debug.bat in the same directory, the content of the debug.bat is : --- cd %CATALINE_HOME%/bin This is not spelled correctly. It should be CATALINA_HOME, not CATALINE_HOME. set JPDA_ADDRESS=1044 set JPDA_TRANSPORT=dt_socket This is the default JPDA_TRANSPORT when using Tomcat's startup scripts. set CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044 startup --- Then I start the tomcat with the debug.bat. It's tough to tell where the lines end due to word wrapping, but it looks like this script doesn't do anything but set environment variables. Is the startup word actually on a separate line from the set CATALINA_OPTS line? I'll assume so, otherwise nothing would happen. Note that you could have put these settings into bin/setenv.sh and it would be called before calling catalina.bat. Finally, Tomcat allows you to specify the JPDA_* environment variables so that you don't then have to re-specify everything in CATALINA_OPTS. Try deleting your debug.bat file and instead put this into your CATALINA_BASE/bin/setenv.bat file: set JPDA_ADDRESS=1044 set CATALINA_OPTS=-server -Xnoagent -Djava.compiler=none Note that catalina.bat will auto-build the following command-line arguments when starting up the JVM, given my above settings: - -Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n Now, you have to start Tomcat like this: %CATALINA_BASE%\bin\catalina.bat jpda start This should start Tomcat using all the JPDA options. If you don't use jpda start, then all the JPDA_* environment variables are useless. I can see why you ended up specifying everything in CATALINA_OPTS: because Tomcat was otherwise ignoring all your settings. After you get Tomcat started, you'll need to verify that the JPDA options were actually enabled. If they were, you should have something listening on port 1044: C:\Tomcat netstat -a -o | find 1044 If the above command shows something like this: TCP127.0.0.1:1044 Krang:0 LISTENING332 Then JPDA has properly started and is listening on that port. If not, try running the netstat command without the | find part to see if that's failing (I tried adding -b argument and I got a requires elevation error, so the find of course didn't work). If there's nothing listening on port 1044, then your JPDA configuration is broken and you should re-post with your current progress. If it's listening, then you have a problem with your debugger and/or firewall issues. Since the subject of this thread is remote debug, I suspect you are trying to debug over a network. What is the relationship between the server and the client? Are there firewalls involved? Does JPDA bind to 127.0.0.1 or to 0.0.0.0 (or some other IP address)? If it binds to 127.0.0.1, then you'll need an ssh tunnel or something to turn a remote connection into a localhost one. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr8LgUACgkQ9CaO5/Lv0PDznwCcDKN6CgOYuBYOaOsLnANxBcpE LacAn1oX3+2oOk5BEBiY20jL54juaN2L =LdC4 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks for your detailed information. I check it with my own configuration and found that the connection is established ,however I did not know since there is no message,so I try to connect the server side again, so I got the connect failed error And now I can connect it ,since I found each time I after I connect the tomcat start window will show a message in the below: Listening for transport at ...1044. That to say I think the connect of the debug is successful, and I have add breakpoints in the servlet,so I open a browser and enter: http://localhost:9000/helloServlet or If you have a Connector (in server.xml) configured on port 9000 then examine the catalina.out and the other log files for information. If the Connector is on a different port use that, e.g. 8080. http://localhost:8080/helloServlet http://localhost:1044/helloServlet ,but none of them can open the page, and the IDE did not turn to the class where I have add the breakpoints. Tomcat doesn't serve pages on 1044 - that's purely for the JVM debugger.
Re: remote debug
2009/11/13 Pid p...@pidster.com On 13/11/2009 02:33, maven apache wrote: 2009/11/12 Christopher Schultzch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 11/11/2009 8:33 PM, maven apache wrote: Thanks for your attention. Actually I did not modify the catalina.bat directly , I create a new bat named debug.bat in the same directory, the content of the debug.bat is : --- cd %CATALINE_HOME%/bin This is not spelled correctly. It should be CATALINA_HOME, not CATALINE_HOME. set JPDA_ADDRESS=1044 set JPDA_TRANSPORT=dt_socket This is the default JPDA_TRANSPORT when using Tomcat's startup scripts. set CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044 startup --- Then I start the tomcat with the debug.bat. It's tough to tell where the lines end due to word wrapping, but it looks like this script doesn't do anything but set environment variables. Is the startup word actually on a separate line from the set CATALINA_OPTS line? I'll assume so, otherwise nothing would happen. Note that you could have put these settings into bin/setenv.sh and it would be called before calling catalina.bat. Finally, Tomcat allows you to specify the JPDA_* environment variables so that you don't then have to re-specify everything in CATALINA_OPTS. Try deleting your debug.bat file and instead put this into your CATALINA_BASE/bin/setenv.bat file: set JPDA_ADDRESS=1044 set CATALINA_OPTS=-server -Xnoagent -Djava.compiler=none Note that catalina.bat will auto-build the following command-line arguments when starting up the JVM, given my above settings: - -Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n Now, you have to start Tomcat like this: %CATALINA_BASE%\bin\catalina.bat jpda start This should start Tomcat using all the JPDA options. If you don't use jpda start, then all the JPDA_* environment variables are useless. I can see why you ended up specifying everything in CATALINA_OPTS: because Tomcat was otherwise ignoring all your settings. After you get Tomcat started, you'll need to verify that the JPDA options were actually enabled. If they were, you should have something listening on port 1044: C:\Tomcat netstat -a -o | find 1044 If the above command shows something like this: TCP127.0.0.1:1044 Krang:0 LISTENING332 Then JPDA has properly started and is listening on that port. If not, try running the netstat command without the | find part to see if that's failing (I tried adding -b argument and I got a requires elevation error, so the find of course didn't work). If there's nothing listening on port 1044, then your JPDA configuration is broken and you should re-post with your current progress. If it's listening, then you have a problem with your debugger and/or firewall issues. Since the subject of this thread is remote debug, I suspect you are trying to debug over a network. What is the relationship between the server and the client? Are there firewalls involved? Does JPDA bind to 127.0.0.1 or to 0.0.0.0 (or some other IP address)? If it binds to 127.0.0.1, then you'll need an ssh tunnel or something to turn a remote connection into a localhost one. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr8LgUACgkQ9CaO5/Lv0PDznwCcDKN6CgOYuBYOaOsLnANxBcpE LacAn1oX3+2oOk5BEBiY20jL54juaN2L =LdC4 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks for your detailed information. I check it with my own configuration and found that the connection is established ,however I did not know since there is no message,so I try to connect the server side again, so I got the connect failed error And now I can connect it ,since I found each time I after I connect the tomcat start window will show a message in the below: Listening for transport at ...1044. That to say I think the connect of the debug is successful, and I have add breakpoints in the servlet,so I open a browser and enter: http://localhost:9000/helloServlet or If you have a Connector (in server.xml) configured on port 9000 then examine the catalina.out and the other log files for information. I enter http://localhost:9000; I can get the tomcat welcome page,but I got a 404 error when I entered http://localhost:9000/MT-web; And I found under the catalina-home/webapp there is no folder named MT-web. If the
Re: remote debug
On 13/11/2009 13:29, maven apache wrote: 2009/11/13 Pid p...@pidster.com mailto:p...@pidster.com On 13/11/2009 13:16, maven apache wrote: 2009/11/13 Pid p...@pidster.com mailto:p...@pidster.com mailto:p...@pidster.com mailto:p...@pidster.com On 13/11/2009 02:33, maven apache wrote: 2009/11/12 Christopher Schultzch...@christopherschultz.net mailto:ch...@christopherschultz.net mailto:ch...@christopherschultz.net mailto:ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 11/11/2009 8:33 PM, maven apache wrote: Thanks for your attention. Actually I did not modify the catalina.bat directly , I create a new bat named debug.bat in the same directory, the content of the debug.bat is : --- cd %CATALINE_HOME%/bin This is not spelled correctly. It should be CATALINA_HOME, not CATALINE_HOME. set JPDA_ADDRESS=1044 set JPDA_TRANSPORT=dt_socket This is the default JPDA_TRANSPORT when using Tomcat's startup scripts. set CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044 startup --- Then I start the tomcat with the debug.bat. It's tough to tell where the lines end due to word wrapping, but it looks like this script doesn't do anything but set environment variables. Is the startup word actually on a separate line from the set CATALINA_OPTS line? I'll assume so, otherwise nothing would happen. Note that you could have put these settings into bin/setenv.sh and it would be called before calling catalina.bat. Finally, Tomcat allows you to specify the JPDA_* environment variables so that you don't then have to re-specify everything in CATALINA_OPTS. Try deleting your debug.bat file and instead put this into your CATALINA_BASE/bin/setenv.bat file: set JPDA_ADDRESS=1044 set CATALINA_OPTS=-server -Xnoagent -Djava.compiler=none Note that catalina.bat will auto-build the following command-line arguments when starting up the JVM, given my above settings: - -Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n Now, you have to start Tomcat like this: %CATALINA_BASE%\bin\catalina.bat jpda start This should start Tomcat using all the JPDA options. If you don't use jpda start, then all the JPDA_* environment variables are useless. I can see why you ended up specifying everything in CATALINA_OPTS: because Tomcat was otherwise ignoring all your settings. After you get Tomcat started, you'll need to verify that the JPDA options were actually enabled. If they were, you should have something listening on port 1044: C:\Tomcat netstat -a -o | find 1044 If the above command shows something like this: TCP 127.0.0.1:1044 http://127.0.0.1:1044 http://127.0.0.1:1044 Krang:0 LISTENING332 Then JPDA has properly started and is listening on that port. If not, try running the netstat command without the | find part to see if that's failing (I tried adding -b argument and I got a requires elevation error, so the find of course didn't work). If there's nothing listening on port 1044, then your JPDA configuration
Re: remote debug
I am a litter confusing. If I deploy by myself,that to say I copy the F:\mavenTest\MT-Parent\MT-web\targetMT-web.war to the tomcat install directory: C:\tomcat6.0\webapp, what does the eclipse debugger do ? Without the IDE debugger I also can visit my page by http://localhost:9000/MT-web/helloServet; Now I add some breakpoints in a servlet under the MT-server(a dependency of MT-web) and I want it hangs up in the breakpoint when I request the servelt such as http://localhost:9000/MT-web/helloServet;
Re: remote debug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 11/13/2009 8:53 AM, maven apache wrote: I am a little confused. If I deploy by myself, that is to say I copy the F:\mavenTest\MT-Parent\MT-web\targetMT-web.war to the tomcat install directory: C:\tomcat6.0\webapp, what does the eclipse debugger do ? The debugger will not do anything if you simply copy a file. It's possible that Eclipse is willing to deploy the WAR file for you, but that would be a separate process from the debugging. I'm sorry that I have no experience using Eclipse for anything other than text editing and light CVS work. I went back to emacs 'cause I didn't need a many-megabytes-in-memory text editor running all the time. Without the IDE debugger I also can visit my page by http://localhost:9000/MT-web/helloServet; If you can visit this page without the debugger, then simply attach the debugger once Tomcat is running. Eclipse doesn't start the JVM (does it?) otherwise you wouldn't be having all this trouble starting Tomcat and connecting the debugger to it -- Eclipse would have done that itself. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr9aCsACgkQ9CaO5/Lv0PB8TwCfUBqqLKf80h7BLX2CwxpVQqJi EmQAn0erv79F/NW7QNHvnrpmTKz3y5Sr =vwGj -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 11/11/2009 8:33 PM, maven apache wrote: Thanks for your attention. Actually I did not modify the catalina.bat directly , I create a new bat named debug.bat in the same directory, the content of the debug.bat is : --- cd %CATALINE_HOME%/bin This is not spelled correctly. It should be CATALINA_HOME, not CATALINE_HOME. set JPDA_ADDRESS=1044 set JPDA_TRANSPORT=dt_socket This is the default JPDA_TRANSPORT when using Tomcat's startup scripts. set CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044 startup --- Then I start the tomcat with the debug.bat. It's tough to tell where the lines end due to word wrapping, but it looks like this script doesn't do anything but set environment variables. Is the startup word actually on a separate line from the set CATALINA_OPTS line? I'll assume so, otherwise nothing would happen. Note that you could have put these settings into bin/setenv.sh and it would be called before calling catalina.bat. Finally, Tomcat allows you to specify the JPDA_* environment variables so that you don't then have to re-specify everything in CATALINA_OPTS. Try deleting your debug.bat file and instead put this into your CATALINA_BASE/bin/setenv.bat file: set JPDA_ADDRESS=1044 set CATALINA_OPTS=-server -Xnoagent -Djava.compiler=none Note that catalina.bat will auto-build the following command-line arguments when starting up the JVM, given my above settings: - -Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n Now, you have to start Tomcat like this: %CATALINA_BASE%\bin\catalina.bat jpda start This should start Tomcat using all the JPDA options. If you don't use jpda start, then all the JPDA_* environment variables are useless. I can see why you ended up specifying everything in CATALINA_OPTS: because Tomcat was otherwise ignoring all your settings. After you get Tomcat started, you'll need to verify that the JPDA options were actually enabled. If they were, you should have something listening on port 1044: C:\Tomcat netstat -a -o | find 1044 If the above command shows something like this: TCP127.0.0.1:1044 Krang:0 LISTENING332 Then JPDA has properly started and is listening on that port. If not, try running the netstat command without the | find part to see if that's failing (I tried adding -b argument and I got a requires elevation error, so the find of course didn't work). If there's nothing listening on port 1044, then your JPDA configuration is broken and you should re-post with your current progress. If it's listening, then you have a problem with your debugger and/or firewall issues. Since the subject of this thread is remote debug, I suspect you are trying to debug over a network. What is the relationship between the server and the client? Are there firewalls involved? Does JPDA bind to 127.0.0.1 or to 0.0.0.0 (or some other IP address)? If it binds to 127.0.0.1, then you'll need an ssh tunnel or something to turn a remote connection into a localhost one. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr8LgUACgkQ9CaO5/Lv0PDznwCcDKN6CgOYuBYOaOsLnANxBcpE LacAn1oX3+2oOk5BEBiY20jL54juaN2L =LdC4 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug
2009/11/12 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 11/11/2009 8:33 PM, maven apache wrote: Thanks for your attention. Actually I did not modify the catalina.bat directly , I create a new bat named debug.bat in the same directory, the content of the debug.bat is : --- cd %CATALINE_HOME%/bin This is not spelled correctly. It should be CATALINA_HOME, not CATALINE_HOME. set JPDA_ADDRESS=1044 set JPDA_TRANSPORT=dt_socket This is the default JPDA_TRANSPORT when using Tomcat's startup scripts. set CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044 startup --- Then I start the tomcat with the debug.bat. It's tough to tell where the lines end due to word wrapping, but it looks like this script doesn't do anything but set environment variables. Is the startup word actually on a separate line from the set CATALINA_OPTS line? I'll assume so, otherwise nothing would happen. Note that you could have put these settings into bin/setenv.sh and it would be called before calling catalina.bat. Finally, Tomcat allows you to specify the JPDA_* environment variables so that you don't then have to re-specify everything in CATALINA_OPTS. Try deleting your debug.bat file and instead put this into your CATALINA_BASE/bin/setenv.bat file: set JPDA_ADDRESS=1044 set CATALINA_OPTS=-server -Xnoagent -Djava.compiler=none Note that catalina.bat will auto-build the following command-line arguments when starting up the JVM, given my above settings: - -Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n Now, you have to start Tomcat like this: %CATALINA_BASE%\bin\catalina.bat jpda start This should start Tomcat using all the JPDA options. If you don't use jpda start, then all the JPDA_* environment variables are useless. I can see why you ended up specifying everything in CATALINA_OPTS: because Tomcat was otherwise ignoring all your settings. After you get Tomcat started, you'll need to verify that the JPDA options were actually enabled. If they were, you should have something listening on port 1044: C:\Tomcat netstat -a -o | find 1044 If the above command shows something like this: TCP127.0.0.1:1044 Krang:0 LISTENING332 Then JPDA has properly started and is listening on that port. If not, try running the netstat command without the | find part to see if that's failing (I tried adding -b argument and I got a requires elevation error, so the find of course didn't work). If there's nothing listening on port 1044, then your JPDA configuration is broken and you should re-post with your current progress. If it's listening, then you have a problem with your debugger and/or firewall issues. Since the subject of this thread is remote debug, I suspect you are trying to debug over a network. What is the relationship between the server and the client? Are there firewalls involved? Does JPDA bind to 127.0.0.1 or to 0.0.0.0 (or some other IP address)? If it binds to 127.0.0.1, then you'll need an ssh tunnel or something to turn a remote connection into a localhost one. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr8LgUACgkQ9CaO5/Lv0PDznwCcDKN6CgOYuBYOaOsLnANxBcpE LacAn1oX3+2oOk5BEBiY20jL54juaN2L =LdC4 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Thanks for your detailed information. I check it with my own configuration and found that the connection is established ,however I did not know since there is no message,so I try to connect the server side again, so I got the connect failed error And now I can connect it ,since I found each time I after I connect the tomcat start window will show a message in the below: Listening for transport at ...1044. That to say I think the connect of the debug is successful, and I have add breakpoints in the servlet,so I open a browser and enter: http://localhost:9000/helloServlet or http://localhost:1044/helloServlet ,but none of them can open the page, and the IDE did not turn to the class where I have add the breakpoints.
Re: remote debug
2009/11/11 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 11/10/2009 2:18 AM, maven apache wrote: hi: I am so sorry to ask this problem again but I do can not make it work. I have seen the faq, and the doc pages,also I go to the goole to search but .. I am using tomcat6.0.zip,and my project is managed by maven,so the web module I do not know how to debug,although I know how to debug a common dynamic web project and add breakpoints . But the web module is not a common web project.I have no idea. Someone tell me I can use remote debug for the web module ,however when I try to connect the server,it can not connect . So I want to know if the remote debug can be used for the web module in maven,if it is,how to config the debug? It's not at all clear what you are doing, here. If you are using some kind of Maven-specific webapp deployment, I would ask the Maven folks if they have any ideas. Yes, I send to the maven maillist,and they suggest me try the remote debug, but nomatter how to config the tocmat6.0,I can not connect it through the IDE,please check the annex. Tomcat.jpg, elcipse.jpg and the conn.jpg My tomcat is 6.0.zip/ - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr52l0ACgkQ9CaO5/Lv0PB5twCgt7kekyiZoXcfcRkaYWqAiSqR a+YAoKgbZ6wBEKY0O2UXzFnO8zHRadgh =Aua2 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug
On 11/11/2009 13:23, maven apache wrote: 2009/11/11 Christopher Schultz ch...@christopherschultz.net mailto:ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 11/10/2009 2:18 AM, maven apache wrote: hi: I am so sorry to ask this problem again but I do can not make it work. I have seen the faq, and the doc pages,also I go to the goole to search but .. I am using tomcat6.0.zip,and my project is managed by maven,so the web module I do not know how to debug,although I know how to debug a common dynamic web project and add breakpoints . But the web module is not a common web project.I have no idea. Someone tell me I can use remote debug for the web module ,however when I try to connect the server,it can not connect . So I want to know if the remote debug can be used for the web module in maven,if it is,how to config the debug? It's not at all clear what you are doing, here. If you are using some kind of Maven-specific webapp deployment, I would ask the Maven folks if they have any ideas. Yes, I send to the maven maillist,and they suggest me try the remote debug, but nomatter how to config the tocmat6.0,I can not connect it through the IDE,please check the annex. Tomcat.jpg, elcipse.jpg and the conn.jpg My tomcat is 6.0.zip/ So you're using Eclipse, and your problem is with Eclipse's configuration? You didn't mention that before, in your somewhat confusing email. Please read the following: http://catb.org/~esr/faqs/smart-questions.html p - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr52l0ACgkQ9CaO5/Lv0PB5twCgt7kekyiZoXcfcRkaYWqAiSqR a+YAoKgbZ6wBEKY0O2UXzFnO8zHRadgh =Aua2 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org mailto:users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org mailto:users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug
Please read the following: http://catb.org/~esr/faqs/smart-questions.html Fine , I organized the problem I asked again: 1 related to maven. My project is created by eclipse IDE(through the m2eclipse), and managed by maven. It contains three modules: module MT-server, MT-io and MT-webapps. The MT-webapps is a web module which is to be deployed under the tomcat(see annex project-struct.jpg). Under the directory MT-webapp\src\main\webapp\WEB-INFO\, I config the web.xml with a servlet named MTServlet under the MT-server module. Now I want to add some breadpoints in the MTServlet to debug. But the MT-webapps module is not a common dynamic web project,so I can not found the debug on server meun. I have try my best to found the resolution through friends,search enginer and so on but got nothing. Then I post it to the maven maillist, they tell me I should use the remote debug. 2 realated to tocmat So I start to config remot debug in tomcat . After modify the catalina.bat,and start it ,I can not connet it through the IDE(eclipse),but I just followed the faq,so I post it to this maillist. The annex tomcat.jpg is the start infomation when I start the tomcat with debug modal,the eclipse.jpg is the configuration in my IDE to connect, and the conn.jpg is the error message I got . I hope someone can check them and give some advise.Thanks. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug
On 11/11/2009 14:52, maven apache wrote: Please read the following: http://catb.org/~esr/faqs/smart-questions.html Fine , I organized the problem I asked again: 1 related to maven. My project is created by eclipse IDE(through the m2eclipse), and managed by maven. It contains three modules: module MT-server, MT-io and MT-webapps. The MT-webapps is a web module which is to be deployed under the tomcat(see annex project-struct.jpg). Under the directory MT-webapp\src\main\webapp\WEB-INFO\, I config the web.xml with a servlet named MTServlet under the MT-server module. Now I want to add some breadpoints in the MTServlet to debug. But the MT-webapps module is not a common dynamic web project,so I can not found the debug on server meun. That is an Eclipse problem, then, yes? I have try my best to found the resolution through friends,search enginer and so on but got nothing. Then I post it to the maven maillist, they tell me I should use the remote debug. 2 realated to tocmat So I start to config remot debug in tomcat . After modify the catalina.bat,and start it ,I can not connet it through the IDE(eclipse),but I just followed the faq,so I post it to this maillist. Is Eclipse definitely using that config file to start Tomcat? What steps have you taken to check what you're doing is correct? The annex tomcat.jpg is the start infomation when I start the tomcat with debug modal,the eclipse.jpg is the configuration in my IDE to connect, and the conn.jpg is the error message I got . I hope someone can check them and give some advise.Thanks. The list strips attachments, I'm unable to see those images. p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 11/11/2009 9:52 AM, maven apache wrote: So I start to config remot debug in tomcat . How do you start Tomcat? Using bin\startup.bat? After modify the catalina.bat Okay, you are using bin\startup.bat, then? You ought to be able to use environment variables to affect this and not actually change catalina.bat, but it's okay to do that, too. Please post the changes you made to catalina.bat. Also, please confirm that you start Tomcat by using bin\startup.bat. If you use Eclipse to start Tomcat, it might be ignoring that configuration. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr7MZIACgkQ9CaO5/Lv0PDSzQCeIhaqMMi6pj2xmGzWk7jkAt/c 4VEAn1yUnfwMJJZBRWvyyHT4t8dGkmsr =J582 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug
2009/11/12 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 11/11/2009 9:52 AM, maven apache wrote: So I start to config remot debug in tomcat . How do you start Tomcat? Using bin\startup.bat? After modify the catalina.bat Okay, you are using bin\startup.bat, then? You ought to be able to use environment variables to affect this and not actually change catalina.bat, but it's okay to do that, too. Please post the changes you made to catalina.bat. Thanks for your attention. Actually I did not modify the catalina.bat directly , I create a new bat named debug.bat in the same directory, the content of the debug.bat is : --- cd %CATALINE_HOME%/bin set JPDA_ADDRESS=1044 set JPDA_TRANSPORT=dt_socket set CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044 startup --- Then I start the tomcat with the debug.bat. Also, please confirm that you start Tomcat by using bin\startup.bat. If you use Eclipse to start Tomcat, it might be ignoring that configuration. I think so , I start the tomcat manually. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr7MZIACgkQ9CaO5/Lv0PDSzQCeIhaqMMi6pj2xmGzWk7jkAt/c 4VEAn1yUnfwMJJZBRWvyyHT4t8dGkmsr =J582 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: remote debug
To whom it may concern, mgthe friendliest greeting ive seen all week mgcontact us...@maven.apache.org and display your pom.xml (and location of your repositories) On 11/10/2009 2:18 AM, maven apache wrote: hi: I am so sorry to ask this problem again but I do can not make it work. I have seen the faq, and the doc pages,also I go to the goole to search but mgnew search engine??? .. I am using tomcat6.0.zip,and my project is managed by maven,so the web module I do not know how to debug,although I know how to debug a common dynamic web project and add breakpoints . But the web module is not a common web project.I have no idea. Someone tell me I can use remote debug for the web module ,however when I try to connect the server,it can not connect . So I want to know if the remote debug can be used for the web module in maven,if it is,how to config the debug? It's not at all clear what you are doing, here. If you are using some kind of Maven-specific webapp deployment, I would ask the Maven folks if they have any ideas. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr52l0ACgkQ9CaO5/Lv0PB5twCgt7kekyiZoXcfcRkaYWqAiSqR a+YAoKgbZ6wBEKY0O2UXzFnO8zHRadgh =Aua2 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Windows 7: Unclutter your desktop. http://go.microsoft.com/?linkid=9690331ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009
RE: remote debug
From: maven apache [mailto:apachemav...@gmail.com] Subject: remote debug my web container is tomcat of version of 5.5 %CATALINA_HOME%\bin\tomcat6w.exe //ES//tomcat6 One of the above two statements is wrong. Which version of Tomcat are you really using? Failed to connect to remote VM. Connection refused. Connection refused: connect What version of Windows are you using? I can get JMX/JPDA working with a Tomcat service on XP, but not on Vista (haven't tried it on Win7 yet). JMX/JPDA works with Tomcat started from a command prompt on both XP and Vista. (The .bat scripts are only in the Tomcat .zip download, not the .exe, for some inexplicable reason.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug
2009/11/4 Caldarale, Charles R chuck.caldar...@unisys.com From: maven apache [mailto:apachemav...@gmail.com] Subject: remote debug my web container is tomcat of version of 5.5 %CATALINA_HOME%\bin\tomcat6w.exe //ES//tomcat6 One of the above two statements is wrong. Which version of Tomcat are you really using?\ I am using apache-tomcat-5.5.27(. Failed to connect to remote VM. Connection refused. Connection refused: connect What version of Windows are you using? I can get JMX/JPDA working with a Tomcat service on XP, but not on Vista (haven't tried it on Win7 yet). JMX/JPDA works with Tomcat started from a command prompt on both XP and Vista. (The .bat scripts are only in the Tomcat .zip download, not the .exe, for some inexplicable reason.) Win xp with sp3. That's to say if I want to use the remote debug ,I should use the tomcat.zip? Should I uninstall the tomcat I am using? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: remote debug
From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: remote debug %CATALINA_HOME%\bin\tomcat6w.exe //ES//tomcat6 One of the above two statements is wrong. Which version of Tomcat are you really using?\ I am using apache-tomcat-5.5.27(. Then how it is possible you're fiddling with tomcat6w.exe, which is part of Tomcat 6.0, not 5.5? That's to say if I want to use the remote debug ,I should use the tomcat.zip? Should I uninstall the tomcat I am using? I would uninstall the .exe version. You can create the service with the service.bat script from the .zip download. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug
2009/11/5 Caldarale, Charles R chuck.caldar...@unisys.com From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: remote debug %CATALINA_HOME%\bin\tomcat6w.exe //ES//tomcat6 One of the above two statements is wrong. Which version of Tomcat are you really using?\ I am using apache-tomcat-5.5.27(. Then how it is possible you're fiddling with tomcat6w.exe, which is part of Tomcat 6.0, not 5.5? I post wrong. the command I use in command line is : %CATALINA_HOME%\bin\tomcat5w.exe //ES//tomcat5 That's to say if I want to use the remote debug ,I should use the tomcat.zip? Should I uninstall the tomcat I am using? I would uninstall the .exe version. You can create the service with the service.bat script from the .zip download. In a word,I have two choice: 1 use the tomcat.zip of version 5.5 or 6.x. 2 use the tomcat.exe of version 6.x? isn't it? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: remote debug
From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: remote debug In a word,I have two choice: 1 use the tomcat.zip of version 5.5 or 6.x. 2 use the tomcat.exe of version 6.x? The version of Tomcat doesn't matter, although unless you have a compelling reason to use an older level, I would go with the current 6.0.20 zip file. Generally, things are easier to debug when starting Tomcat via the .bat scripts rather than as a service, partly since you get to see in a command window if there are any startup errors. Create a setenv.bat script in Tomcat's bin directory to hold any command-line parameters you want to set. Once you're ready to try Tomcat as a service, install it with the service.bat script, and use the tomcat6w.exe program to set additional options and start/stop the service. No point in trying to use the tomcat6.exe program directly - it's too hard. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: remote debug
2009/11/5 Caldarale, Charles R chuck.caldar...@unisys.com From: maven apache [mailto:apachemav...@gmail.com] Subject: Re: remote debug In a word,I have two choice: 1 use the tomcat.zip of version 5.5 or 6.x. 2 use the tomcat.exe of version 6.x? The version of Tomcat doesn't matter, although unless you have a compelling reason to use an older level, I would go with the current 6.0.20 zip file. Generally, things are easier to debug when starting Tomcat via the .bat scripts rather than as a service, partly since you get to see in a command window if there are any startup errors. Create a setenv.bat script in Tomcat's bin directory to hold any command-line parameters you want to set. Once you're ready to try Tomcat as a service, install it with the service.bat script, and use the tomcat6w.exe program to set additional options and start/stop the service. No point in trying to use the tomcat6.exe program directly - it's too hard. Thanks for your reply. I used 5.5 rather than 6.0 because I heard that 6.0 is much different with 5.5 in configuration(such as the port and ect..),I will have a try with the 6.0.zip.Thank you again :). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: remote debug on tomcat using eclipse
Hi Tim, Your screen capture helped allot and actually solved my problem. Apparently I didn't include all the required arguments in the java tab of the tomcat5w.exe Thanks allot, Asaf Lahav VP RD, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 1:44 AM To: 'Tomcat Users List' Subject: RE: remote debug on tomcat using eclipse Well, every day for the last 4 or 5 years, I run Eclipse as the UI/IDE/Debugger and Tomcat in attach mode (socket) as the engine. I sent this to you off list because I wanted to include the image, which I think gets bounced from the list (at least the HTML mode goes away.) What Mark Thomas said a few posts ago is the same idea... If you run Tomcat as a service, and define the variables as Mark mentioned (or I did in the screen capture), you should be able to see something listening on the port in question (9876 in the example I sent), using netstat. If you cannot connect to that port, make sure that both ends are using the same port, and the transport is set to dt_socket. Make sure that the JVM on the remote machine is listening on that port. If you still cannot connect, there is probably a firewall in your way. Tim -Original Message- From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 3:58 PM To: 'Tomcat Users List' Subject: RE: remote debug on tomcat using eclipse Hi Tim, I tried this as well. I'm getting a Failed to connect to remote VM error message. I even tried this with just an empty project I opened in Eclipse. I figured it has to work like that since all it is expected to do is connect to the remote VM. Any help is appreciated Asaf Lahav VP RD, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 _ From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 10:50 PM To: [EMAIL PROTECTED] Subject: RE: remote debug on tomcat using eclipse Try this: -Original Message- From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 3:34 PM To: 'Tomcat Users List' Subject: RE: remote debug on tomcat using eclipse Hi Mark, First of all, thanks for responding. I already read those instructions you pointed me to. Where can I find instructions saying how to configure Tomcat for remote debugging on windows XP when running in service mode? I already setup both JPDA_ADDRESS and JPDA_TRANSPORT environment variables. But I don't know where to add the command line arguments when I'm running the Tomcat in service mode. Asaf Lahav VP RD, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 10:26 PM To: Tomcat Users List Subject: Re: remote debug on tomcat using eclipse Step 1. http://tomcat.apache.org/faq/development.html#rd Step 2. http://tomcat.apache.org/faq/development.html#rd-eclipse Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: remote debug on tomcat using eclipse
Well, every day for the last 4 or 5 years, I run Eclipse as the UI/IDE/Debugger and Tomcat in attach mode (socket) as the engine. I sent this to you off list because I wanted to include the image, which I think gets bounced from the list (at least the HTML mode goes away.) What Mark Thomas said a few posts ago is the same idea... If you run Tomcat as a service, and define the variables as Mark mentioned (or I did in the screen capture), you should be able to see something listening on the port in question (9876 in the example I sent), using netstat. If you cannot connect to that port, make sure that both ends are using the same port, and the transport is set to dt_socket. Make sure that the JVM on the remote machine is listening on that port. If you still cannot connect, there is probably a firewall in your way. Tim -Original Message- From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 3:58 PM To: 'Tomcat Users List' Subject: RE: remote debug on tomcat using eclipse Hi Tim, I tried this as well. I'm getting a Failed to connect to remote VM error message. I even tried this with just an empty project I opened in Eclipse. I figured it has to work like that since all it is expected to do is connect to the remote VM. Any help is appreciated Asaf Lahav VP RD, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 _ From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 10:50 PM To: [EMAIL PROTECTED] Subject: RE: remote debug on tomcat using eclipse Try this: -Original Message- From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 3:34 PM To: 'Tomcat Users List' Subject: RE: remote debug on tomcat using eclipse Hi Mark, First of all, thanks for responding. I already read those instructions you pointed me to. Where can I find instructions saying how to configure Tomcat for remote debugging on windows XP when running in service mode? I already setup both JPDA_ADDRESS and JPDA_TRANSPORT environment variables. But I don't know where to add the command line arguments when I'm running the Tomcat in service mode. Asaf Lahav VP RD, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 10:26 PM To: Tomcat Users List Subject: Re: remote debug on tomcat using eclipse Step 1. http://tomcat.apache.org/faq/development.html#rd Step 2. http://tomcat.apache.org/faq/development.html#rd-eclipse Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]