blob: 0516c8cbd5ced65c6e380a8b3679903895314ca9 [file] [log] [blame]
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../../../../../default_style.css" type="text/css">
<link rel="stylesheet" href="../../../../../webtools/wtp.css" type="text/css">
<title>
test plan: Importing an EAR module containing an Web module
and running it on Jonas.
</title>
</head>
<body>
<table width="100%" cellspacing="5" cellpadding="2" border="0">
<tbody>
<tr>
<td width="60%" align="left"><font class="indextop">jst j2ee</font>
<br>
<font class="indexsub">
test plan: Importing an EAR module containing an Web module
and running it on Jonas.
</font></td><td width="40%"><img width="120" hspace="50" height="86" align="middle" src="../../../../../images/Idea.jpg"></td>
</tr>
</tbody>
</table>
<table width="100%" cellspacing="5" cellpadding="2" border="0">
<col width="16">
<col width="*">
<tbody>
<tr>
<td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">Intoduction</font></b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>
This test case walkthroughs the steps required to import,
deploy and run an ear module in the Web Tools Project.
</p>
</td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<BR>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">Steps</font></b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>
<ol>
<li>
First set up JONAS Runtime from the
Windows-&gt;Preferences-&gt;Server-&gt;Installed Runtime.
<br>
<br>
<img border="0" src="images/SettingJonas_runtime.jpg">
<br>
<br>
<i>
Figure 1: Setup the JONAS Runtime from
Windows-&gt;Preferences-&gt;Server-&gt;Installed Runtime.
</i>
</li>
<br>
<br>
<li>
Open J2EE perspective, in the Navigator, right click
and choose "Import" and then choose "EAR File"
<table cellspacing="10" cellpadding="10">
<tr>
<td>
<img src="images/howto_open_perspective_view.jpg">
</td>
<td>
<img src="images/perspective_view.jpg">
</td>
</tr>
<tr>
<td colspan="2">
<p>
<i>
Figure 2: Open the J2EE
Perspective.
</i>
</p>
</td>
</tr>
</table>
<table cellspacing="10" cellpadding="10">
<tr>
<td>
<p>
<img src="images/Ear_import_ire1.jpg">
</p>
</td>
</tr>
<tr>
<td>
<p>
<i>
Figure 3: Download the following
ear <A href="resource/TestWebProjectEAR.ear" target="_blank">TestWebProject.ear</A>. Navigate via the browse
button and select this ear from
disk. Keep the default Project
Name, select your Target
runtime, and click finish.
</i>
</p>
</td>
</tr>
</table>
</li>
<br>
<br>
<li>
Go to the project in the Project Explorer, expand
both the TestWebProjectEAR and TestWebProject are
visable. Expand these to verify all files imported
correctly.
<table cellspacing="10" cellpadding="10">
<tr>
<td>
<p>
<img src="images/project_explorer_ire3.jpg">
</p>
</td>
</tr>
<tr>
<td>
<p>
<i>Figure 7: Project explorer view</i>
</p>
</td>
</tr>
</table>
</li>
<br>
<li>
Go to the project in the Project Explorer, select
the web project, right click and select "Run As",
you will see Jonas selected, create runtime
configuration for the web project by selecting "New"
button.
<table cellspacing="10" cellpadding="10">
<tr>
<td>
<p>
<img src="images/Run_on_server_ere2.jpg">
</p>
</td>
</tr>
<tr>
<td>
<p>
<i>
Figure 8: By default, the
available module groupings are
presented to the user.
</i>
</p>
</td>
</tr>
</table>
</li>
<br>
<li>
Now Run the server from the Servers view, and view
the servlet.
</li>
</ol>
</p>
</td>
</tr>
</tbody>
</table>
</body>
</html>