DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

Clear JSP Cache WebSphere Application Server

September 5, 2020 DbAppWeb Admin

Problem

I have some web applications running on WebSphere Application Server 8.5 ND. Sometimes after deployments, I faced the issue that changes made by developers in JSPs are not reflected. And this problem is happening only in the cases where a JSP is included in another JSP. For example, if a JSP named header.jsp included in the home.jsp and developers made some changes in the header.jsp file, after deploying the header.jsp on the server changes are not reflecting in the home.jsp.

<%@ include file="/jsp/header.jsp" %>

Reason

As home.jsp has static include <%@ include file=”/jsp/header.jsp” %>, if we made any change in the file header.jsp then WebSphere Application Server 8.5 ND would not be aware that home.jsp has been changed and this will not be recompiled by the server. If home.jsp will not be compiled then the server will use the old compiled class and change will not be reflected.

Solution

We have to do the following to resolve the above problem either we delete the existing class file corresponding to home.jsp or compile home.jsp to update the existing class file. We can follow any process from these:

  • Make any change in the file home.jsp like, insert any blank space or new line to update the timestamp of the file. It will force the WebSphere Application Server to recompile the home.jsp.
  • Clear the WebSphere Application Server java server pages compiled cache. It will force the Websphere Application Server to re-compile all java server pages when they will be accessed.
    • The cache folder location is <profile-root>/tmp. 
    • Class file of java server page home.jsp is available at <cell-root>/AppServer/profiles/<profile-name>/temp/<node-name>/<server-name>/<application-name>/<warfile-name>/jsp/_home.class
  • Set the custom property com.ibm.websphere.deletejspclasses to true in WebSphere Application Server. After setting this value to true, if JSP has the static include %@ include file="xxx" %, when the included child JSP has an update, then the old class file will be deleted and recompiled.

Reference: https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/xrun_jvm.html#deletejspclasses

Last Updated: September 05, 2020

Related Posts:

  • How to Verify the List of SSL /TLS Ciphers Used by WebSphere Application Server (WAS) SSL/TLS Config
  • WebSphere Application Server DMGR console is not accessible
  • Install WebSphere Application Server V8.5.5 Fix Pack 12 on HP-UX 11.31
  • How to find JAVA version used by WebSphere Application Server (WAS)
  • How to find version of an installed IBM WebSphere Application Server
  • EAR restarting while updating a .jsp file through DMGR console
  • How to Check JAVA SDK installed on WAS 8.5.5.x and running JAVA SDK?

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
Prev Article
Tags:IBM WebSphere Application Server WAS Websphere Application Server (WAS)

Leave a Reply Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com