background image

Building helloservice Example

<< Linking Roles to Groups | Running helloservice Example >>
<< Linking Roles to Groups | Running helloservice Example >>

Building helloservice Example

Building and Deploying helloservice with Basic Authentication Using
NetBeans IDE
To build, package, and deploy the jaxws/helloservice-basicauth example using NetBeans
IDE, follow these steps, or the steps described in
"Building, Packaging, and Deploying the
Service" on page 482
.
1. If you have not already done so, set up your system for running the tutorial examples by
following the instructions in
"Building the Examples" on page 70
.
2. If you haven't already done so, set up an authorized user on the Application Server, assigned
to the group user, as described in
"Managing Users and Groups on the Application Server"
on page 781
.
3. In NetBeans IDE, select File
Open Project.
4. In the Open Project dialog, navigate to tut-install/javaeetutorial5/examples/jaxws/.
5. Select the helloservice-basicauth folder.
6. Check the Open as Main Project and Open Required Projects check boxes.
7. Click Open Project Folder.
8. In the Projects tab, right-click the helloservice-basicauth project and select Clean and
Build Project.
9. In the Projects tab, right-click the helloservice-basicauth project and select Deploy
Project.
This step builds and packages the application into helloservice-basicauth.war, located
in tut-install/javaeetutorial5/examples/jaxws/helloservice-basicauth/dist, and
deploys this war file to your Application Server instance.
Building and Deploying helloservice with Basic Authentication Using
Ant
To build, package, and deploy the jaxws/helloservice-basicauth example using the Ant
tool, follow these steps, or the steps described in
"Building, Packaging, and Deploying the
Service" on page 482
.
1. If you have not already done so, set up your system for running the tutorial examples by
following the instructions in
"Building the Examples" on page 70
.
2. If you haven't already done so, set up an authorized user on the Application Server, assigned
to the group user, as described in
"Managing Users and Groups on the Application Server"
on page 781
.
3. From a terminal window or command prompt, go to the
tut-install/javaeetutorial5/examples/jaxws/helloservice-basicauth/ directory.
4. Build, package, and deploy the JAX-WS service by entering the following at the terminal
window or command prompt in the helloservice-basicauth/ directory:
Examples: Securing Web Applications
The Java EE 5 Tutorial · September 2007
890