Prasobh.Kollattu
Prasobh.Kollattu

Reputation: 1701

How to start JBOSS 7 in debug mode?

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.

Upvotes: 25

Views: 97356

Answers (3)

jens-na
jens-na

Reputation: 2274

Edit the file <jboss-root>/bin/standalone.conf like this:

Uncomment the line

JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=4242,server=y,suspend=n"

Afterwards start the server with standalone.sh.

Now you can detach a debugger with your favorite IDE. 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.

Upvotes: 22

Andreas
Andreas

Reputation: 4009

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.

Upvotes: 39

Mukul Goel
Mukul Goel

Reputation: 8467

if you are using command line , then follow the guide here.

How to start As7 in debug

If using eclipse , right click on server and select debug to start server in debug profile.

enter image description here

Upvotes: 3

Related Questions