Problems with glassfish 4 Debug in IDEA 12.1

kostepanych picture kostepanych · Jun 28, 2013 · Viewed 13.5k times · Source

I'm trying to debug glassfish 4 application in IntelliJ IDEA12.1 and am getting the following:

D:\tools\glassfish4\glassfish\bin\asadmin.bat start-domain --debug domain1
[2013-06-28 03:58:34,480] Artifact exchange-web:war: Server is not connected. Deploy is not available.
Detected server admin port: 4848
Detected server http port: 8080                                
Attempting to start domain1.... Please look at the server log for more details.....

But nothing started. And there is no error in log.

So what should I do to resolve this?

Answer

Stephan Voigt picture Stephan Voigt · Sep 14, 2014

Had also trouble with that after upgrading to GF 4.1. Problem was, that IntelliJ itself was running under 1.6 VM. GF 4.1 comes with 1.7 compiled classes. Switching IntelliJ JDK to 1.7 solved that deployment trouble.