Building, Packaging, Deploying, and Running the firstcup Enterprise Application
In this section, you will build the DukesBirthdayBean and the firstcup web client, package them into an EAR file, deploy the EAR file to the server, and run the application.
Preparing the Deployment Descriptor
In this task, you will remove some extra parameters from the deployment descriptor of the firstcup-war module. NetBeans generates these parameters, but we don't need them in our example.
Expand the firstcup-war module in the Projects pane.
Expand the Configuration Files directory.
Double-click web.xml.
Click General at the top of the editor window.
Select the plus sign next to Context Parameters.
From the table of context parameters, select the first context parameter in the table and click Remove.
Repeat step 6 until all context parameters are removed.
Click XML at the top of the editor window.
Remove the entire welcome-file-list element and all its contents.
Save the file by selecting File->Save from the menu bar.
Building and Packaging the firstcup Enterprise
Application
While performing this task, you'll build and package the DukesBirthdayBean enterprise bean and the firstcup web client into an EAR file, firstcup.ear, in the dist directory.
Select firstcup in the Projects tab.
Right-click firstcup and select Build Project.
Deploying the firstcup Enterprise
Application
While performing the previous task, you packaged the DukesBirthdayBean enterprise bean and firstcup web client into the firstcup.ear file. Now you'll deploy them to the Application Server.
Select firstcup in the Projects tab.
Right-click firstcup and select Deploy Project.
Running the firstcup Application
This section describes how to run the firstcup application.
Launch an internet browser.
Enter the following URL in the address field of the browser:
http://localhost:8080/firstcup
Enter your birth date in the Your birthday text field. Make sure you use the date pattern specified on the page: MM/dd/yyyy.
Click Submit.
After the response.jsp page is launched, click Back to return to the greeting.jsp page.

Previous