Failure deploying from IDEA 13.1.4 to Glassfish v4.1 - "Server is not connected. Deploy is not available."

When trying to deploy a RESTful web service to Glassfish 4.1, IDEA consistently reports that "Server is not connected. Deploy is not available." See the console output below.

Manual deployment of the project to GF 4.1 works, but then you can't debug it as easily - particularly if you need to make changes on the fly and redeploy without restarting the server or undeploying.

So far I've checked that the admin port and JMX ports are correct (they are) and that the JVM settings appear reasonable (they do). In fact, I can't seem to find any differences from how the GF 4.0 server was configured. Unfortunately, using GF 4.0 is not an option because we need to use a version of Guava that fails to deploy because of CDI errors detected. Newer versions of Guava have this fixed, but they aren't compatible with TitanDB 0.4.4 which we are currently using in our project.

Any ideas on how to work around or fix this issue would be appreciated!

<hr/>

/Users/leopoldb/glassfish410/glassfish/bin/asadmin start-domain --debug domain1
Detected server admin port: 4848
Detected server http port: 8080
[2014-09-11 03:52:17,273] Artifact LearnJWS-2:war exploded: Server is not connected. Deploy is not available.
Debugging is enabled and the server is suspended.  Please attach to the debugging port at: 9009
Waiting for domain1 to start .Connected to the target VM, address: '127.0.0.1:9009', transport: 'socket'
..
Successfully started the domain : domain1
domain  Location: /Users/leopoldb/glassfish410/glassfish/domains/domain1
Log File: /Users/leopoldb/glassfish410/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Debugging is enabled.  The debugging port is: 9009
Command start-domain executed successfully.
/Users/leopoldb/glassfish410/glassfish/bin/asadmin stop-domain domain1
Disconnected from the target VM, address: '127.0.0.1:9009', transport: 'socket'
Waiting for the domain to stop ...................................................
Command stop-domain executed successfully.
Disconnected from server

2 comments
Comment actions Permalink

It turns out that this problem was because IntelliJ IDEA was launched with the Java 1.7 JDK but the Glassfish server was running JDK 1.8. After following the directions in the link below to launch IDEA under the 1.8 JDK deployment succeeded.

https://intellij-support.jetbrains.com/entries/23455956-Selecting-the-JDK-version-the-IDE-will-run-under

Hopefully this reply will help anyone else running into the same issue.

0
Comment actions Permalink

We are working on it, you may track progress under http://youtrack.jetbrains.com/issue/IDEA-124922

Regards,
Michael

0

Please sign in to leave a comment.