FAQ
History
PreviousHomeNext Search
Feedback
Divider

Deploying Web Modules

Before a Web application can be accessed, it must be deployed as a Web module in the application server. For example, to deploy the hello1 Web module in the IDE:

  1. Start the Sun ONE Application Server 7.
  2. Verify that the Sun ONE Application Server 7 has been installed.
    1. In the Runtime pane of the Explorer, choose the node Server RegistryRight ArrowInstalled Servers.
    2. Verify that the Sun ONE Application Server 7 is listed below Installed Servers. If it is not listed:
      1. Install the Sun ONE Application Server Plugin as described in SunTrademarked ONE Studio 4, Enterprise Edition for JavaTrademarked with Application Server 7 Tutorial.
      2. Right-click Sun ONE Application Server 7 in the Installed Servers list and choose Add Admin Server.
      3. Type the host and port (4848) of the application server's admin server.
      4. Type the user name and password you provided when you installed the application server and click OK.
      5. Right-click the admin server just created and choose Create a Server Instance.
      6. Type the host and port (80) of the application server and click OK.
  3. Verify that the Sun ONE Application Server 7 is the default server.
    1. In the Runtime pane of the Explorer, expand the nodes Server RegistryRight ArrowDefault Servers.
    2. Verify that beneath Default Servers there is a node for Web Tier Applications: server1(host:port). If this node is not displayed:
      1. Right-click Web Tier Applications and choose Set Default Server.
      2. Select the server instance you created in step 2. and click OK.
  4. In the IDE, mount the filesystem
    <INSTALL>/j2eetutorial/examples/web/hello1.
  5. Expand the hello1 node.
  6. Right-click the WEB-INF directory and choose Deploy.
Divider
FAQ
History
PreviousHomeNext Search
Feedback
Divider

All of the material in The J2EE Tutorial for the Sun ONE Platform is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.