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 2.3.1.201003091003-RELEASE (com.springsource.sts.ide)
Plugin: org.eclipse.equinox.p2.engine
Session Data:
eclipse.buildId=2.3.1.201003091003-RELEASE
java.version=1.6.0_15
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 2.3.1.201003091003-RELEASE (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 2.3.1.201003091003-RELEASE (com.springsource.sts.ide)
Plugin: org.eclipse.equinox.p2.engine

I tried a supposed workaround of adding the GlassFish Eclipse Update Site (https://ajax.dev.java.net/eclipse) 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.

8 comments:

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...

https://glassfishplugins.dev.java.net/download/index.html 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! www.hipnutrition.com |

www.houseproudscheme.com |

www.b2b-realestate-scout.com |

www.hamilton-motorsport.com |

www.visitsrilanka-travel.com |

www.chapmanusedcarsaz.com |

www.businessnbudgeting.com |

www.franklinshopping.com |

www.astreocountryhouse.com |

www.wv-car-accident-lawyer.com |

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 huge.jpburnside.co.uk |

rhinomoto.co.uk |

ebayshopdesigner.co.uk |

vegan-candles.co.uk |

oxygenediving.co.uk |

montagupe.co.uk |

ne7es.co.uk |

happymondayscomedy.co.uk |

mmmmh.co.uk |

eskyhobby.co.uk |

polo outlet said...

http://www.superbagsmarket.com/
http://www.superbagsmarket.com/louis-vuitton-bags-c-1.html
http://www.superbagsmarket.com/hermes-bags-c-2.html
http://www.superbagsmarket.com/prada-bags-c-3.html
http://www.superbagsmarket.com/chanel-bags-c-4.html
http://www.superbagsmarket.com/gucci-bags-c-5.html
http://www.superbagsmarket.com/burberry-bags-c-6.html
http://www.superbagsmarket.com/celine-bags-c-7.html
http://www.superbagsmarket.com/balenciaga-bags-c-8.html
http://www.superbagsmarket.com/christian-dior-bags-c-9.html
http://www.superbagsmarket.com/chloe-bags-c-10.html
http://www.superbagsmarket.com/bvlgari-bags-c-11.html
http://www.superbagsmarket.com/bally-bags-c-12.html
http://www.superbagsmarket.com/coach-bags-c-13.html
http://www.superbagsmarket.com/michael-kors-bags-c-14.html
http://www.superbagsmarket.com/mcm-bags-c-15.html
http://www.superbagsmarket.com/fendi-bags-c-16.html
http://www.superbagsmarket.com/mulberry-bags-c-17.html
http://www.superbagsmarket.com/marc-jacobs-bags-c-18.html
http://www.superbagsmarket.com/miu-miu-bags-c-19.html
http://www.superbagsmarket.com/ysl-bags-c-20.html
http://www.superbagsmarket.com/tory-burch-bags-c-21.html
http://www.superbagsmarket.com/givenchy-bags-c-22.html
http://www.superbagsmarket.com/ferragamo-bags-c-23.html
http://www.superbagsmarket.com/lancel-bags-c-24.html
http://www.superbagsmarket.com/loewe-bags-c-25.html
http://www.superbagsmarket.com/tods-bags-c-26.html
http://www.superbagsmarket.com/paul-smith-bags-c-27.html
http://www.superbagsmarket.com/dg-bags-c-28.html
http://www.superbagsmarket.com/alexander-wang-bags-c-29.html
http://www.superbagsmarket.com/bottega-veneta-bags-c-30.html
http://www.superbagsmarket.com/specials.html
http://www.guccishoesuk-2014.com/
http://www.burbagssale2014.com/
http://www.polo-ralphlaurenonline.com/
http://www.thebeatsbydre.net/

Post a Comment

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