Expand my Community achievements bar.

SOLVED

javax.persistence -- Cannot be resolved

Avatar

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

Avatar

Correct answer by
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

Avatar

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.

Avatar

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

Avatar

Level 3

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

Avatar

Correct answer by
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