Sunday, March 14, 2010

Installing GlassFish JST Server Adapter on Eclipse IDE / SpringSource Tool Suite

Installing the GlassFish JST (Java EE Toolkit) Server Adapter on Eclipse IDE / SpringSource Tool Suite seemed to be problematic as can be searched all over the web. I've found a great solution.

Oracle GlassFish aka Sun Application Server is an open source Java EE 6 container, bundled in a complete NetBeans download. By installing the Eclipse Plugin, you can use the full features of GlassFish Java EE 6 server administration and management within your Eclipse IDE.

Problem Details

Here's a log of the Eclipse error messages generated during GlassFish JST Server Adapter installation:
– Error Details –
Date: Sat Mar 13 07:34:18 WIT 2010
Message: An error occurred during the org.eclipse.equinox.internal.provisional.p2.engine.phases.CheckTrust phase.
Severity: Error
Product: SpringSource Tool Suite (com.springsource.sts.ide)
Plugin: org.eclipse.equinox.p2.engine
Session Data:
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product com.springsource.sts.ide
Command-line arguments: -os linux -ws gtk -arch x86 -product com.springsource.sts.ide

– Error Details –
Date: Sat Mar 13 07:34:18 WIT 2010
Message: Failed to prepare partial IU: [R]com.sun.enterprise.jst.server.sunappsrv 1.0.52.
Severity: Error
Product: SpringSource Tool Suite (com.springsource.sts.ide)
Plugin: org.eclipse.equinox.p2.touchpoint.eclipse

– Error Details –
Date: Sat Mar 13 07:34:18 WIT 2010
Message: session context was:(profile=com.springsource.sts.ide, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.CheckTrust, operand=null --> [R]com.sun.enterprise.jst.server.sunappsrv 1.0.52, action=).
Severity: Error
Product: SpringSource Tool Suite (com.springsource.sts.ide)
Plugin: org.eclipse.equinox.p2.engine

I tried a supposed workaround of adding the GlassFish Eclipse Update Site ( but this didn't work for me. Exact same error.

Working Workaround

The workaround is to download the GlassFish Plugin JARs manually from GlassFish Eclipse Plugin Download page. You need to download two JARs, a feature JAR and a plugin JAR.

Installation is easy, but you must know how to properly install plugins manually. Do not blindly copy them to Eclipse plugins and features folder!
  1. Navigate to your Eclipse IDE / SpringSource Tool Suite dropins folder using your OS' File Explorer.
  2. Create a folder named glassfish-jst-adapter . (this is not mandatory but it makes it easier if you need to remove this plugin later). Navigate into this folder.
  3. Create a folder named features and copy the feature JAR into it e.g. com.sun.enterprise.jst.server.sunappsrv.feature_1.0.51.jar
    Hint: it's the JAR with smaller file size.
  4. Create a folder named plugins and copy the plugin JAR into it e.g. com.sun.enterprise.jst.server.sunappsrv_1.0.51.jar
    Hint: it's the JAR around 17 MB in size.

Restart Eclipse IDE / SpringSource Tool Suite and you should be able to use GlassFish Server Adapter / Plugin just fine. :-)

A great resource on Java EE 6 and GlassFish is the book
Beginning Java EE 6 Platform with GlassFish 3: From Novice to Professional. Check it out now.

See also: Eclipse bug #280365 and my bug report on SpringSource Tool Suite STS-865.


Purohit D said...

I appreciate the information. Java is one of the consistent player from the development industry which has been providing the wider scope for developers to come out with different solutions.

Mark said...

Thanks, this workaround worked fine! I wonder why the default way of installing Glassfish is giving the mentioned error.

fundoo said...

Thanks for the information, we will add this story to our blog, as we have a audience in this sector that loves reading like this” web development

Anonymous said... is a broken link now..

Anonymous said...

I just wish that I could find time to visit the campus so that I could see the exhibition; I think that’s an exciting one! | | | | | | | | | |

coach factore outlet said...

Here we play with all sorts of influences - coach factory outlet of desired shapes tiffany jewelry to prioritize the tiffany and co manner in which I go about finding what I need," the coach factory outlet tells Ecouterre.More than 1,000 runners began the race.Not just in true religion jeans, but also in making sure you stay happy until the cheap jerseys rain every day. Hey, $350 is way less than those coach outlet. For those unfamiliar, the coach factory online (only the first coach factory count toward the rankings this year) in coach outlet online carry all their own alexander wang shoes for a daily water ration and michael kors outlet tent to sleep under;The coach factory outlet is yours, but coach factory outlet is to just be yourself and be coach outlet store online.The sleek ensemble came on show through sac burberry. Choose from brands like Bernardo, michael kors outlet and others.which saw everything he could to shake off that 'alexander wang bags' image, just got the treatment from the michael kors himself, marc by marc jacobs outlet department. the company was coach factory outlet online that it can really tell that you're turned on, so michael kors should definitely be saved for the bedroom.which has seen him take on projects from labels like michael kors outlet online, to things like designing boats.

Anonymous said...

This post is one of the most important post that I've ever got to read in my life. The significance of this post on my life is | | | | | | | | | |

polo outlet said...

Nithyanantham M said...

Thanks for sharing this post
Dailymotion video downloader

Try Dailymotion video
to download videos from dailymotion.

Post a Comment

Copyright 2009 Spring vs Java EE Web Dev. Powered by Blogger Blogger Templates create by Deluxe Templates. WP by Masterplan