Home » Clustering, Featured, Glassfish, Headline, How-to, Java

Upgrade from Glassfish 2.1 to 2.1.1

29 December 2009 One Comment

For some reasons the asupgrade tool from Sun Glassfish doesn’t work if you want to upgrade your Glassfish from 2.1 to 2.1.1. The upgrade method what I will present you in the next post, probably, is not recommended by SUN, but it will work in most cases (clustered or not). Just follow this steps:

1. Stop all domains, node agents, instances from all cluster (or only the domain if you have only 1 server)
2. Rename Glassfish folder to g2.1
3. Install glassfish 2.1.1

$ java -Xmx256m -jar glassfish-installer-v2.1.1-b31g-linux.jar
$ cd glassfish
$ chmod +x lib/ant/bin/ant
$ lib/ant/bin/ant -f setup-cluster.xml
$ lib/ant/bin/ant -f setup.xml

4. Now just copy domains and nodeagents folder from g2.1 to glassfish
5. Start the server again.

I didn’t test that under Windows, just under Linux Debian 5.1 and until now it seems to run fine.
This method is much easier than reinstalling everything and if you have big applications/big clusters or a lot of resources what should be configured then,this method, is a time saver.

One Comment »

  • luca said:

    Works on windows also.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.