Krishnamohan Meduri's weblog

Monday Oct 02, 2006

Want to run Sun Java System Web Server 7.0 Technology Preview 3 with Java EE 5 Web Container ?

If you want to run Sun Java System Web Server 7.0 Technology Preview 3 with Java EE 5 compliant web container from Project Glassfish, you can do so. As it stands today, it has a few known issues and hence is good for experimental purpose only.

Here are the steps:

1. Download and install Web Server 7.0 Technology Preview 3.

2. Checkout and build web container from project glassfish

    Prerequisites to building GlassFish

  • The user must have Maven v1.0.2 and JDK 5.0 (Java SE Development kit) installed.
  • The user must have a login on java.net and must have access to the CVS repository for the GlassFish project.
    Build instructions

     $mkdir workspace
     $cd workspace
     $cvs -d :pserver:<userid>@cvs.dev.java.net:/cvs checkout -r PWC12Dev_Branch glassfish/bootstrap

Create  workspace/glassfish/bootstrap/build.properties -or-
one-time process is to create ${HOME}/build.properties (Unix)  or %HOMEPATH%\build.properties (Windows) and set the following variables:
    glassfish.os.name= <Possible values:WINNT, SunOS, Linux, SunOS_X86 or Darwin>
    glassfish.cvs.username= <java.net id>

     $cd glassfish/bootstrap
     $maven checkout-pwc bootstrap-pwc build-pwc

         Note: These targets checkout, bootstrap and build only those components that are relevent to web container.
 
3. Modify the Web Server 7.0 installation to use the Java EE 5 compliant web container binaries from project glassfish

     $cp workspace/publish/pwc/pwc.jar WS7_INSTALL_DIR/lib/pwc.jar
         $cp workspace/publish/pwc/appserv-jstl.jar WS7_INSTALL_DIR/lib/webserv-jstl.jar

Comments:

Thanks for a nice & crisp blog. Could you please add steps as to how I could deploy a Java EE 5 web app to Web Server 7.0 w/ GlassFish?

Posted by javaguru on October 02, 2006 at 08:24 PM PDT #

[1]http://blogs.sun.com/kmeduri/entry/how_to_deploy_a_war [2]http://blogs.sun.com/kmeduri/entry/migrating_web_applications_from_apache [1] explains how to deploy using Admin GUI [2] has sections that detail how to deploy using wadm CLI. Mainly, Look for add-webapp and deploy-config wadm commands.

Posted by Krishnamohan Meduri on October 03, 2006 at 11:04 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Calendar

Feeds

Search

Links

Navigation

Referrers