Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weblogic remote debugging using eclipse

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?

like image 886
mujeeb Avatar asked Feb 04 '23 01:02

mujeeb


1 Answers

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

like image 108
mujeeb Avatar answered Feb 06 '23 16:02

mujeeb