openengine

Derailed in Uncle Gates' Victory Garden.




Running Tomcat 5.5 in Remote Debug Mode with Java 5 (Jdk 1.5.0_6)


E-mail this post



Remember me (?)



All personal information that you provide here will be governed by the Privacy Policy of Blogger.com. More...



Today I've been trying to run Tomcat 5.5 in jpda mode with Java 5. It seems that the catalina.bat/catalina.sh is shipped with a small error in v5.5 in that you need to add the arguments:

These are the orginal lines 98-106 in my catalina.bat


if not ""%1"" == ""jpda"" goto noJpda
set JPDA=jpda
if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
set JPDA_TRANSPORT=dt_shmem
:gotJpdaTransport
if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
set JPDA_ADDRESS=jdbconn
:gotJpdaAddress
shift
:noJpda


The instructions I had were to change the SET JPDA_ADDRESS and SET JPDA_TRANSPORT lines to:


...
set JPDA_TRANSPORT=dt_socket
...
set JPDA_ADDRESS=8000
...


But in fact what I had to specify was;


if not ""%1"" == ""jpda"" goto noJpda
set JPDA=jpda
if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
set JPDA_TRANSPORT=dt_socket
:gotJpdaTransport
if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
set JPDA_ADDRESS=address=8000,server=y
:gotJpdaAddress
shift


The extra address= and server= are required with Java 5.


0 Responses to “Running Tomcat 5.5 in Remote Debug Mode with Java 5 (Jdk 1.5.0_6)”

Leave a Reply

      Convert to boldConvert to italicConvert to link

 


About me

  • I'm Chris Stevenson
  • From London

Previous posts

Archives

Links


ATOM 0.3