Debug WebLogic app on Managed Server on Eclipse

不问归期 提交于 2020-01-05 08:42:32

问题


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:


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"



来源:https://stackoverflow.com/questions/21113673/debug-weblogic-app-on-managed-server-on-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!