1
votes

I'm trying to debug a J2EE web application currently running on WebLogic, using Eclipse.

My configuration is the following:

  1. AdminServer on localhost:7001 for the WebLogic admin console
  2. 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

1 Answers

3
votes

Take the following steps:

  1. In "startManagedWeblogic.sh" using which your managed server is started, before "startWebLogic.sh" is called, add a line having "debugFlag=true"
  2. 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"