0
votes

System: Mac OS

IntelliJ: 2016.1.4

Glassfish: 4.1.1 (build 1)

JDK: jdk1.8.0.0_91.jdk

Java: JavaEE 7

IntelliJ cannot run glassfish in debug mode. Initially debug mode ran fine: although port (9009) needed to be killed ever now and then.

Every time glassfish is started in --debug mode (from IntelliJ) the application hangs at: Artifact is being deployed, please wait...

Passed environment variables:

JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:9009,suspend=y,server=n

Please see screen shots attached

Any help would be greatly appreciated.

current checks:

  • start intellij with sudo

  • reinstall glassfish

  • change debug port

1

1 Answers

0
votes

Change suspend=y to suspend=n so your JAVA_OPTS looks like this:

-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:9009,suspend=n,server=n

When suspend is set to y, it suspends during startup and waits until a debugger is connected to continue processing. You may also want to remove the IP address so that you aren't binding to localhost:

-agentlib:jdwp=transport=dt_socket,address=9009,suspend=n,server=n

I'm not sure if that would actually cause problems, but it's not necessary.