April 7, 2020
Estimated Post Reading Time ~

Unable to recompile CQ5 JSP?

Question: Unable to recompile CQ5 JSP , how to proceed ?

Answer: JSP caching problems and other sync issues, try:

Solved the caching issue by doing the following:
1. Deleted /var/classes and /var/clientlibs
2. Restart scripting bundles in Felix
– Open up <server>/system/console – on a publish instance you’ll need to log in as admin
– Filter bundles by “scripting”. There should be 7 bundles that match the filter:
Apache Sling JSP Tag Libraryorg.apache.sling.scripting.jsp.taglib
Apache Sling Scripting Core implementation org.apache.sling.scripting.core
Apache Sling Scripting Implementation APIorg.apache.sling.scripting.api
Apache Sling Scripting Java Supportorg.apache.sling.scripting.java
Apache Sling Scripting JavaScript Supportorg.apache.sling.scripting.javascript
Apache Sling Scripting JSP Supportorg.apache.sling.scripting.jsp
Apache Sling Scripting JST Supportorg.apache.sling.scripoing.jst

– Restarting all 7 probably isn’t necessary, but it doesn’t hurt. 4, 5, 6 are the key bundles to restart.

Next time you load a page, JSP for components on the page will be recompiled and clientlibs will be rebuild


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.