Reputation: 1701
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
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
Reputation: 4009
If you have a look at bin/standalone.sh
you 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
Reputation: 8467
if you are using command line , then follow the guide here.
If using eclipse , right click on server and select debug to start server in debug profile.
Upvotes: 3