This section describes a method that will be especially useful for testing small changes in JSP files without having to go through a cumbersome reload process. If you make changes to a Java Server Page (JSP) packaged in an already-deployed application archive in Eclipse, the changes will result in a redeployment of the whole package.
Starting from v2. This example will demonstrates configuring the plancreator plugin for tomcat:2, there is a new option No re-deployment when only JSP files are updated for server configuration in GEP. Thus, GEP will not redeploy the whole package when only .JSP
files are changed. This option will only be available when Geronimo server is stopped.
To enable the feature for GEP, follow these steps:
- Stop Geronimo server if it is running;
- On the Servers view, double click the server to be configured. And select No re-deployment when only JSP files are updated on the result panel; A message window will pop up with instructions.
- Edit
<GERONIMO_HOME>/var/catalina/conf/web.xml
file and set the development attribute for JSP pages to true
. Code Block |
---|
| xml |
---|
| xml |
---|
title | excerpt from web.xml |
---|
|
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org |
Modify <geronimo-directory>\var\catalina\conf\web.xml: Set the development parameter to true in the init-param to orgJspServlet - Edit (add if doesn't exist) the modificationTestInterval to 0
- In the webapp that you intend to modify, find the web.xml and remove the servlet-name and servlet-mapping of the jsp you intend to modify and test.
For example, for PlanCreator, edit the plancreator-console-tomcat-2.2-SNAPSHOT.car\WEB-INF\web.xml. - Restart the server with these settings in place.
...
JspServlet</servlet-class>
<init-param>
<param-name>development</param-name>
<param-value>true</param-value>
</init-param>
...
</servlet>
|
- After all is done, restart the server in Eclipse.