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-doma
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*