Uses contraint violation when using jpa-hibernate

Solution Unverified - Updated -

Issue

When installing the jpa-hibernate feature of Fuse ESB Enterprise 7.1, a uses contraint violation is thrown.

FuseESB:karaf@root> features:install jpa-hibernate
Error executing command: Could not start bundle mvn:org.springframework/spring-orm/3.0.7.RELEASE in feature(s) jpa-hibernate-4.5.0.fuse-71-0
44, spring-orm-3.0.7.RELEASE: Uses constraint violation. Unable to resolve bundle revision org.springframework.orm [288.0] because it is exp
osed to package 'javax.persistence' from bundle revisions org.apache.geronimo.specs.geronimo-jpa_2.0_spec [260.0] and org.apache.servicemix.
specs.java-persistence-api-1.1.1 [261.0] via two dependency chains.

Chain 1:
  org.springframework.orm [288.0]
    import: (&(osgi.wiring.package=javax.persistence)(version>=1.0.0)(!(version>=3.0.0)))
     |
    export: osgi.wiring.package=javax.persistence
  org.apache.geronimo.specs.geronimo-jpa_2.0_spec [260.0]

Chain 2:
  org.springframework.orm [288.0]
    import: (&(osgi.wiring.package=org.hibernate.annotations)(version>=3.2.0)(!(version>=4.0.0)))
     |
    export: osgi.wiring.package=org.hibernate.annotations; uses:=javax.persistence
  com.springsource.org.hibernate [287.0]
    import: (&(osgi.wiring.package=javax.persistence)(version>=1.0.0)(!(version>=2.0.0)))
     |
    export: osgi.wiring.package=javax.persistence
  org.apache.servicemix.specs.java-persistence-api-1.1.1 [261.0]

Environment

  • Fuse ESB Enterprise 7.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content