English 中文(简体)
Tomcat和Eclipse的遥控
原标题:Remote debugging on Tomcat with Eclipse

I m trying to initiate a remote debugging session on my PC with Eclipse & Tomcat. I managed to run tomcat (not through eclipse) with the following params:

set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=5050
cataline jpda start

服务器开 start,结果如下:

Using CATALINA_BASE:   "C:JavaTomcat"
Using CATALINA_HOME:   "C:JavaTomcat"
Using CATALINA_TMPDIR: "C:JavaTomcat	emp"
Using JRE_HOME:        "C:Javajdk1.6.0_27"
Using CLASSPATH:       ...
Listening for transport dt_socket at address: 5050
...
...
INFO: Server startup in 12502 ms

现在,我开了lip,并装上了相关项目。

我用<代码>Remote Java Application与当地东道方和右港建立了新的下游配置。 然而,在我执政时,我收到了这一错误信息:

Failed to connect to remote VM. Connection refused.
Connection refused: connect

不能真正理解问题在哪里。 这是《刑法》中所有地方的,因此,不应该有任何防火墙,有人会想什么?

最佳回答

Found the solution. apparently the connection was made, but Eclipse & Tomcat don tt show any notification or status regarding it. Then, when you initiate the connection again, you get the error because you re already connected.

我认为,从Eclipse或从Tomcat发出的小通知是空洞的。

问题回答

直接通过直接修改卡塔里娜起步书,向科索沃信托机构提出以下解答方案

-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5050

如果在单.和散射之间出现编码错误,可能会出现问题。 因此,如果与错误相匹配,就会消失。

You can configure it in remote java application section in debug configuration. For more details you can refer this link





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签