Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug tomcat7 remotely #8

Open
bhasin85 opened this issue May 26, 2017 · 0 comments
Open

Debug tomcat7 remotely #8

bhasin85 opened this issue May 26, 2017 · 0 comments

Comments

@bhasin85
Copy link
Owner

bhasin85 commented May 26, 2017

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant