| <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html lang="en-us" xml:lang="en-us"> |
| <head> |
| <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> |
| <meta name="copyright" content="Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/. Contributors: IBM Corporation - initial API and implementation" /> |
| <meta name="DC.rights.owner" content="(C) Copyright 2000, 2011" /> |
| <meta content="public" name="security" /> |
| <meta content="index,follow" name="Robots" /> |
| <meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' /> |
| <meta content="task" name="DC.Type" /> |
| <meta name="DC.Title" content="Testing on a J2EE Preview server" /> |
| <meta name="abstract" content="Use the J2EE Preview server when you want to quickly compile, test and run resources in a J2EE Web project. The J2EE Web projects you can test on a J2EE Preview server are static Web projects, dynamic Web projects and utility projects. Hereafter, the term J2EE Web project refers to any of these previously mentioned projects." /> |
| <meta name="description" content="Use the J2EE Preview server when you want to quickly compile, test and run resources in a J2EE Web project. The J2EE Web projects you can test on a J2EE Preview server are static Web projects, dynamic Web projects and utility projects. Hereafter, the term J2EE Web project refers to any of these previously mentioned projects." /> |
| <meta content="J2EE, testing on preview servers, runtime environments, J2EE Preview, servers, J2EE Preview server" name="DC.subject" /> |
| <meta content="J2EE, testing on preview servers, runtime environments, J2EE Preview, servers, J2EE Preview server" name="keywords" /> |
| <meta scheme="URI" name="DC.Relation" content="../topics/tj2ee.html" /> |
| <meta scheme="URI" name="DC.Relation" content="../topics/twcrtins.html" /> |
| <meta content="XHTML" name="DC.Format" /> |
| <meta content="tj2eepreview_wst" name="DC.Identifier" /> |
| <meta content="en-us" name="DC.Language" /> |
| <link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" /> |
| <title>Testing on a J2EE Preview server</title> |
| </head> |
| <body id="tj2eepreview_wst"><a name="tj2eepreview_wst"><!-- --></a> |
| |
| |
| <h1 class="topictitle1">Testing on a J2EE Preview server</h1> |
| |
| |
| |
| <div><p>Use the J2EE Preview server when you want to quickly |
| compile, test and run resources in a J2EE Web project. The J2EE Web projects |
| you can test on a J2EE Preview server are static Web projects, dynamic Web |
| projects and utility projects. Hereafter, the term J2EE Web project refers |
| to any of these previously mentioned projects.</p> |
| |
| <div class="section" id="tj2eepreview_wst__context"><a name="tj2eepreview_wst__context"><!-- --></a>The J2EE Preview server is an embedded application server |
| that is integrated with the workbench. It is intended for preliminary testing |
| and saves you the time to download, install, and set up an application server. |
| However, as your J2EE Web project progresses through its development cycle |
| you are encourage to test and run on an external application server. You |
| can use the J2EE Preview server as a convenient way to check for errors before |
| you do a final test on an external application server.<p>To create and test |
| on a J2EE Preview server for previewing your resources in a J2EE Web project, |
| complete the following steps:</p> |
| </div> |
| |
| <a name="tj2eepreview_wst__steps"><!-- --></a><ol id="tj2eepreview_wst__steps"> |
| <li class="stepexpand"><span>In the Servers view, right-click and select <span class="uicontrol">New</span> > <span class="uicontrol">Server</span>. |
| The Define a New Server wizard opens.</span></li> |
| |
| <li class="stepexpand"><span>Under the <span class="uicontrol">Select the server type</span> list, expand |
| the <strong>Basic</strong> folder and select <strong>J2EE Preview</strong>. Click <span class="uicontrol">Next</span>.</span> |
| </li> |
| |
| <li class="stepexpand"><span>The <span class="uicontrol">Add and Remove</span> page opens. Under the |
| Available projects list, select the J2EE Web project and click the <span class="uicontrol">Add</span> button. |
| Click <span class="uicontrol">Finish</span>. </span> The J2EE Preview server is |
| created in the Servers view.</li> |
| |
| <li class="stepexpand"><span>In the Project Explorer view, navigate to your J2EE Web project |
| and right-click your resource you want to test.</span></li> |
| |
| <li class="stepexpand"><span>Select <span class="menucascade"><span class="uicontrol">Run As</span> > <span class="uicontrol">Run |
| on Server</span></span>. The Run on Server wizard opens.</span> |
| </li> |
| |
| <li class="stepexpand"><span>Verify the <span class="uicontrol">Choose an existing server</span> radio |
| button is enabled.</span></li> |
| |
| <li class="stepexpand"><span>Under the <span class="uicontrol">Select the server that you want to use</span> list, |
| select the recently created J2EE Preview server. Click <span class="uicontrol">Next</span>.</span> |
| </li> |
| |
| <li class="stepexpand"><span>The <span class="uicontrol">Add and Remove</span> page opens. Verify the |
| J2EE Web project you are testing is listed under the <span class="uicontrol">Configured |
| projects</span>. Click <span class="uicontrol">Finish</span>.</span></li> |
| |
| </ol> |
| |
| <div class="section" id="tj2eepreview_wst__result"><a name="tj2eepreview_wst__result"><!-- --></a>The internal Web browser opens and displays the Web content.</div> |
| |
| </div> |
| |
| <div> |
| <div class="familylinks"> |
| <div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/tj2ee.html" title="You can use the workbench to test one or more projects on a server.">Testing applications on a server</a></div> |
| </div> |
| |
| <div class="familylinks"> |
| <div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/twcrtins.html" title="You can create a server to identify the runtime environment that you want to use for testing your project resources. The term creating a server defines creating a pointer from the workbench to an existing installation of an application server.">Creating a server</a></div> |
| </div> |
| </div> |
| |
| </body> |
| </html> |