1.1 --- a/visualweb.ravehelp.rave_nbpack/javahelp/org/netbeans/modules/visualweb/ravehelp/rave_nbpack/docs/web/deploy/about_deploy.html Tue Apr 14 19:20:13 2009 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,107 +0,0 @@
1.4 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1.5 -<!--
1.6 - * Copyright � 2008 Sun Microsystems, Inc. All rights reserved.
1.7 - * Use is subject to license terms.
1.8 -> -->
1.9 -<html>
1.10 -<head>
1.11 -<meta http-equiv="content-type" content="text/html; charset=UTF-8">
1.12 -<title>About Deploying Web Applications</title>
1.13 -<link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
1.14 -</head>
1.15 -<body>
1.16 -
1.17 -<h2>About Deploying Web Applications</h2>
1.18 -<p><small>
1.19 -<a href="#seealso">See Also</a>
1.20 -</small></p>
1.21 -
1.22 -<p>The IDE uses an Ant script to run your web applications. If you are using
1.23 - a <object classid="java:com.sun.java.help.impl.JHSecondaryViewer">
1.24 - <param name="content" value="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/project/csh/glossary_standard.html">
1.25 - <param name="viewerActivator" value="javax.help.LinkLabel">
1.26 - <param name="viewerStyle" value="javax.help.Popup">
1.27 - <param name="viewerSize" value="400,220">
1.28 - <param name="text" value="standard project">
1.29 - <param name="textFontSize" value="medium">
1.30 - <param name="textFontFamily" value="SansSerif">
1.31 - <param name="textFontStyle" value="italic">
1.32 - <param name="textFontWeight" value="bold">
1.33 - <param name="textColor" value="blue">
1.34 - </object>
1.35 - , the IDE generates the build script based on the options you enter
1.36 - in the project's Project Properties dialog box. You can set the project's classpath,
1.37 - context path, and web server in the Project
1.38 - Properties dialog box. You can further customize program execution by editing
1.39 - the Ant script and Ant properties for the project.</p>
1.40 -<p>If you are using a <object classid="java:com.sun.java.help.impl.JHSecondaryViewer">
1.41 - <param name="content" value="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/project/csh/glossary_freeform.html">
1.42 - <param name="viewerActivator" value="javax.help.LinkLabel">
1.43 - <param name="viewerStyle" value="javax.help.Popup">
1.44 - <param name="viewerSize" value="400,160">
1.45 - <param name="text" value="free-form project">
1.46 - <param name="textFontSize" value="medium">
1.47 - <param name="textFontFamily" value="SansSerif">
1.48 - <param name="textFontStyle" value="italic">
1.49 - <param name="textFontWeight" value="bold">
1.50 - <param name="textColor" value="blue">
1.51 - </object>, the IDE uses your existing Ant script to run your project. You can
1.52 - write a target that executes the currently selected project in the IDE and map
1.53 - it to the Deploy command. </p>
1.54 -<p>You can execute your web application from the IDE using
1.55 - one of the supported servers that implement a J2EE web container. The
1.56 - process for running a web application is slightly different depending on which
1.57 - server you use. For more information about specifying the server on which to run
1.58 - the web application, see <a href="deploy_changeserver.html">Changing the Target Server</a>.
1.59 - Some servers do not support web applications in WAR format. In such cases, it might
1.60 - be necessary to extract the WAR file within the server before deploying. For
1.61 - details on whether the server you intend to use supports JSP files and WAR files,
1.62 - see the documentation accompanying your server. </p>
1.63 -<p>To execute a web application, the web server requires a configuration file. When
1.64 - you create a web application from the IDE, the IDE creates the necessary server configuration
1.65 - for you. </p>
1.66 - <p>All the resources that the web application uses must be in the server's classpath
1.67 - and their placement must follow the WAR structure:</p>
1.68 -<ul>
1.69 - <li>Public JSP files and static files, such as HTML files and images, must be
1.70 - in the document base (root folder) or one of its subfolders. JSP files that
1.71 - are under the <tt>WEB-INF</tt> folder can only be accessed by another JSP
1.72 - or by a servlet.</li>
1.73 - <li>Tag library descriptor (<tt>TLD</tt>) files must be in the <tt>WEB-INF</tt>
1.74 - folder or a subfolder, such as <tt>WEB-INF/tlds</tt> or <tt>WEB-INF/tags</tt>.
1.75 - If a tag library JAR file contains the TLD, you are not required to have a
1.76 - TLD under the <tt>WEB-INF</tt> folder. Note that tag library descriptors
1.77 - are not required for tag files. </li>
1.78 - <li>The classes must be in a <tt>Source Packages</tt> subfolder.</li>
1.79 - <li>JAR files must be in the <tt>WEB-INF/lib</tt> folder or in the web server's
1.80 - shared library folder. For information about using shared libraries when
1.81 - deploying to other servers, see the documentation accompanying that server.
1.82 - Note that Tomcat does not support .zip files in the <tt>WEB-INF/lib</tt> folder.</li>
1.83 - <li>Tag files must be the <tt>WEB-INF/tags</tt> folder or one of its subfolders.</li>
1.84 -</ul>
1.85 -<p><b>Troubleshooting</b></p>
1.86 -<p>If you get "file not found" errors when you execute a web application, see <a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/webbrowser/bypassproxy.html">Accessing
1.87 - Local files Through a Proxy</a> for possible solutions.</p>
1.88 -<p>If the browser does not reflect changes in a JSP file or HTML file, this
1.89 - might be because of the way the browser is caching pages. Check the browser's
1.90 - settings to ensure that the browser is reloading the page every time you access
1.91 - it. </p>
1.92 -
1.93 -<dl>
1.94 -<dt><a name="seealso">See Also</a></dt>
1.95 -<dd><a href="deploy_quickref.html">Deploying Tasks: Quick Reference</a></dd>
1.96 -<dd><a href="../create/jsp/jsp_queryparams.html">Passing Request Parameters</a></dd>
1.97 -<dd><a href="deploy_webapp.html">Deploying a Web Application</a></dd>
1.98 -<dd><a href="../create/jsp/jsp_run.html">Running a JSP File</a></dd>
1.99 -<dd><a href="../create/servlet/servlet_run.html">Running a Servlet</a></dd>
1.100 -<dd><a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/webbrowser/default.html">Changing the Default Web Browser</a></dd>
1.101 -<dd><a href="deploy_changeserver.html">Changing the Target Server</a></dd>
1.102 -</dl>
1.103 -<hr>
1.104 -<small> <a href="../../credits.html">Legal Notices</a></small>
1.105 -<table cellpadding="50" border="0">
1.106 -<tr><td> </td></tr>
1.107 - </table>
1.108 -</body>
1.109 -
1.110 -</html>
2.1 --- a/visualweb.ravehelp.rave_nbpack/javahelp/org/netbeans/modules/visualweb/ravehelp/rave_nbpack/docs/web/deploy/deploy_changeserver.html Tue Apr 14 19:20:13 2009 +0200
2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2.3 @@ -1,47 +0,0 @@
2.4 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2.5 -<!--
2.6 - * Copyright © 2008 Sun Microsystems, Inc. All rights reserved.
2.7 - * Use is subject to license terms.
2.8 --->
2.9 -<html>
2.10 -<head>
2.11 -<meta http-equiv="content-type" content="text/html; charset=UTF-8">
2.12 -
2.13 -<title>Changing the Target Server</title>
2.14 -<link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
2.15 -</head>
2.16 -<body>
2.17 -
2.18 -<h2>Changing the Target Server</h2>
2.19 -<p><small>
2.20 -<a href="#seealso">See Also</a>
2.21 -</small></p>
2.22 -<p>Each project has a target server. The target server is the server that is used when the project is run.
2.23 - You can set the target server to any server which has been
2.24 -<a href="nbdocs://org.netbeans.modules.j2ee.platform/org/netbeans/modules/j2ee/platform/docs/server/server_register.html">registered</a> in the IDE.</p>
2.25 -<p><b>To change the target server:</b></p>
2.26 -
2.27 -<ol>
2.28 - <li>Right-click the project node in the Projects window and choose Properties.</li>
2.29 - <li>Select Run in the Project Properties dialog box.</li>
2.30 - <li>Select the new target server from the Server drop-down menu
2.31 - and click OK.</li>
2.32 -</ol>
2.33 -
2.34 -<dl>
2.35 -<dt><a name="seealso">See Also</a></dt>
2.36 -<dd><a href="about_deploy.html">About Deploying Web Applications</a></dd>
2.37 -<dd><a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/webbrowser/default.html">Changing the Default Web Browser</a></dd>
2.38 -<dd><a href="../create/jsp/jsp_queryparams.html">Passing Request Parameters</a></dd>
2.39 -</dl>
2.40 -
2.41 -<hr>
2.42 -<small><a href="../../credits.html">Legal Notices</a></small>
2.43 -<table cellpadding="20" border="0">
2.44 -<tr><td> </td></tr>
2.45 -<tr><td> </td></tr>
2.46 -<tr><td> </td></tr>
2.47 -</table>
2.48 -
2.49 -</body>
2.50 -</html>
3.1 --- a/visualweb.ravehelp.rave_nbpack/javahelp/org/netbeans/modules/visualweb/ravehelp/rave_nbpack/docs/web/deploy/deploy_quickref.html Tue Apr 14 19:20:13 2009 +0200
3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
3.3 @@ -1,143 +0,0 @@
3.4 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3.5 -<!--
3.6 - * Copyright � 2008 Sun Microsystems, Inc.
3.7 - * All rights reserved.
3.8 - * Use is subject to license terms.
3.9 --->
3.10 -<html>
3.11 -<head>
3.12 -<meta http-equiv="content-type" content="text/html; charset=UTF-8">
3.13 -
3.14 -<title>Web Application Deployment Tasks: Quick Reference</title>
3.15 -
3.16 -<link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
3.17 -</head>
3.18 -
3.19 -<body>
3.20 -<h2>Web Application Deployment Tasks: Quick Reference</h2>
3.21 -<p>This topic describes common tasks related to running web applications.
3.22 -You define most of the settings below when you create a web application or
3.23 - a web component. Use the tasks below to customize your settings. For more
3.24 - detailed information, click the links in the right column.</p>
3.25 -<table border="1" cellpadding="5" cellspacing="0" summary="The left column lists the
3.26 - task name. The right column lists the steps to perform.">
3.27 - <tr valign="top">
3.28 - <th scope="col" align="left">To perform this task</th>
3.29 - <th scope="col" align="left">Follow these steps</th>
3.30 - </tr>
3.31 - <tr valign="top">
3.32 - <td>Set request parameters for JSP files.</td>
3.33 - <td>
3.34 - <ol>
3.35 - <li>Right-click the JSP file in the Projects or Files window and choose Properties.</li>
3.36 - <li>In the Request Parameters property, type the parameters
3.37 - in the
3.38 - <object classid="java:com.sun.java.help.impl.JHSecondaryViewer">
3.39 - <param name="content" value="../glossary/URL_query_string.html">
3.40 - <param name="viewerActivator" value="javax.help.LinkLabel">
3.41 - <param name="viewerStyle" value="javax.help.Popup">
3.42 - <param name="viewerSize" value="400,160">
3.43 - <param name="text" value="URL query string">
3.44 - <param name="textFontFamily" value="SansSerif">
3.45 - <param name="textFontSize" value="medium">
3.46 - <param name="textFontWeight" value="bold">
3.47 - <param name="textFontStyle" value="italic">
3.48 - <param name="textColor" value="blue">
3.49 -</object> format.</li>
3.50 - <li>Click OK.</li>
3.51 - </ol>
3.52 - </td>
3.53 - </tr>
3.54 - <tr valign="top">
3.55 - <td>Set execution URIs and parameters for servlets and web services.</td>
3.56 - <td>
3.57 - <p>You can only set a request URI for a servlet or web service
3.58 - if it is registered (i.e., if it has servlet mappings) in the
3.59 - deployment descriptor (<tt>web.xml</tt> file). The mappings can be created
3.60 - automatically by the IDE when you create a servlet in the New File wizard.
3.61 - Otherwise, you have to create it by hand in the <tt>web.xml</tt> file.</p>
3.62 - <p>Note that
3.63 - the default URI is defined in the mappings in the <tt>web.xml</tt> file.</p>
3.64 - <ol>
3.65 - <li>Select the servlet in the Projects or Files window.</li>
3.66 - <li>Choose Tools > Set Servlet Execution URI
3.67 - in the main menu.</li>
3.68 - <li>Type the execution URI and parameters.</li>
3.69 - <li>Click OK.</li>
3.70 - </ol>
3.71 - </td>
3.72 - </tr>
3.73 -
3.74 - <tr valign="top">
3.75 - <td>Set the web server.</td>
3.76 - <td>
3.77 - <ol>
3.78 - <li>Right-click the project node in the Projects window and choose Properties.</li>
3.79 - <li>Click Run.</li>
3.80 - <li>Select the web server from the server drop-down menu.</li>
3.81 - </ol>
3.82 - </td>
3.83 - </tr>
3.84 - <tr valign="top">
3.85 - <td>Set the context path and relative URL.</td>
3.86 - <td>
3.87 - <ol>
3.88 - <li>Right-click the project node in the Projects window and choose Properties.</li>
3.89 - <li>Click Run.</li>
3.90 - <li>Type a context path and, optionally, a relative URL.</li>
3.91 - </ol>
3.92 - </td>
3.93 - </tr>
3.94 - <tr valign="top">
3.95 - <td>Run a project.</td>
3.96 - <td>
3.97 - <ul>
3.98 - <li>Choose Run > Run
3.99 - Main Project (F6) or right-click any web project in the Projects window
3.100 - and choose <a href="deploy_webapp.html">Run</a>. </li>
3.101 - </ul>
3.102 - </td>
3.103 - </tr>
3.104 - <tr valign="top">
3.105 - <td>Run a single file.</td>
3.106 - <td>
3.107 - <ol>
3.108 - <li>Select one or more files in the Projects window, Files window, or
3.109 - Source Editor.</li>
3.110 - <li>Choose Run > Run File > <a href="nbdocs://org.netbeans.modules.java.helpset/org/netbeans/modules/java/helpset/docs/run/run_file.html">Run
3.111 - File</a> from the main menu.</li>
3.112 - </ol>
3.113 - </td>
3.114 - </tr>
3.115 -
3.116 - <tr valign="top">
3.117 - <td>Undeploy and Deploy.</td>
3.118 - <td>
3.119 - <ol>
3.120 - <li>Select one or more project nodes in the Projects window.</li>
3.121 - <li>Right-click the project node and choose Undeploy and Deploy.</li>
3.122 - </ol>
3.123 - </td>
3.124 - </tr>
3.125 - <tr valign="top">
3.126 - <td>Repackage an existing WAR file for deployment on a different application
3.127 -server.</td>
3.128 - <td>
3.129 - <ol>
3.130 - <li>Create a <a href="nbdocs://org.netbeans.modules.j2ee.platform/org/netbeans/modules/j2ee/platform/docs/archiveproject/archiveproject_about.html">Packaged Archive project</a>
3.131 -based on the existing WAR file.</li>
3.132 - <li>In the new project, modify the appropriate configuration files and create
3.133 -any necessary server-specific files.</li>
3.134 - </ol>
3.135 - </td>
3.136 - </tr>
3.137 -</table>
3.138 -<hr>
3.139 -<small><a href="../../credits.html">Legal Notices</a></small>
3.140 -<table cellpadding="50" border="0">
3.141 - <tr>
3.142 - <td> </td>
3.143 - </tr>
3.144 -</table>
3.145 -</body>
3.146 -</html>
4.1 --- a/visualweb.ravehelp.rave_nbpack/javahelp/org/netbeans/modules/visualweb/ravehelp/rave_nbpack/docs/web/deploy/deploy_webapp.html Tue Apr 14 19:20:13 2009 +0200
4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
4.3 @@ -1,83 +0,0 @@
4.4 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4.5 -<!--
4.6 - * Copyright � 2008 Sun Microsystems, Inc. All rights reserved.
4.7 - * Use is subject to license terms.
4.8 -> -->
4.9 -<html>
4.10 -<head>
4.11 -<meta http-equiv="content-type" content="text/html; charset=UTF-8">
4.12 -<title>Deploying a Web Application</title>
4.13 -<link rel="stylesheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
4.14 -</head>
4.15 -<body>
4.16 -
4.17 -<h2>Deploying a Web Application</h2>
4.18 -<p><small>
4.19 -<a href="#seealso">See Also</a>
4.20 -</small></p>
4.21 -<p>When you run a web application, the IDE
4.22 -automatically builds, deploys, and executes the web application using the project's target server.
4.23 - By default, the <tt>index.jsp</tt> file is displayed as the welcome file when the application is launched. </p>
4.24 -<p><b>To deploy a web application:</b></p>
4.25 -<ol>
4.26 - <li>(Optional) <a href="../create/jsp/jsp_queryparams.html">Define parameters</a> to pass to one or more JSP files, servlets, or both.</li>
4.27 - <li>(Optional) Specify a different welcome file by right-clicking the project node in the Projects window, choosing
4.28 - Properties, clicking Run, and typing it in the Relative URL text box.
4.29 -<table cellpadding="3" cellspacing="0" border="0">
4.30 - <tr valign="top">
4.31 - <td><img src="../images/tip.gif" alt="tip"> </td>
4.32 - <td>
4.33 -The welcome file specified in the Project
4.34 - Properties dialog box overrides the welcome file set in the <tt>web.xml</tt> file. If no welcome file is defined in the Project Properties dialog box,
4.35 - the first existing welcome file defined in the <tt>web.xml</tt> file's
4.36 - <a href="../csh/graphic_editor/dd_multiview_pages_welcomeFilesNode.html">welcome-file-list</a> is displayed. If the server does not
4.37 - find a welcome file, the server's default servlet
4.38 - displays the root of the web application. You can change the behavior of the default
4.39 - servlet in the <tt>web.xml</tt> file.
4.40 - </td>
4.41 - </tr>
4.42 -</table>
4.43 -
4.44 -</li>
4.45 -<li>(Optional) Specify a different <a href="deploy_changeserver.html">target server</a> or
4.46 - <a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/webbrowser/default.html">browser</a>.</li>
4.47 - <li>In the Projects window, right-click the project's node and choose Run.</li>
4.48 -</ol>
4.49 -<ul class="note">
4.50 -<li><b>Note: </b> The IDE redeploys a Java EE application when a change is made.</li>
4.51 -</ul>
4.52 -The IDE sends the web application's URL to the server. The URL is derived from
4.53 -the server's URL, the web application's context path, and the relative URL or welcome file. The first time
4.54 -you deploy an application per session to the Tomcat Web Server, you need to
4.55 - <a href="nbdocs://org.netbeans.modules.tomcat5/org/netbeans/modules/tomcat5/docs/tomcat/tomcat_edit_tomcatuser.html">authenticate</a> yourself.
4.56 - <h3>Troubleshooting</h3>
4.57 -<p>The Output window displays error information and the HTTP monitor displays
4.58 -requests, data states, and the servlet environment.</p>
4.59 -<ul><li>If you get "file not found" errors when you execute a web application, see <a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/webbrowser/bypassproxy.html">Accessing
4.60 - Local files Through a Proxy</a> for possible solutions.</li>
4.61 -<li>If you get an error message indicating that a resource is not available,
4.62 -check to verify the following:
4.63 -<ul>
4.64 -<li>The URL is correct.</li>
4.65 -<li>The <a href="../csh/graphic_editor/dd_multiview_servlets_servletsNode.html">servlet mapping</a> in the <tt>web.xml</tt> file is correct.</li>
4.66 -<li>The application's resources are in the appropriate location.</li>
4.67 -</ul></li></ul>
4.68 -
4.69 -<dl>
4.70 -<dt><a name="seealso">See Also</a></dt>
4.71 -<dd><a href="about_deploy.html">About Deploying Web Applications</a></dd>
4.72 -<dd><a href="../create/jsp/jsp_run.html">Running a JSP File</a></dd>
4.73 -<dd><a href="../create/servlet/servlet_run.html">Running a Servlet </a></dd>
4.74 -<dd><a href="nbdocs://org.netbeans.modules.j2ee.platform/org/netbeans/modules/j2ee/platform/docs/archiveproject/archiveproject-deploying.html">Redeploying an Application to a Different Server</a></dd>
4.75 -</dl>
4.76 -
4.77 -<hr>
4.78 -<small><a href="../../credits.html">Legal Notices</a></small>
4.79 -<table cellpadding="20" border="0">
4.80 -<tr><td> </td></tr>
4.81 -<tr><td> </td></tr>
4.82 -<tr><td> </td></tr>
4.83 -</table>
4.84 -
4.85 -</body>
4.86 -</html>