Enable automatic JSP reloading

To view changes to theme and skins JSPs without restarting the portal server, you can force the application server to automatically check for new versions of JSPs. While this is ideal for development and testing purposes, automatic JSP reloading should be disabled in a production environment because of performance issues.

Follow these steps to enable automatic JSP reloading:

  1. Open the /WEB-INF/ibm-web-ext.xmi file in the Web Archive (WAR) file for theme.

  2. Find the following entry in this file:

      <webappext:WebAppExtension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" 
                xmlns:webappext="webappext.xmi" xmlns:webapplication="webapplication.xmi" 
                xmlns:commonext="commonext.xmi" xmlns:common="common.xmi" 
                xmi:id="IBM_WPS_Ext" reloadInterval="3" reloadingEnabled="false" 
                fileServingEnabled="true" directoryBrowsingEnabled="false" 
                serveServletsByClassnameEnabled="false" preCompileJSPs="false"> 

  3. Change the value for reloadingEnabled to true.

  4. Save the file.

  5. Repackage the WAR file for theme and redeploy the WAR in the administrative console.

  6. Restart Enterprise Application in the administrative console.

After completing these steps, JSPs are automatically reloaded when they are changed. However, to view changes to a JSP that is included by another (parent) JSP, also change the parent JSP to indicate that it must be reloaded by the server.


Parent

Customize the portal
Portal style classes
Work with portal navigation
Use JSTL tags in the portal JSPs


Related tasks


Import a theme
Deploy the theme
Create a new skin
Add support for new clients
Add support for new markup languages
Change banner text
Use the color palette in themes
Performance guidelines for themes and skins


Change the page help

  Submitted by John De Binder on Mar 18, 2011 5:23:47 PM

Re: Enable automatic JSP reloading: wp7

Found the answer in the updated WAS ND Info Center here: http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tweb_jspengine.html Submitted by John De Binder on Mar 18, 2011 4:54:00 PM

Re: Enable automatic JSP reloading: wp7

This does not work any more. The ibm-web-ext.xmi file is now an ibm-web-xml file. Does anyone know how to do this on WAS V7?


+

Search Tips   |   Advanced Search