Upgrade from Glassfish 2.1 to 2.1.1
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
or
$ 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.























Leave your response!