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!
/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