Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems with glassfish 4 Debug in IDEA 12.1

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?

like image 422
kostepanych Avatar asked Jun 28 '13 13:06

kostepanych


4 Answers

As banterCZ explained. If the button fix does not react, It can also be a permission problem. You can also start IntelliJ as Administrator, and click to the button fix If it does not work.

like image 199
Willy Makend Avatar answered Nov 15 '22 20:11

Willy Makend


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.

like image 32
Stephan Voigt Avatar answered Nov 15 '22 18:11

Stephan Voigt


It is a tricky one. When you add an artifact in the deployment tab, you see a warning message in the bottom (If you not, just resize the window enough):

Debug settings are invalid or not suitable for local debugging

Then just click to the button fix.

like image 37
banterCZ Avatar answered Nov 15 '22 18:11

banterCZ


There is similar error (Server is not connected. Deploy is not available.) with IDEA 13.1.* and Glassfish 4.1. Upgrading intellij JDK to 1.7 or 1.8 solved this problem. Go Intellij.App/Contents modify Info.plist upgrade JVMVersion 1.6* to 1.7*

like image 23
Metin YAVUZ Avatar answered Nov 15 '22 19:11

Metin YAVUZ