Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start WebLogic remotely to Debug

I setup my remote WebLogic server to debug, using these options:

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=${DEBUG_PORT},server=y,suspend=n -Djava.compiler=NONE"

I started WebLogic on the server and saw that it was listening on 8453 for dt_socket. I added the remote server on my local Eclipse and tested the connection. I also see that the server is STARTED and I can view the details. However, I'm unable to restart in DEBUG. I also stopped WebLogic on the server and now in Eclipse I see that it is stopped, but I'm not able to start it (the icons for debug and start are greyed out). When I set up my Remote Java Application in Eclipse I did check "Allow termination of remote VM".

Before stopping the server, the debug icon wasn't disabled and when I clicked it I got this message:

Cannot attach to remote server.
Please make sure the server myserver.com is running and listening for transport dt_socket at address: 8453
Failed to connect to remote VM. Connection refused.
Connection refused: connect
like image 550
user994165 Avatar asked Dec 19 '12 20:12

user994165


People also ask

How do I enable remote debugging in WebLogic?

Select "Run/Debug" from "Project Properties" and select "Edit" for the "Default Run Configurations". Within the "Edit Run Configuration", select the "Remote Debugging and Profiling" checkbox for "Launch Settings".

How do I access my WebLogic server remotely?

Simply launch the desktop application and connect to an Administration Server or WDT model. Or, you can start the console in a browser and then connect to the Administration Server. The WebLogic Remote Console is fully supported with WebLogic Server 12.2.


1 Answers

Instead of using java startup options, modify the following scripts:

setDomainEnv.sh -> make sure DEBUG_PORT is set ie. 8453

startWebLogic.sh -> set PRODUCTION_MODE=false and set debugFlag=true

Restart server, remote debug should work on port 8453.

like image 166
Andras Avatar answered Nov 03 '22 15:11

Andras