Skip to main content

Working with Metro on Glassfish v3 TP2

Posted by bhaktimehta on May 12, 2008 at 12:56 PM PDT

Glassfish v3  will be the next major release of the GlassFish
application server. The focus of the release is modularization,
enablement of non Java EE containers and embedability. GlassFish v3 builds on the strength of GlassFish v2 but takes a completely new approach, providing a highly modular, lightweight, extensible architecture.

GlassFish v3 Technology Preview 2 (TP2) is a milestone release
of the GlassFish v3 Application Server. You can find the TP2 glassfish
preview bundle href="https://glassfish.dev.java.net/downloads/v3-techPreview-2.html">here.

This page provides a brief description of TP2, and points
to the information you need to get started. href="http://wiki.glassfish.java.net/Wiki.jsp?page=GlassFishV3TP2Content">Here
is the information on what is part of TP2

Metro will be available as an  Update Center module in V3 as partof the TP2

This is a preliminary guide on how to work with Metro in the current
development v3 builds.
Note: This can be subjected to change in future.

Steps to install and run v3.
1. Unzip gfv3-preview2.zip downloaded from href="https://glassfish.dev.java.net/downloads/v3-techPreview-2.html">here.

 This is the web distribution for v3 and does not have support for
EJBs. For TP2 we will only support JAXWS deployment ie.webservices with
webapps
whose versions are 2.3 or 2.4. Support for
JSR 109 based services is in progress and will be available after TP2.

2. Run glassfish-v3tp2/bin/updatetool.bat
You get a prompt like this

The software needed for this command (updatetool.bat) is not installed.
Press any key to install the necessary software, or Ctrl-C to quit.
After software installation is completed you may re-run this command.
It downloads the necessary files

Platform: windows-i386
Software repository: http://pkg.glassfish.org/dev/windows/gf3000_2000/
Installing
pkg packages...
Installing: python2.4-minimal@2.4.4,0-6.564:20080425T194712Z
python2.4-minimal@2.4.4,0-6.564:20080425T194712Z: manifest file doesn't exist ye
t, fetching from server
python2.4-minimal@2.4.4,0-6.564:20080425T194712Z: downloading files.............
................................................................................
..........................................................................
python2.4-minimal@2.4.4,0-6.564:20080425T194712Z: installing files...
Installing: pkg@0.1.4,0-6.564:20080425T194710Z
pkg@0.1.4,0-6.564:20080425T194710Z: manifest file doesn't exist yet, fetching fr
om server
pkg@0.1.4,0-6.564:20080425T194710Z: downloading files...........................
........................................
pkg@0.1.4,0-6.564:20080425T194710Z: installing files...
Installing updatetool packages...
Installing: wxpython2.8-minimal@2.8.7.1,0-6.564:20080425T194728Z
wxpython2.8-minimal@2.8.7.1,0-6.564:20080425T194728Z: manifest file doesn't exis
t yet, fetching from server
wxpython2.8-minimal@2.8.7.1,0-6.564:20080425T194728Z: downloading files.........
.............................................................
Installing: updatetool@2.0,0-6.564:20080425T194726Z
updatetool@2.0,0-6.564:20080425T194726Z: manifest file doesn't exist yet, fetch
ng from server
updatetool@2.0,0-6.564:20080425T194726Z: downloading files.....................
................................................................
updatetool@2.0,0-6.564:20080425T194726Z: installing files...
Update Center initialization complete.

This installs the UpdateCenter


3.Run glassfish-v3tp2/bin/updatetool.bat again
and that brings up the gui like this
click on the Available Add-ons




update-center.jpg

4. Select Metro Web Services Stack and click install
This will copy webservices-rt.jar,
webservices-tools.jar,webservices-api.jar and jsr109-impl.jar to

glassfishv3-tp2/glassfish/modules folder. Next you can start the GF
using
glassfishv3-tp2/glassfish/bin/asadmin start-domain domain1

5. Deploy your war like this
glassfishv3-tp2/glassfish/bin/asadmin deploy foo.war

Related Topics >>

Comments

I get an error when trying to install the Metro stack with updatetool. Right after the download finishes a window pops up saying : Installation failed, and invting me to send the error to the dev@updatetool.dev.java.net list, which I did. Could this have something to do with my jdk version? (1.6.0_06)? What might be wrong? TIA - wimv

Thanks Eduardo, that is right preferences tab has the option of setting the proxy info

Did you try the "Preferences" tab? It is in both UpdateTool v2 and UpdateTool v3. - eduard/o

When running the updatetool, is there any way to set information for a HTTP proxy (url/port) ? TIA, Mike Norman

Thanks from me too!