Problems with glassfish 4 Debug in IDEA 12.1

[亡魂溺海] 提交于 2019-11-30 18:34:15

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.

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.

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*

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.

Paul K

FIX for Mac:

1) Open Terminal (make sure IDEA is closed)

2) type: vi "/Applications/IntelliJ IDEA 13.app/Contents/Info.plist"

3) Find Line with JWMVersion

4) on your keyboard click key "i" and change the value from 1.6* to 1.8*

5) Press ESC

6) Press Command + key ":"

7) input "wq"

8) Start IDEA

Vindya Hettige

Actually the situation was same here for IntelliJ 15.0.2 and Glassfish 4.1.1. But it was not a problem of JDK incompatibility here, because I used JDK 1.8. Instead, it was the invalid details of server configuration. This kind of situation can occur with an invalid password, VM and other details.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!