Actualización de GlassFish v3 a v3.0.1

Sparky V3
Junto con el lanzamiento de NetBeans 6.9, Oracle también lanzó GlassFish v 3.0.1 (que también viene incluido en el NB 6.9)

Ahora, si ya tenemos en producción un GFv3 con todas las aplicaciones configuradas, JDBC Resources puesto a punto... ¿cómo le hacemos para actualizar a la versión  3.0.1?

Tranquilos, no hay que temer.. aquí está la solución

Desde la línea de comandos, entramos al directorio $GLASSFIS_HOME\bin y ejecutamos lo siguiente:


[root@host bin]# ./pkg list

Y si es la primera vez que vamos a ejecutar esta opción, le respondemos que "sí"
The software needed for this command (pkg) is not installed.

When this tool interacts with package repositories, some system information
such as your system's IP address and operating system type and version
is sent to the repository server. For more information please see:

http://wiki.updatecenter.java.net/Wiki.jsp?page=UsageMetricsUC2

Once installation is complete you may re-run this command.

Would you like to install this software now (y/n): y

Proxy: Using system proxy settings.
Install image: /opt/glassfishv3
Installing pkg packages.
Initialization complete.

Software successfully installed. You may now re-run this command (pkg).


Ahora, volvemos a ejecutar el comando pkg list y nos mostrará los paquetes instalados en el nuestro servidor

NAME (PUBLISHER)                              VERSION         STATE      UFIX
felix                                         2.0.2-0         installed  ----
glassfish-appclient                           3.0-74.2        installed  ----
glassfish-cmp                                 3.0-74.2        installed  ----
glassfish-common                              3.0-74.2        installed  ----
glassfish-common-full                         3.0-74.2        installed  ----
......
pkg-toolkit-incorporation                     2.3.2-38.2791   installed  ----
python2.4-minimal                             2.4.4.0-38.2791 installed  ----

Necesitamos la herramienta de actualización, esto se hace así:

[root@host bin]# ./pkg install updatetool

DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                  2/2     899/899      9.0/9.0

PHASE                                        ACTIONS
Install Phase                              1045/1045
Bien, ahora ejecutaremos nuevamente el "list", y nos mostrará los paquetes instalados y cuales cuenta con una actualización (tienen el subfijo "u"):

[root@host bin]# ./pkg list
NAME (PUBLISHER)                              VERSION         STATE      UFIX
felix                                         2.0.2-0         installed  u---
glassfish-appclient                           3.0-74.2        installed  u---
glassfish-cmp                                 3.0-74.2        installed  u---
glassfish-common                              3.0-74.2        installed  u---
glassfish-common-full                         3.0-74.2        installed  u---
......
pkg-toolkit-incorporation                     2.3.2-38.2791   installed  ----
python2.4-minimal                             2.4.4.0-38.2791 installed  ----
updatetool                                    2.3.2-38.2791   installed  ----
wxpython2.8-minimal                           2.8.10.1-38.2791 installed  ----

Falta un poco... ahora instalamos la nueva versión de la imagen, así:

[root@host bin]# ./pkg image-update
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                40/40     306/306    56.5/56.5

PHASE                                        ACTIONS
Removal Phase                                  43/43
Install Phase                                  34/34
Update Phase                                 877/877

Listo!!
Reiniciamos el GlassFish, y tendremos hasta nueva cara desde el inicio:


Esto es también válido para Windows.

Comentarios

Entradas más populares de este blog

Groovy: Un lenguaje dinámico y ágil para la Plataforma Java

Cambiar ícono a un JFrame

UML en NetBeans