Where does CQ store compiled JSP page sources (e.g. with .java extension)? | Community
Skip to main content
LinearGradient
October 16, 2015
Solved

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

  • October 16, 2015
  • 7 replies
  • 6740 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

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

7 replies

Sham_HC
Sham_HCAccepted solution
October 16, 2015

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

January 17, 2016

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

Kunal_Gaba_
January 18, 2016

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/

kautuk_sahni
Community Manager
Community Manager
January 18, 2016

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
Adobe Employee
January 18, 2016

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-manager.topic.html/forum__yiaq-we_were_usingaem6.html

Regards,

Opkar

joseph_abraham0
January 19, 2016

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

dan_klco
February 22, 2018

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/