– notes, snippet codes, and my journal

Remote Debugger in Adempiere using Jboss

leave a comment »

go to JBOSS folder

open “run.conf”, find “JAVA_OPTS”
un-comments this line.


use address port which is unused in your network/localhost

open “run.bat”, find “JAVA_OPTS”
un-comment this line

set JAVA_OPTS=-Xdebug-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%

restart Jboss server , and run run_server2.bat
when there is “listening … port…” in your cmd/console, its ready for debug.
the deployment process from jboss will hanging, it will waiting connection from remote debugger in eclipse.

in eclipse you can start remote debuger Run->Debug Configurations.
in left menu click Remote Java Applicator, input your project nama as you like.
for connection properties, Host : localhost, Port : 8787.
the host name is depends on your environment, the port address is depends on first configuration in “run.conf” and “run.bat”

in source tab, add your adempiere project.

and its done.

click “debug” button, if its successful the jboss deployment process will continue….

note :

change “suspend” argument with “n”, it will make jboss not listening to eclipse connection

set JAVA_OPTS=-Xdebug-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%


Written by snippetjournal

January 9, 2013 at 3:10 am

Posted in Programming

Tagged with , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: