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

SOLVED

javax.persistence -- Cannot be resolved

keerthid7215849
Level 3
Level 3

There are unresolved issues

"javax.persistence -- Cannot be resolved

org.apache.commons.beanutils,version=[1.9,2) -- Cannot be resolved

org.hibernate -- Cannot be resolved

org.hibernate.cfg -- Cannot be resolved

org.hibernate.classic -- Cannot be resolved

org.hibernate.dialect -- Cannot be resolved

org.hibernate.dialect.function -- Cannot be resolved

org.hibernate.transform -- Cannot be resolved

"

when trying to do mvn install in 6.3. can anyone help to resolve these issues? Thanks, in-advance.

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10

Use AEM Dependency Finder to see if AEM has dependencies for OSGi bundles. For this package - there is no OSGi bunlde exporting this Java package:

http://localhost:4502/system/console/depfinder

See

JAVAX.png

View solution in original post

4 Replies
smacdonald2008
Level 10
Level 10

This looks like you are using APIs from Hibernate, etc that are not part of the Experience Manager OSGi service container. You need to get these Java APIs into an OSGi bundle and deploy the bundle to AEM.

One way you can do that is to wrap them into an Eclipse plug-in project.

smacdonald2008
Level 10
Level 10

Look at how we place the simple JSON JAR into an OSGi bundle by using the Eclipse plug-in project here: Scott's Digital Community: Submitting Adobe Experience Manager form data to custom Sling Servlets

keerthid7215849
Level 3
Level 3

I accept for HIBERNATE dependencies but is it same for "javax.persistence" too

smacdonald2008
Correct answer by
Level 10
Level 10

Use AEM Dependency Finder to see if AEM has dependencies for OSGi bundles. For this package - there is no OSGi bunlde exporting this Java package:

http://localhost:4502/system/console/depfinder

See

JAVAX.png

View solution in original post