Unable to compile class for JSP: An error occurred at line: 6 in the generated java file Only a type can be imported.
Problem:
On Author http://<host:port>/projects.html getting the following error after AEM 6.1 SP1 installation:
Unable to compile class for JSP: An error occurred at line: 6 in the generated java file Only a type can be imported. com.adobe.cq.experiencelog.ExperienceLogConfig resolves to a package An error occurred at line: 24 in the jsp file: /libs/cq/experiencelog/components/head/head.jsp ExperienceLogConfig cannot be resolved to a type
On Publish http://<host:port>/content/geometrixx-outdoors/en.html getting the following error after SP1 installation:
Unable to compile class for JSP: An error occurred at line: 6 in the generated java file Only a type can be imported. com.adobe.granite.contexthub.api.ContextHub resolves to a package An error occurred at line: 54 in the jsp file: /libs/granite/contexthub/components/contexthub/contexthub.jsp ContextHub cannot be resolved to a type
Pretty much similar errors. Need help fixing the problem.
Observation while debugging:
a) On both the environments Adobe Granite ContextHub Commons(com.adobe.granite.contexthub.commons) and Adobe CQ Experience Log Client Bundlecom.adobe.cq.cq-experiencelog bundles are in "installed" state.
In fact on author, Bundle information: 455 bundles in total, 418 bundles active, 8 active fragments, 29 bundles installed
and on publish Bundle information: 451 bundles in total, 415 bundles active, 8 active fragments, 28 bundles installed.
So a large number of bundles are in "installed" state.
b) In the log:
13.06.2016 06:35:38.310 *ERROR* [qtp1771211259-95655] org.apache.felix.http.jetty %bundles.pluginTitle: Cannot start (org.osgi.framework.BundleException: Unresolved constraint in bundle com.adobe.cq.cq-experiencelog [459]: Unable to resolve 459.0: missing requirement [459.0] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.cq.experiencelog)(version>=1.0.0)(!(version>=2.0.0))))
org.osgi.framework.BundleException: Unresolved constraint in bundle com.adobe.cq.cq-experiencelog [459]: Unable to resolve 459.0: missing requirement [459.0] osgi.wiring.package; (&(osgi.wiring.package=com.adobe.cq.experiencelog)(version>=1.0.0)(!(version>=2.0.0)))
Please suggest solution to fix the problem.