Hi,

I've some bundles that are using Openjpa feature. (lets says "bundles A")

I've other bundles that are using Hibernate feature. (lets says "bundles B")


If i install bundles A and OpenJPA --> OK
If i install bundles B and Hibernate (with spring) --> OK

BUT if i install bundles A,B, OpenJPA, Hibernate --> KO

-------------------------------
Error executing command: Could not start bundle
mvn:org.springframework/org.springframework.context/3.2.4.RELEASE in
feature(s) spring-3.2.4.RELEASE: Uses constraint violation. Unable to
resolve bundle revision org.springframework.orm [234.0] because it is
exposed to package 'javax.persistence' from bundle revisions
org.apache.geronimo.specs.geronimo-jpa_2.0_spec [116.0] and
org.hibernate.javax.persistence.hibernate-jpa-2.1-api [121.0] via two
dependency chains.

Chain 1:
  org.springframework.orm [234.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 [116.0]

Chain 2:
  org.springframework.orm [234.0]
    import:
(&(osgi.wiring.package=org.hibernate.annotations)(version>=3.3.1)(!(version>=5.0.0)))
     |
    export: osgi.wiring.package=org.hibernate.annotations;
uses:=javax.persistence
  org.hibernate.core [259.0]
    import: (&(osgi.wiring.package=javax.persistence)(version>=2.1.0))
     |
    export: osgi.wiring.package=javax.persistence
  org.hibernate.javax.persistence.hibernate-jpa-2.1-api [121.0]

-------------------------------


Anybody has an idea to fix this ?






--
View this message in context: 
http://karaf.922171.n3.nabble.com/Hibernate-OpenJPA-tp4034969.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to