I just downloaded the Glassfish version 3.1.2, this is not yet an official release. I need this version because my web application is using websockets. The problem I have now is with the Glassfish plugin for eclipse, he is not recognizing the new Glassfish Version. With the Glassfish Version 3.1.1 in Eclipse everything works fine. I am using Oracle Glassfish Server Tools (Eclipse plugin ) version 2.0.0.20111104904 from Oracle(last version I could download). If I try to add a new Server Runtime Environment in Eclipse for the Glassfish 3.1.2 I get the error: There is no valid GlassFish installation in the specified directory... I need everything to be able to debug my web application in Eclipse.
Anyone know what the plugin is checking ? There is any change to trick the plugin so will run with Glashfish 3.1.2 too ?
Installing Glassfish toolsOpen Eclipse Marketplace from Help-> Eclipse Marketplace menu. Type Glassfish in the search box to filter Glassfish plugins. In the search result, find Glassfish tools , click the Install button to install it. After it is installed, restart Eclipse IDE to apply the plugin.
Glassfish 6 are not supported in eclipse (Eclipse support for Glassfish 6)
GlassFish 6.2. 3 compiles with JDK 11 to JDK 17 and runs on JDK 11 to JDK 17. GlassFish 6.2. 3 also compiles and runs on JDK 18-EA releases.
Use the plugin from here (for Indigo): http://dlc.sun.com.edgesuite.net/glassfish/eclipse/indigo/
The plugin for Helios does not support 3.1.2.
If you have to live with the bits the are blessed by Oracle or keep using Helios, then you can try the following trick:
create a couple files....
${glassfish.rootdirectory}/modules/jsf-impl.jar and ${glassfish.rootdirectory}/modules/jstl-impl.jar
These files were renamed between 3.1.1 and 3.1.2...
You may be able to get the 3.1.2 to mascarade as 3.1.1 by just creating empty files with the above names. If that doesn't do it, make copies of the following files should do it.
The new name for jstl-impl.jar is gf312/glassfish/modules/javax.servlet.jsp.jstl.jar
The new name for jsf-impl.jar is gf312/glassfish/modules/javax.faces.jar.
If you are on Helios, you can try the following:
Though the plugin says indigo, it is also working for me in Helios. And it gives options for both Glassfish 3.1.1 and 3.1.2 servers (pre and post name changes).
Note that it downloads Glassfish itself, and installs an internal server. You can delete that one, and install your own server ("New server...") if you have an existing server you want to work with (as I did).
HTH.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With