How to Validate JSP Compilation after Package Installation | Community
Skip to main content
New Participant
February 8, 2016
Solved

How to Validate JSP Compilation after Package Installation

  • February 8, 2016
  • 6 replies
  • 1322 views

Other than manually running all of the templates/pages/components etc.. is there any built in mechanism within CQ 5.5 or AEM 6.1 to verify that all the code was properly compiled after a package has been installed?

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 smacdonald2008

Here is a KB that may help:

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

There is no other tool out of the box to help in this use case. Hope this helps. 

6 replies

Kunal_Gaba_
New Participant
February 8, 2016

smacdonald2008 wrote...

Here is a KB that may help:

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

There is no other tool out of the box to help in this use case. Hope this helps. 

 

This won't work for AEM 6.1 as compiled JSPs classes are no more stored in /var/classes. They are instead stored on the file system on which AEM runs. 

New Participant
February 8, 2016

Thanks this should provide enough information to satisfy Management.

smacdonald2008
smacdonald2008Accepted solution
New Participant
February 8, 2016

Here is a KB that may help:

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

There is no other tool out of the box to help in this use case. Hope this helps. 

New Participant
February 8, 2016

smacdonald2008 wrote...

It is assumed before you install a package on production - you test it in your locale Dev environment and make sure all the script is working and there is no compile errors.  Then after you deploy on production - you test again. 

CQ does not have a way to automatically test whether code compiles after you install the package. 

 

Yes, the code is always tested internally what I'm referring to are instances where we install a package on multiple Publish servers and for 1 of the servers JSP #### doesn't properly compile, and we have to manually delete it under /var/classes/.... and restart the JSP bundles to regenerate the file.

I'm not talking about code not properly compiling.

smacdonald2008
New Participant
February 8, 2016

It is assumed before you install a package on production - you test it in your locale Dev environment and make sure all the script is working and there is no compile errors.  Then after you deploy on production - you test again. 

CQ does not have a way to automatically test whether code compiles after you install the package. 

edubey
New Participant
February 8, 2016

AFAIK, there is not OOTB way.

But at least you can ensure by checking the status of bundle, once installed to ensure it met all its dependencies and in running state.