blob: 51eee5a5169086acfdbd585944ce97d2aa298158 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../../../../../wtp.xsl"?>
<html>
<head>
<meta name="root" content="../../../../../.." />
<title>test plan: wtp project explorer.</title>
</head>
<body>
<h1>wst common</h1>
<h2>Exporting modules</h2>
<p>Modules that are created in WTP may be exported in various ways. The
following instructions focus on exporting modules as deployable artifacts.
First, you must have previously imported or created a module. (For instance,
a Dynamic Web Module).
</p>
<br/>
<h2>Exporting a web modules</h2>
<table cellspacing="10" cellpadding="10">
<tr>
<td>
<p><img src="./images/export_war_right_click_menu.jpg"/></p>
</td>
</tr>
<tr>
<td>
<p><i>Figure 1.1: Right click on the Web module you intend to Export and select &quot;Export &gt; WAR File&quot;.</i> </p>
</td>
</tr>
<tr>
<td>
<p><img src="./images/export_war_wizard.jpg"/></p>
</td>
</tr>
<tr>
<td>
<p><i>Figure 1.2: Enter a destination for your *.war file and click "Finish". </i></p>
</td>
</tr>
<tr>
<td >
<p><i>Figure 1: Right click on an existing project to export a *.war module. The Wizard will already have the Web Module you
intend to export pre-selected. You may change the Web Module you would like to export in the
&quot;Web project:&quot; drop down . </i></p>
</td>
</tr>
</table>
<p>Initially, the export wizard should have the project that contains the Web Module
you selected. Enter a destination for the export (e.g. C:\temp\mywar.war). When you
are done, click Finish. The wizard will handle the details of constructing the Web
Module per the J2EE specification. Optionally, you can choose to export the source files.
Exporting source files can be useful when you intend to use the war for collaboration
or like to keep a record of what is contained in the *.war file. You may verify the contents
of the *.war file using your favorite Zip File client. </p>
<p>Each of the types of modules has their own specific Export wizard. Try exporting
another type of module. For instance, you may export the *.ear file that contains the Web
Module you just exported by selecting the EAR Module, right-click, and then select
"Export > EAR File". The wizard is largely similar to the Web Module Export wizard.
It will construct a *.ear file that contains all of the other modules.</p>
<p>The artifacts produced from the export wizards are ready to deploy onto your
favorite Web Container or J2EE Application Server. Some containers like Tomcat require
only the *.war file to deploy, while other full-service J2EE Application Servers like
Websphere Application Server require a *.ear file.
</p>
<p>Return to <A HREF="px_overview.html">overview</A>.</p>
</body>
</html>