Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Getting "Cannot be resolved to a type" error on java files


Level 2


I'm upgrading to aem6.4 and r7 annotations in project.  We are getting below common error on difference java files on different applications.

the bold lines are the common error that we are getting in different files across difference applications.  The line no. 39 has below line only,

Page page = currentPage;

In every application wherever we use currentPage object it throws a error "cannot be resolved to a type".

Below is the java file where i'm facing error,

Environment : AEM 6.4.4

Any suggestion on this would be more helpful.



2 Replies


Level 4

Add the package containing your java class to the bundle plugin configuration in the pom file.

Apache Felix - Apache Felix Maven Bundle Plugin (BND)


















Level 1
Level 1

Hi guys i am facing below error pls help me