Expand my Community achievements bar.

SOLVED

org.apache.sling.jcr.resource,version=[2.2,3) -- Cannot be resolved AEM 6.5.0

Avatar

Level 4

Hi all,

 

We upgraded AEM 6.2 to 6.5.0. After upgrading, the customized main bundle in "Installed" state. I upgraded uber jar into 6.5.0 as well.

 

I also tried upgrading 2.2.2 to 3.0.18. But, the issues didn't solve.

 

pom.xml

<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.jcr.resource</artifactId>
<version>2.2.2</version>
<scope>provided</scope>
</dependency>

 

This is "org.apache.sling.jcr.resource" after upgrading AEM into 6.5.0.

org.apache.sling.jcr.resource_AEM6.5_afterupgarde.JPG

 

Please suggest. Thanks in advance.

 

This is "org.apache.sling.jcr.resource" before upgrading. AEM is 6.2.

org.apache.sling.jcr.resource_AEM6.2_beforeupgrade.JPG

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hey. I ran into the same problem a few days ago. I've found a temporary solution to this problem. Could be worth a try if it's a blocker. Here's the question I had posted earlier today with some details just in case you want to use it for reference - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/import-package-version-mis... 

 

So basically, the bundle with the version mismatch problem expects this package that falls within a given version range. However, org.apache.sling.jcr.resource bundle exports a package with version 1.0.0 . Hence why you run into a version mismatch problem. 

 

 

 

View solution in original post

4 Replies

Avatar

Correct answer by
Level 4

Hey. I ran into the same problem a few days ago. I've found a temporary solution to this problem. Could be worth a try if it's a blocker. Here's the question I had posted earlier today with some details just in case you want to use it for reference - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/import-package-version-mis... 

 

So basically, the bundle with the version mismatch problem expects this package that falls within a given version range. However, org.apache.sling.jcr.resource bundle exports a package with version 1.0.0 . Hence why you run into a version mismatch problem. 

 

 

 

Avatar

Employee Advisor

Hi @ariesyinn ,

A thread to similar issue : 
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-4-beta-apache-sling-...

This pretty much looks like the issue caused by restructuring of uber-jar. Since, you are upgrading from 6.2 to 6.5, you might want to have a look at deprecated stuff documented here :
https://www.adobe.io/experience-manager/reference-materials/6-5/javadoc/deprecated-list.html

 

Regards,
Milind

Avatar

Level 4

Hi @ariesyinn 

may I know that is the version of core WCM components which you are using..??