Eclipse – Weblogic remote debugging using eclipse

debuggingeclipseusingweblogic

My Weblogic is installed in a Red hat OS machine.

In the startWebLogic.sh i have added this line
JAVA_OPTIONS="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n %JAVA_OPTIONS%"

When I try to connect from my Eclipse I get a
"Failed to connect to remote VM. Connection refused.
Connection refused: connect"
message.

Can you please tell me where I may be going wrong?

Best Answer

In the startWebLogic.sh file in the bin folder, in the RHEL add this line

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n 

at the place where you find this string: ${JAVA_HOME}/bin/java.

Place the above line just after ${JAVA_HOME}/bin/java

Related Topic