Expand my Community achievements bar.

SOLVED

Where does CQ store compiled JSP page sources (e.g. with .java extension)?

Avatar

Level 7

Hi,

An exception is occurring on our system and the stack trace looks like this:

Caused by: java.lang.NullPointerException at org.apache.jsp.apps.cq.gui.components.authoring.pagestatus.pagestatus_jsp._jspService(pagestatus_jsp.java:202) at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502) ... 391 more

Where does CQ store pagestatus_jsp.java? Is there a way to view it?

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

/var/classes/<dynamic_id>/org/apache/jsp

View solution in original post

7 Replies

Avatar

Correct answer by
Level 10

/var/classes/<dynamic_id>/org/apache/jsp

Avatar

Level 2

Does this hold good in 6.1 as well ? coz I am not seeing it anymore. The classes folder is completely empty. 

Avatar

Employee Advisor

The class loader in 6.1 for JSP files was changed to FSClassLoader bundle. The compiled JSP files are now stored in the filesystem and not in the CRX repository. Check this link - http://labs.6dglobal.com/blog/2015-06-23/new-apache-sling-fs-classloader-console/

Avatar

Administrator

Hi 

Adding more information for community members:-

As mentioned by Sham, AEM stores compiled JSP at /var/classes/<dynamic_id>/org/apache/jsp.

So, when you install a AEM package containing a new version of our /apps code (with .jsp or .java files contained), not all of the JSP code is recompiled after installing the package. So solution to this problem is :-

Link:- https://helpx.adobe.com/experience-manager/kb/CQ5JSPsNotRecompilingOnPackageInstallation.html

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Employee

It does not hold true for 6.1, as well as the link provided by Kunal you can use the method in this thread to get to the location of generated files: http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

Regards,

Opkar

Avatar

Level 1

Thanks Kunal and Opkar .. Think we can treat this as answered.

Avatar

Level 5

FYI since labs.6dglobal.com is down, here's the same article about the Apache Sling FSClassLoader Console on my personal blog: https://www.danklco.com/posts/2015/06/23/new-apache-sling-fs-classloader-console/