openengine

Derailed in Uncle Gates' Victory Garden.




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

0 comments

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.


About me

  • I'm Chris Stevenson
  • From London

Last posts

Archives

Links


ATOM 0.3