Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Search for <servlet-class>org.apache.jasper.servlet.JspServlet </servlet-class> and add the following elements under the servlet class

Code Block
borderStylesolid
titleAdd the XML snippet to web.xml
borderStylesolid
<init-param>
<param-name>development</param-name>
<param-value>true</param-value>
</init-param>

<init-param>
<param-name>modificationTestInterval</param-name>
<param-value>10</param-value>
</init-param>

...

Using this you can retain the compiled JSPs of all Web applications running in the server across server restarts. Edit <geronimo_home>/var/catalina/conf/web.xml. Search for org.apache.jasper.servlet.JspServlet and add the following elements

solid
Code Block
borderStyle
titleAdd the XML snippet to web.xml
borderStylesolid
<init-param>
<param-name>scratchdir</param-name>
<param-value>
   ../var/catalina/temp
</param-value>
</init-param>
<init-param>
<param-name>keepgenerated</param-name>
<param-value>false</param-value>
</init-param>

...

Configure the web deployment descriptor web.xml in application as follows

solid
Code Block
borderStyle
titleAdd the XML snippet to web.xml
borderStylesolid
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>
  org.apache.jasper.servlet.JspServlet
</servlet-class>
<init-param>
  <param-name>development</param-name>
  <param-value>false</param-value>
</init-param>
<init-param>
  <param-name>fork</param-name>
  <param-value>false</param-value>
</init-param>
<init-param>
  <param-name>scratchdir</param-name>
  <param-value>
   ../var/catalina/temp
  </param-value>
</init-param>
<init-param>
  <param-name>keepgenerated</param-name>
  <param-value>false</param-value>
</init-param>
<init-param>
  <param-name>xpoweredBy</param-name>
   <param-value>false</param-value>
</init-param>
<init-param>
   <param-name>engineOptionsClass</param-name>
   <param-value>
      org.apache.geronimo.jasper.JspServletOptions
   </param-value>  
</init-param>
  <load-on-startup>3</load-on-startup>
</servlet>
<servlet-mapping>
  <servlet-name>jsp</servlet-name>
  <url-pattern>*.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
  <servlet-name>jsp</servlet-name>
  <url-pattern>*.jspx</url-pattern>
</servlet-mapping>

...