Having the same package in two different bundles, but the classes are different.
Ex : two bundles has same package x.y.z but classes are different.
Bundle 1 :
x.y.z.ClassA
Bundle 2 :
x.y.z.ClassB
Now I am trying to use this classes in JSP files , it is throwing me the error
Caused by: org.apache.sling.api.SlingException: javax.servlet.ServletException: java.lang.Error: Unresolved compilation problems:
Only a type can be imported. x.y.z.ClassA resolves to a package
ClassA cannot be resolved to a type