users@glassfish.java.net

Re: Upgrading from v2ur1 to v2ur2

From: Shreedhar Ganapathy <Shreedhar.Ganapathy_at_Sun.COM>
Date: Sun, 07 Sep 2008 22:42:37 -0700

Just install GF v2 ur2 in another directory and then from that
directory's bin dir, invoke asadmin start-domain with --domaindir option
pointing to your old domain dir location.

You can also invoke, asupgrade from the new install's bin dir and that
will launch the upgradetool. This will upgrade your old domain to the
ur2 domain.

For inplace upgrade, try with the Sun branded GlassFish appserver whose
installer will detect the old domain and provide upgrade options.
http://www.sun.com/appserver

Although upgradetool does a backup of your old domain, I would still
recommend using the asadmin backup-domain command so that should you
need to go back to your old domain you can run asadmin restore-domain to
bring back the old domain.

hth
Shreedhar

glassfish_at_javadesktop.org wrote:
> Hi,
>
> Am trying to do a In Place upgrade like documentation you provided states.
>
> 1. downloaded the v2ur1 to the same location
> 2. java -Xmx256m -jar glassfish-installer-v2ur2-b04-linux-ml.jar
> 3. ant -f setup-cluster.xml produces the error below.
>
> create.domain:
> [exec] Domain domain1 already exists in /opt/glassfish/domains. Use a different domain name or the --domaindir option.
> [exec] CLI130 Could not create domain, domain1
>
> BUILD FAILED
> /opt/glassfish/setup-cluster.xml:169: The following error occurred while executing this line:
> /opt/glassfish/setup-cluster.xml:200: The following error occurred while executing this line:
> /opt/glassfish/setup-cluster.xml:646: exec returned: 1
>
> Makes sense but how do I get around this? Do I need to move the current domain directory and import it back? An help will be appreciated.
>
> Thank you
> [Message sent by forum member 'nayabinghi' (nayabinghi)]
>
> http://forums.java.net/jive/thread.jspa?messageID=297726
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>