⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webapp3.html

📁 j2eePDF格式的电子书
💻 HTML
📖 第 1 页 / 共 2 页
字号:
A command line tool that generates stubs, ties, serializers, and WSDL files used in JAX-RPC clients and services.</div></td></tr>  <tr align="left">    <td><a name="wp213791"> </a><div class="pCellBody"><code class="cCode">wsdeploy</code></div></td>    <td><a name="wp213793"> </a><div class="pCellBody">A command line tool that generates implementation-specific, ready-to-deploy WAR files for Web service applications that use JAX-RPC.</div></td></tr></table></div><p class="pBody"></p><a name="wp213795"> </a><h3 class="pHeading2">Setting Up To Build and Deploy Tutorial Examples</h3><a name="wp213796"> </a><p class="pBody">You use <code class="cCode">asant</code> to build the tutorial examples and configure the application server. In order to run the <code class="cCode">asant</code> scripts, you must configure your environment and the tutorial properties files as follows:</p><div class="pSmartList1"><ul class="pSmartList1"><a name="wp213797"> </a><div class="pSmartList1"><li>Add <code class="cCode">&lt;</code><code class="cVariable">JAVA_HOME</code><code class="cCode">&gt;/bin/</code> to the front of your path.</li></div><a name="wp213798"> </a><div class="pSmartList1"><li>Add <code class="cCode">&lt;</code><code class="cVariable">J2EE_HOME</code><code class="cCode">&gt;/bin/</code> and <code class="cCode">&lt;</code><code class="cVariable">J2EE_HOME</code><code class="cCode">&gt;/share/bin/</code> to the front of your path so that J2EE 1.4 Application Server components override other installations.</li></div><a name="wp213799"> </a><div class="pSmartList1"><li>Set the <code class="cCode">j2ee.home</code> property in the file <code class="cCode">&lt;</code><code class="cVariable">INSTALL</code><code class="cCode">&gt;/j2eetutorial14/examples/common/build.properties</code> to the location of your J2EE 1.4 Application Server installation. The build process uses the <code class="cCode">j2ee.home</code> property to include the J2EE library archives in the classpath. The J2EE library archive is the file <code class="cCode">&lt;</code><code class="cVariable">J2EE_HOME</code><code class="cCode">&gt;/lib/j2ee.jar</code>. If you wish to use an IDE or the <code class="cCode">javac</code> compiler to compile J2EE applications, you must add this JAR to your classpath. </li></div></ul></div><hr><a name="wp213800"> </a><p class="pNote">Note: On Windows, you must escape any backslashes in the <code class="cCode">j2ee.home</code> property with another backslash or use forward slashes as a path separator. So, if your J2EE 1.4 Application Server installation is <code class="cCode">C:\Sun\AppServer</code>, you must set <code class="cCode">j2ee.home</code> as follows:<br /><br /><code class="cCode">j2ee.home = C:\\Sun\\AppServer <br /></code>or<br /><br /><code class="cCode">j2ee.home=C:/Sun/AppServer</code></p><hr><a name="wp213803"> </a><h3 class="pHeading2">Starting and Stopping the J2EE Application Server</h3><a name="wp213804"> </a><p class="pBody">To start and stop the J2EE application server, you use the <code class="cCode">asadmin</code> utility. To start the J2EE application server, open a terminal window or command prompt and execute:</p><div class="pPreformattedRelative"><pre class="pPreformattedRelative">asadmin start-domain --verbose domain1<a name="wp213805"> </a></pre></div><a name="wp213806"> </a><p class="pBody">A domain is a set of one or more application server instances managed by one administration server. Associated with a domain is:</p><div class="pSmartList1"><ul class="pSmartList1"><a name="wp213807"> </a><div class="pSmartList1"><li>The application server's port number. The default is 8080.</li></div><a name="wp213808"> </a><div class="pSmartList1"><li>The administration server's port number. The default is 4848.</li></div><a name="wp213809"> </a><div class="pSmartList1"><li>An administration username and password. These passwords are required when you access the administration server.</li></div></ul></div><a name="wp213810"> </a><p class="pBody">You specify these values when you install the J2EE 1.4 Application Server. The examples in this tutorial assume that you chose the default ports.</p><a name="wp213811"> </a><p class="pBody">With no arguments, the <code class="cCode">start-domain</code> command initiates the default domain, which is domain1. The <code class="cCode">--verbose</code> flag causes all logging and debugging output to appear on the terminal window or command prompt (it will also go into the server log, which is located in <code class="cCode">&lt;</code><code class="cVariable">J2EE_HOME</code><code class="cCode">&gt;/domains/domain1/logs/server.log</code>).</p><a name="wp213812"> </a><p class="pBody">Or, on Windows, you can also choose</p><a name="wp213813"> </a><p class="pBody">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Programs<span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>Sun Microsystems<span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>J2EE 1.4 SDK<span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>Start Default Domain</p><a name="wp213814"> </a><p class="pBody">After the server has completed its startup sequence, you will see the following output:</p><div class="pPreformattedRelative"><pre class="pPreformattedRelative">Domain domain1 started.<a name="wp213815"> </a></pre></div><a name="wp213816"> </a><p class="pBody">To stop the J2EE 1.4 Application Server, open a terminal window or command prompt and execute:</p><div class="pPreformattedRelative"><pre class="pPreformattedRelative">asadmin stop-domain domain1<a name="wp213817"> </a></pre></div><a name="wp213818"> </a><p class="pBody">Or, on Windows, choose</p><a name="wp213819"> </a><p class="pBody">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Programs<span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>Sun Microsystems<span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>J2EE 1.4 SDK<span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>Stop Default Domain</p><a name="wp213820"> </a><p class="pBody">When the server has stopped you will see the following output:</p><div class="pPreformattedRelative"><pre class="pPreformattedRelative">Domain domain1 stopped.<a name="wp213821"> </a></pre></div><a name="wp213824"> </a><h3 class="pHeading2">Starting the Admin Console</h3><a name="wp213825"> </a><p class="pBody">The Admin Console utility is a web-based GUI tool used to administer the J2EE 1.4 Application Server and manage users, resources, and J2EE applications. The application server must be running before invoking the Admin Console.</p><a name="wp213826"> </a><p class="pBody">To start the Admin Console, open a browser at the following URL:</p><div class="pPreformattedRelative"><pre class="pPreformattedRelative">http://localhost:4848/asadmin/<a name="wp213827"> </a></pre></div><a name="wp213828"> </a><p class="pBody">On Windows, from the Start menu, choose</p><a name="wp213829"> </a><p class="pBody">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Programs<span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>Sun Microsystems<span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>J2EE 1.4 SDK<span style="font-family: Symbol"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span>Admin Console</p><a name="wp213832"> </a><h3 class="pHeading2">Starting the deploytool Utility</h3><a name="wp213834"> </a><p class="pBody">The <code class="cCode">deploytool</code> utility is a standalone GUI tool used to package J2EE applications, specify deployment descriptor elements, and deploy applications on the J2EE 1.4 Application Server. To start <code class="cCode">deploytool</code>, open a terminal window or command prompt and execute:</p><div class="pPreformattedRelative"><pre class="pPreformattedRelative">deploytool<a name="wp213835"> </a></pre></div><a name="wp213836"> </a><p class="pBody">On Windows, from the Start menu, choose</p><a name="wp213837"> </a><p class="pBody"><span style="font-weight: normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Programs</span><span style="font-family: Symbol; font-weight: bold"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span><span style="font-weight: normal">Sun Microsystems</span><span style="font-family: Symbol; font-weight: bold"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span><span style="font-weight: normal">J2EE 1.4 SDK</span><span style="font-family: Symbol; font-weight: bold"><img src="images/arrwrite.gif" border="0" alt="Right Arrow"></span><span style="font-weight: normal">Deploytool</span></p>    </blockquote>   <img src="images/blueline.gif" width="550" height="8" ALIGN="BOTTOM" NATURALSIZEFLAG="3" ALT="Divider">    <table width="550" summary="layout" id="SummaryNotReq1">      <tr>	<td align="left" valign="center">	<font size="-1">	<a href="http://java.sun.com/j2ee/1.4/download.html#tutorial" target="_blank">Download</a>	<br>	<a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/faq.html" target="_blank">FAQ</a>	<br>	<a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/history.html" target="_blank">History</a>	</td>        <td align="center" valign="center"><a accesskey="p" href="WebApp2.html"><img id="LongDescNotReq1" src="images/PrevArrow.gif" width="26" height="26" border="0" alt="Prev" /></a><a accesskey="c" href="J2EETutorialFront.html"><img id="LongDescNotReq1" src="images/UpArrow.gif" width="26" height="26" border="0" alt="Home" /></a><a accesskey="n" href="WebApp4.html"><img id="LongDescNotReq3" src="images/NextArrow.gif" width="26" height="26" border="0" alt="Next" /></a><a accesskey="i" href="J2EETutorialIX.html"></a>        </td>	<td align="right" valign="center">	<font size="-1">	<a href="http://java.sun.com/j2ee/1.4/docs/api/index.html" target="_blank">API</a>	<br>	<a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/search.html" target="_blank">Search</a>	<br>	<a href="http://java.sun.com/j2ee/1.4/docs/tutorial/information/sendusmail.html" target="_blank">Feedback</a></font>	</font>	</td>      </tr>    </table>    <img src="images/blueline.gif" width="550" height="8" ALIGN="BOTTOM" NATURALSIZEFLAG="3" ALT="Divider"><p><font size="-1">All of the material in <em>The J2EE(TM) 1.4 Tutorial</em> is <a href="J2EETutorialFront2.html">copyright</a>-protected and may not be published in other workswithout express written permission from Sun Microsystems.</font>  </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -