Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start JBOSS 7 in debug mode?

Tags:

I am getting an error(JBAS014750) when i deploy an app in JBOSS 7.So i need to run it in debug mode to find the exact issue.Any help will be appreciated.

like image 748
Prasobh.Kollattu Avatar asked Oct 22 '12 05:10

Prasobh.Kollattu


People also ask

How do I know if JBoss is running in debug mode?

If you are using Eclipse you can switch to "Debug-Configurations" and add a new Remote Java-Application. If the server is started with the JAVA_OPTS set above, you are able to debug with your IDE. I edited <jboss-root>/bin/standalone. conf and as far as I know this is the recommended way to debug JBoss 7.


1 Answers

If you have a look at bin/standalone.shyou will discover

# Use --debug to activate debug mode with an optional argument to specify the port. # Usage : standalone.bat --debug #         standalone.bat --debug 9797 

So, following this, just run the script with the --debug <port> parameter.

like image 75
Andreas Avatar answered Sep 23 '22 11:09

Andreas