I think you can delete generated java classes from /var directory (as its similar to working directory as i know) and if you want to be more cautious then delete only one file and try to access that resource not via dispatcher but directly from App server. Even though as standard you need not require to do all these because these all have to be taken care by engine ifself when any modification happens to resouce the engine recompile it by cross checking the status of last compiled class.
Individual resource you can access via REST resource call over HTTP as far as that resource has defined sling:resourceType, for example - http://<host>:<port>/content/geometrixx/en/jcr:content/lead.html
Please let me know if you need more information.
Yeah, you usually don't require to do so. The problem comes when you install over an older version and overwrite the jsp files. The system does not recognize some of those files as "modified", and they will run with the old jsp compiled version.
Anyways, thank you for your response.
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 Libraryorg.apache.sling.scripting.jsp.taglib
- Apache Sling Scripting Core implementationorg.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 JSP Supportorg.apache.sling.scripting.jsp
- Apache Sling Scripting JST Supportorg.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.
Hope this is helpful.
Wow, that's exactly what I needed. Great to know witch are the key bundles to restart. Thank you.