Hi All,
I am currently working on upgrading aem 6.2 to aem 6.4.
The following are used by our custom components
cq-social-blog
cq-social-commons
cq-social-storage
The bundle that imports the above ends in error:
org.apache.sling.jcr.resource -- Cannot be resolved
I have gone through the following posts:
AEM 6.4 beta, Apache Sling JCR Resource Resolver not present
AEM 6.0 upgrade to AEM 6.2 - com.adobe.cq.social.cq-social-blog Removed AEM 6.0 upgrade to AEM 6.2 - com.adobe.cq.social.cq-social-blog Removed
Strategy for upgrading project that uses some classes from com.adobe.cq.social.blog
After going through the above posts and also digging through the decompiled classes under the following:
cq-social-blog
cq-social-commons
cq-social-storage
I found that the following class which is deprecated in AEM 6.4 Uber Jar
org.apache.sling.jcr.resource.JcrResourceResolverFactory
is being used in the following. This is causing the error:
cq-social-storage
com/adobe/cq/social/cq-social-storage/1.0.11/cq-social-storage-1.0.11.jar!/com/adobe/cq/social/storage/index/impl/IndexService.class
cq-social-blog
com/adobe/cq/social/cq-social-blog/1.2.7/cq-social-blog-1.2.7.jar!/com/adobe/cq/social/blog/trackback/TrackbackServlet.class
com/adobe/cq/social/cq-social-blog/1.2.7/cq-social-blog-1.2.7.jar!/com/adobe/cq/social/blog/search/process/BlogSearchPingProcess.class
com/adobe/cq/social/cq-social-blog/1.2.7/cq-social-blog-1.2.7.jar!/com/adobe/cq/social/blog/antispam/process/CheckSpamProcess.class
cq-social-commons
com/adobe/cq/social/cq-social-commons/1.2.32/cq-social-commons-1.2.32.jar!/com/adobe/cq/social/commons/AbstractCreateCommentServlet.class
com/adobe/cq/social/cq-social-commons/1.2.32/cq-social-commons-1.2.32.jar!/com/adobe/cq/social/commons/impl/AysncReverseReplicatorImpl.class
com/adobe/cq/social/cq-social-commons/1.2.32/cq-social-commons-1.2.32.jar!/com/adobe/cq/social/commons/impl/CommentJcrPathBuilder.class
com/adobe/cq/social/cq-social-commons/1.2.32/cq-social-commons-1.2.32.jar!/com/adobe/cq/social/commons/impl/UserStateToggleManagerImpl.class
As per the official documentation in sling:
JcrResourceResolverFactory (Apache Sling (Builder) 6 API)
The
JcrResourceResolverFactory
is deprecated and the new class according ResourceResolverFactory (Apache Sling (Builder) 6 API)
ResourceResolverFactory
should be used.
Are there new versions of the following released for AEM 6.4
cq-social-blog
cq-social-commons
cq-social-storage
Please let me know is there a solution for this.
Regards,
Mano