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

AasishJain
AasishJain
Offline

Badges

Badges
2

Accepted Solutions

Accepted Solutions
0

Likes

Likes
1

Posts

Posts
2

Discussions

Discussions
1

Questions

Questions
1

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by AasishJain
Customize the badges you want to showcase on your profile
Re: Default Sling Script Error
Avatar
Give Back
Level 1
AasishJain
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile
AasishJain
- Adobe Experience Manager
Please check the imports for the new class which you created. I was getting the same error when I was creating a sling model (@Model(adaptables =Resource.class))and after analysing the code I found that there was an import import javax.annotation.Resource which was not correct. I replaced it with the correct one import org.apache.sling.api.resource.Resource and the issue got fixed.

Views

699

Likes

0

Replies

0
Re: javax.inject,version=[0.0,1) — Cannot be resolved
Avatar
Give Back
Level 1
AasishJain
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile
AasishJain
- Adobe Experience Manager
Spoiler (Highlight to read)  add this dependency in your core/pom.xml

Views

414

Like

1

Replies

0
Likes given to
Likes from