quality@glassfish.java.net

Re: Admin console problem on build 28

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Tue, 07 Oct 2008 14:00:54 -0700

Hi Wouter,

Thanks for sharing your experience. Based on this info, here is my
thinking:

The 'old' domain.xml has info that admin console has been deployed,
and that version is build 26.
Then when you overwrite the new domain.xml with this old copy, the
code detects that. It thinks you already have build 26 admin console
installed and deployed, and you also downloaded build 28. So, we need
to do an upgrade. Everything is fine so far and executed as expected.

During upgrade, the code tries to backup the old bits which is under
glassfish/lib/install/applications/__admingui but failed since that
directory doesn't exist. Thats why you get this error:

Cannot backup previous version of __admingui

and the upgrade stopped. Which means the new console will not be
deployed.
Maybe we can be more forgiving when we cannot find this old bits and
just continue with the upgrade process.

This error will not happen if you are actually using the updatetool or
admin console to do the upgrade. In this case, the old bits will be
there, and the backup will be successful and upgrade will continue. I
forgot if all the bugs has been ironed out relating to update in Admin
Console for build 26. But definitely is working fine in build 27.

One thing you can do later when build 28a is out is just update your
current installation from b28 to b28a. You can use updatetool or
through the Admin Console. You should see all the updates
available. Install all the updates and restart the server. That
should give you build 28a. That will be a good test too :)

thanks
Anissa.

Wouter van Reeven wrote:
> Hi,
>
>
> In order not to have to go through too many steps when moving from one promoted
> build to the next I make a backup of the domain.xml config file before
> uninstalling one build and installing the next. Apparently, that domain.xml
> contains info about the admin console. When I use a domain.xml from a previous
> build (build 26 to be exact) on build 28, I get these messages in the
> server.log:
>
> [#|2008-10-07T22:26:33.322+0200|INFO|GlassFish10.0|global|_ThreadID=14;_ThreadName=Thread-3;|Preparing to upgrade Admin Console Application...|#]
>
> [#|2008-10-07T22:26:33.341+0200|FINE|GlassFish10.0|javax.enterprise.system.util|_ThreadID=14;_ThreadName=Thread-3;ClassName=null;MethodName=null;/home/wouter/java/gfv3/glassfishv3-prelude/glassfish/domains/domain1/generated/xml/__admingui;|UTIL6049:
> Attempt to delete /home/wouter/java/gfv3/glassfishv3-prelude/glassfish/domains/domain1/generated/xml/__admingui failed; the file is reported as
> non-existent|#]
>
> [#|2008-10-07T22:26:33.344+0200|FINE|GlassFish10.0|javax.enterprise.system.util|_ThreadID=14;_ThreadName=Thread-3;ClassName=null;MethodName=null;/home/wouter/java/gfv3/glassfishv3-prelude/glassfish/domains/domain1/generated/ejb/__admingui;|UTIL6049:
> Attempt to delete /home/wouter/java/gfv3/glassfishv3-prelude/glassfish/domains/domain1/generated/ejb/__admingui failed; the file is reported as
> non-existent|#]
>
> [#|2008-10-07T22:26:33.344+0200|FINE|GlassFish10.0|javax.enterprise.system.util|_ThreadID=14;_ThreadName=Thread-3;ClassName=null;MethodName=null;/home/wouter/java/gfv3/glassfishv3-prelude/glassfish/domains/domain1/generated/jsp/__admingui;|UTIL6049:
> Attempt to delete /home/wouter/java/gfv3/glassfishv3-prelude/glassfish/domains/domain1/generated/jsp/__admingui failed; the file is reported as
> non-existent|#]
>
> [#|2008-10-07T22:26:33.345+0200|SEVERE|GlassFish10.0|javax.enterprise.system.core|_ThreadID=14;_ThreadName=Thread-3;|Cannot backup previous version of
> __admingui |#]
>
> [#|2008-10-07T22:26:33.345+0200|INFO|GlassFish10.0|global|_ThreadID=14;_ThreadName=Thread-3;|Cannot backup previous version of __admingui|#]
>
> [#|2008-10-07T22:26:38.462+0200|INFO|GlassFish10.0|global|_ThreadID=15;_ThreadName=Thread-3;|AdminConsoleAdapter's STATE IS: Cannot backup previous
> version of __admingui|#]
>
> [#|2008-10-07T22:26:38.463+0200|INFO|GlassFish10.0|global|_ThreadID=15;_ThreadName=Thread-3;|Restoring previously deployed Admin Console...|#]
>
> [#|2008-10-07T22:26:38.464+0200|INFO|GlassFish10.0|global|_ThreadID=15;_ThreadName=Thread-3;|Cannot upgrade Admin Console.|#]
>
> [#|2008-10-07T22:26:44.131+0200|INFO|GlassFish10.0|global|_ThreadID=14;_ThreadName=Thread-3;|AdminConsoleAdapter's STATE IS: Cannot upgrade Admin
> Console.|#]
>
> [#|2008-10-07T22:26:44.135+0200|INFO|GlassFish10.0|global|_ThreadID=14;_ThreadName=Thread-3;|Restoring previously deployed Admin Console...|#]
>
> [#|2008-10-07T22:26:44.146+0200|INFO|GlassFish10.0|global|_ThreadID=14;_ThreadName=Thread-3;|Cannot upgrade Admin Console.|#]
>
> [#|2008-10-07T22:26:49.566+0200|INFO|GlassFish10.0|global|_ThreadID=15;_ThreadName=Thread-3;|AdminConsoleAdapter's STATE IS: Cannot upgrade Admin
> Console.|#]
>
> [#|2008-10-07T22:26:49.566+0200|INFO|GlassFish10.0|global|_ThreadID=15;_ThreadName=Thread-3;|Restoring previously deployed Admin Console...|#]
>
> [#|2008-10-07T22:26:49.567+0200|INFO|GlassFish10.0|global|_ThreadID=15;_ThreadName=Thread-3;|Cannot upgrade Admin Console.|#]
>
> Whenever I use the default domain.xml, installing the admin console goes without
> problems. If I then copy my backup domain.xml and restart GF all works fine.
> However, this seems to be an issue to me when upgrading to a new version of GF.
> Would you like me to report this in IssueTracker?
>
>
> Wouter
>
>