Skip to content

Debug tomcat7 remotely #8

@bhasin85

Description

@bhasin85

In the tomcat bin directory wherecatalina.bat or .sh is found (aka {CATALINA_BASE}/bin), edit (create if not there):
setenv.bat/.sh
Add the following line:

CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"

ankit@1-nec-hob:/mnt/ebs/tomcat7/geonetwork_portal/bin$ sudo nano setenv.sh
ankit@1-nec-hob:/mnt/ebs/tomcat7/geonetwork_portal/bin$ sudo chown tomcat7:tomcat7 setenv.sh
ankit@1-nec-hob:/mnt/ebs/tomcat7/geonetwork_portal/bin$ sudo chmod 0755  setenv.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions