在ubuntu上使用带有glassfish服务器的intelliJ,无法在调试模式下运行Web应用程序
在ubuntu 12.04的intelliJ 12.0中,使用glassfish 3.1.2.2,我试图以调试模式启动我的Web应用程序,但是我有这个错误消息:
In intelliJ 12.0 on ubuntu 12.04 with glassfish 3.1.2.2, I'm trying to launch my web application in debug mode but I've got this error message:
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更改为另一个端口,但是它不成功。
你能帮我解决这个问题吗?
I try to change the port 9009 in the domain.xml by another one but it was unsuccessful. Could you help me to fix this problem?
谢谢
几周前我也有同样的问题。我不记得100%我改变了,但我知道它与文件 $ GLASSFISH_HOME / glassfish / domains / domain1 / config / domain.xml
有关。如果我记得我想我改变了以下行:
I had this same problem too a few weeks ago. I dont remember 100% what I changed but I know it has to do with the file $GLASSFISH_HOME/glassfish/domains/domain1/config/domain.xml
. If I recall I think I changed the following line:
<java-config debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=9009" system-classpath="" classpath-suffix="">
特别是服务器和挂起标志。当我这样设置它们时,上面描述的错误已经消失了。
In particular server and suspend flags. When I set them like this the error you described above went away.