在Eclipse上的受管服务器上调试WebLogic应用程序 [英] Debug WebLogic app on Managed Server on Eclipse

查看:334
本文介绍了在Eclipse上的受管服务器上调试WebLogic应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Eclipse调试当前在WebLogic上运行的J2EE Web应用程序。

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

我的配置如下:


  1. 本地主机上的AdminServer:WebLogic管理控制台上的7001

  2. 本地主机上的MyAppServer:8001我部署了我的Web应用程序。

现在我想在Eclipse上调试应用程序(我使用的是Oracle WebLogic Pack for Eclipse)。

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...

例如,我已将weblogic服务器设置为以调试方式运行:在控制台上显示正在侦听传输dt_socket at address:8453。
如果我尝试Eclise - >右键单击我的应用程序 - >调试 - >远程Java应用程序在端口8453上显示无法连接到VM。

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".

任何提示?

我没有希望,谢谢!

推荐答案

采取以下步骤:


  1. 在启动受管服务器的startManagedWeblogic.sh中,在调用startWebLogic.sh之前,添加一行debugFlag = true

  2. 启动服务器,启用从Web控制台进行隧道传输(域> YOUR_SERVER>协议>常规>选中启用隧道复选框并保存),然后重新启动服务器。

正如您所指出的,默认调试端口是8453.
在Windows环境中,将.sh替换为.cmd

Default debug port, as you pointed out, is 8453. In Windows environment, substitute ".sh" with ".cmd"

这篇关于在Eclipse上的受管服务器上调试WebLogic应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆