Problem:
CQ doen't compile JSP after we modify in CRX.
Solution:
We have experienced similiar issues when deploying code with packages. We 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 Library (org.apache.sling.scripting.jsp.taglib)
- Apache Sling Scripting Core implementation (org.apache.sling.scripting.core)
- Apache Sling Scripting Implementation API (org.apache.sling.scripting.api)
- Apache Sling Scripting Java Support (org.apache.sling.scripting.java)
- Apache Sling Scripting JavaScript Support (org.apache.sling.scripting.javascript)
- Apache Sling Scripting JSP Support (org.apache.sling.scripting.jsp)
- Apache Sling Scripting JST Support (org.apache.sling.scripting.jst)
- Restarting all 7 probably isn't neccessary, 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.
Nhận xét
Đăng nhận xét