简体   繁体   中英

Glassfish server adapter not shown in list in Eclipse

I successfully installed Glassfish Tools for Kepler. However besides Apache, Basic, JBoss and ObjectWeb I do not see an entry for GlassFish in server wizard (File->New->Other->Server) .

I tried to install Glassfish Tools both from Eclipse Marketplace and from server wizard's "Download additional server adapters".

Glassfish Tools plugin is installed Glassfish工具插件已安装

Not shown in server type list 未显示在服务器类型列表中

jre is fine ($JAVA_HOME set to the default value) jre很好($ JAVA_HOME设置为默认值)

Similar questions didn't help: Glassfish adapter in Eclipse Juno missing

I tried to install several components from Oracle Enterprise Pack for Eclipse Kepler (no matter which, because I deleted all of them afterwards!) http://marketplace.eclipse.org/content/oracle-enterprise-pack-eclipse-kepler#.U8Ul03WSy00

After installing, the dialog with warning "Oracle Enterprise Pack for Eclipse requires Java 7 or higher. Continue to configure a compatible Java VM." appeared. I specified path to jdk (same as in picture above, same as my $JAVA_HOME) and restarted Eclipse. After this everything works.

UPDATED. As I found out, the key is in eclipse.ini file. If this file starts from

-vm
/usr/local/jdk1.7.0_40/bin

(well, depending on your jdk path) Glassfish is shown in server adapter list. If not - Glassfish is not shown.

For those who are still having trouble getting this to work, it seems like the GlassFish plugin started to require Java JDK 8 for Luna at some point.

Yesterday I had GlassFish running in Eclipse Luna on JDK 7. Today I reinstalled Eclipse and the GlassFish Tools via Marketplace but the GlassFish Server did not show up in the "Define a new Server" view, although JDK 7 was selected as default VM. After I installed JDK 8 and made it my default VM, everything worked just fine.

Edit : I found this on the official Glassfish Marketplace confirming my assumption. The Glassfish Plugin for Eclipse now requires JDK 8 for Eclipse Mars and Luna (Kepler only requires JDK 7): http://marketplace.eclipse.org/content/glassfish-tools

This was a tricky one. On a windows machine/laptop, just add these two lines to your eclipse.ini. see a copy of an eclipse.ini below
-vm
C:\\Program Files\\Java\\jdk1.7.0_67\\bin

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130807-1835
-showsplash
org.eclipse.platform_4.3.1.v20130911-1000
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-install
C:\\Eclipse\\EclipseEE431
-vmargs
-Xms40m
-Xmx384m

在我的情况下,我通过使用Eclipse Marketplace解决了这个问题。在搜索框中键入“glassfish”然后安装它。这就是全部。

in Eclipse market place search for glassfish server adapter for eclipse mars. there is link to install in one of the hyperlink.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM