Glassfish 3.1.2 and Eclipse

Mirea Vasile picture Mirea Vasile · Jan 25, 2012 · Viewed 20.6k times · Source

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 ?

Answer

vkraemer picture vkraemer · Jan 26, 2012

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.