问题
I'm trying to debug a J2EE web application currently running on WebLogic, using Eclipse.
My configuration is the following:
- AdminServer on localhost:7001 for the WebLogic admin console
- MyAppServer on localhost:8001 where I've deployed my web application.
Now i'd like to debug the app on Eclipse (I'm using Oracle WebLogic Pack for Eclipse).
I've found a lot of references on the web, but none of them seems working. maybe because my app is on a managed server...
For example, I've set the weblogic server to run as debug: on the console it says "listening for transport dt_socket at address: 8453". If I try Eclise -> Right-Click on my App -> Debug -> Remote Java Application on port 8453 it says "Failed to connect to VM".
Any hints?
I've no hopes, thanks!
回答1:
Take the following steps:
- In "startManagedWeblogic.sh" using which your managed server is started, before "startWebLogic.sh" is called, add a line having "debugFlag=true"
- Start the server, enable tunneling from the web console (Domain > YOUR_SERVER > Protocols > General > check "Enable Tunneling" checkbox and save), and restart the server.
Default debug port, as you pointed out, is 8453. In Windows environment, substitute ".sh" with ".cmd"
来源:https://stackoverflow.com/questions/21113673/debug-weblogic-app-on-managed-server-on-eclipse