Only a type can be imported. com.day.cq.wcm.api.AuthoringUIMode resolves to a package | Community
Skip to main content
dimple_gawri
Level 2
October 16, 2015
Solved

Only a type can be imported. com.day.cq.wcm.api.AuthoringUIMode resolves to a package

  • October 16, 2015
  • 4 replies
  • 2732 views

Hi All,

I have included the following line of code in the jsp file,

<cq:include path="clientcontext" resourceType="cq/personalization/components/clientcontext"/>

After including the above line, I start getting the following error. Please help me in resolving this error:

 

Error during include of component '/apps/cq/personalization/components/clientcontext'

Error Message:

org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.jsp.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 6 in the generated java file

Only a type can be imported. com.day.cq.wcm.api.AuthoringUIMode resolves to a package

 

 

 

Thanks,

Dimple

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 JustinEd3

FYI - There is no version 5.6.2. There is 5.6.0, 5.6.1, and now 6.0.0

4 replies

dimple_gawri
Level 2
October 16, 2015

Oops, u r right, I am using version 5.6.1.

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

FYI - There is no version 5.6.2. There is 5.6.0, 5.6.1, and now 6.0.0

dimple_gawri
Level 2
October 16, 2015

Hi Justin,

Thanks for a quick response. I am using AEM version 5.6.2. This code base I got from the client. I don't know for what purpose they kept the clientcontext in apps folder also. But there are differences between clientcontext component present inside lib folder & apps folder. When I try to include it from libs folder, it's working fine now.

Once again, thanks a lot for your help.

 

Regards,

Dimple

Adobe Employee
October 16, 2015

What version of AEM are you using? What, if any, feature packs and hotfixes have been installed? What differences exist between /apps/cq/personalization/components/clientcontext and /libs/cq/personalization/components/clientcontext (IIOW, why was the /apps copy created?)?