I have AEM 6.1 SP2 CFP11 running on the linux server and we get the below error after the package deployment mostly and it seems to be intermittent sometimes on author and sometimes on author.
Error on the page:
Unresolved compilation problems: Only a type can be imported. com.x.y.ClassName resolves to a package.
We do have the OSGi bundle active and running without any dependency errors.
Below is the error trace:
org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
org.apache.sling.scripting.jsp.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 47 in the generated java file
Only a type can be imported. com.x.y.z.ClassName resolves to a package
An error occurred at line: 48 in the generated java file
Only a type can be imported. com.x.y.z.AnotherClassName resolves to a package
Troubleshooting steps: (doesnt seem to work all the times)
Restarting the bundle
Reinstalling the bundle
sling jsp recompile
Restarting AEM instance
Any help regarding this would be much appreciated.
Thanks in Advance,
I could see my bundle under the /system/console/bundles
Also "always" this bundle is not getting installed when i do it via the package manager(although the same package is working on other environment) and i had to do it manually in the web console for author and for publisher only the error pops up intermittently and it wont go whatever we do and it resolves on its own or after the jsp recompilation.
Am trying to find the root cause and what are the standard steps to resolve it.