Working with Metro on Glassfish v3 TP2
Posted by bhaktimehta on May 12, 2008 at 3:56 PM EDT
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 here.
This page provides a brief description of TP2, and points to the information you need to get started. Here is the information on what is part of TP2
Metro will be available as an Update Center module in V3 as part of 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 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.batYou get a prompt like this
The software needed for this command (updatetool.bat) is not installed.It downloads the necessary files
Press any key to install the necessary software, or Ctrl-C to quit.
After software installation is completed you may re-run this command.
Press any key to continue . . .
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
4. Select Metro Web Services Stack and click installThis 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 thisYou can try metro samples from https://metro.dev.java.net/
glassfishv3-tp2/glassfish/bin/asadmin deploy foo.war
Please give us feedback if this works for you . You can file your bugs under https://glassfish.dev.java.net/issues/ category webservices and version v3.
Additional Information
Project Metro
V3 Engineers Guide
V3 Build Instructions
Related Topics >>
Blog Links >>
- Login or register to post comments
- Printer-friendly version
- bhaktimehta's blog
- 2294 reads






Comments
by wimv - 2008-06-08 15:12
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 - wimvby bhaktimehta - 2008-05-13 14:33
Thanks Eduardo, that is right preferences tab has the option of setting the proxy infoby pelegri - 2008-05-13 14:30
Did you try the "Preferences" tab? It is in both UpdateTool v2 and UpdateTool v3. - eduard/oby mwnorman - 2008-05-13 06:57
When running the updatetool, is there any way to set information for a HTTP proxy (url/port) ? TIA, Mike Normanby mwnorman - 2008-05-15 11:10
Thanks from me too!