Cannot run web application in debug mode using intelliJ on ubuntu with Glassfish server

In intelliJ 12.0 on ubuntu 12.04 with glassfish 3.1.2.2, I am trying to run my web application in debug mode, but I have 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]

I am trying to change the port 9009 in domain.xml to another, but it was unsuccessful. Could you help me solve this problem?

thank

+5
source share
4 answers

I had the same problem a few weeks ago. I don’t remember 100% of what I changed, but I know that this is related to the file $GLASSFISH_HOME/glassfish/domains/domain1/config/domain.xml. If I remember, 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="">

, . , , , .

+34

, , 9009 DbVisualizer. DbVisualizer , 9009. DbVisualizer GlassFish .

, , Glassfish.

.

0

IntelliJ . , Run/Debug Java EE, :

Warning message in IntelliJ

Just click the "Fix" button and you will fix the configuration file "domain.xml".

This is also explained in this lesson: https://www.jetbrains.com/help/idea/2016.1/developing-a-java-ee-application.html

0
source

For a future poor soul who has the same problem as me:

One of the tools that comes with Gigabyte motherboards (I believe gCloud) registers a Windows service on port 9009. This port is then displayed in netstat -ano as used by PID 4 (something on a Windows system).

0
source

All Articles