debugging - 无法在带有 glassfish 服务器的 ubuntu 上使用 intelliJ 在 Debug模式下运行 Web 应用程序

标签 debugging intellij-idea port glassfish-3 ubuntu-12.04

在带有 glassfish 3.1.2.2 的 ubuntu 12.04 上的 intelliJ 12.0 中,我试图在 Debug模式下启动我的 Web 应用程序,但我收到以下错误消息:

Error starting domain domain1.
The server exited prematurely with exit code 134.
Before it died, it produced the following output:

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:741]

我尝试将 domain.xml 中的端口 9009 更改为另一个端口,但没有成功。
你能帮我解决这个问题吗?

谢谢

最佳答案

几周前我也遇到了同样的问题。我不记得 100% 我改变了什么,但我知道它与文件 $GLASSFISH_HOME/glassfish/domains/domain1/config/domain.xml 有关。 .如果我记得我想我改变了以下行:

<java-config debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=9009" system-classpath="" classpath-suffix="">

特别是服务器和挂起标志。当我这样设置它们时,您上面描述的错误就消失了。

关于debugging - 无法在带有 glassfish 服务器的 ubuntu 上使用 intelliJ 在 Debug模式下运行 Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14644690/

相关文章:

grails - Grails 环境的 IntelliJ 运行配置

Goland:运行任意代码质量工具,获得可点击的结果

Google Compute Engine 上的 Flask - 无法从外部/浏览器访问

ssh - scp +错误名称或服务未知+自定义端口

.net - 如何在没有 Visual Studio 的情况下查看远程 .NET 应用程序中哪个线程发疯

c++ - 从 !DllRegisterServer+0x3ebfa 符号获取 C++ 函数名来解决 'endless wait in critical section' 难题

ios - 是否可以跟踪 UIView 框架的更改?

perl 调试改进

GitHub promise 行为相当奇怪

Python端口转发