[ start | index | login ]
start > Development > Java & J2EE > Websphere > Portal > Enable jsp recompile for Websphere Portal pages

Enable jsp recompile for Websphere Portal pages

Created by mpecher. Last edited by mpecher, 2 years and 316 days ago. Viewed 1,938 times. #1
[edit] [rdf]
labels
attachments

Enable jsp recompile for Websphere Portal pages:

set reloadingEnabled="true" in:
<was_root>/config/cells/<hostname>/applications/wps.ear/deployments/wps/wps.war/WEB-INF/ibm-web-ext.xmi
Note this is the where the deployed code live. On a live server this can sometimes be overridden again form wps.war, so it can be changed in
<was_root>/AppServer/installedApps/<hostname>/wps.ear/wps.war/WEB-INF/ibm-web-ext.xmi
More detailed:
Enabling automatic JSP reloading

To view changes to your 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 file was_profile_root/config/cells/cell_name/applications/wps.ear/deployments/wps/wps.war/WEB-INF/ibm-web-ext.xmi
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. Restart the portal server.

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, you must also change the parent JSP to indicate that it must be reloaded by the server.

no comments | post comment

Menu:
Java & J2EE
Development
Books

Help:
Help FAQ
Formatting


< July 2009 >
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
262728293031


Logged in Users: (0)
… and 13 Guests.



Disclaimer: Views and opinions are that of the individual author, and not that of Marand Custom Solutions. This site is an open forum for technical content, and the company accepts no liability for any content or view expressed.