Quantcast

Constraint violation when using hibernate and karaf

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Constraint violation when using hibernate and karaf

Nesma
I downloaded sample and tried it, it is working fine but when I try to deploy to apache karaf server I get the following
Error executing command: Error executing command on bundles:
        Unable to execute command on bundle 197: Uses constraint violation. Unable to resolve bundle revision examplejpa-hibernate [197.2] because it is exposed to package 'javax.persistence' from bundle revisions org.apache.geronimo.specs.geronimo-jpa_2.0_spec [85.0] and org.hib

Chain 1:
  examplejpa-hibernate [197.2]
    import: (&(osgi.wiring.package=javax.persistence)(version>=1.0.0)(!(version>=2.1.0)))
     |
    export: osgi.wiring.package=javax.persistence
  org.apache.geronimo.specs.geronimo-jpa_2.0_spec [85.0]

Chain 2:
  examplejpa-hibernate [197.2]
    import: (osgi.wiring.package=org.hibernate.proxy)
     |
    export: osgi.wiring.package=org.hibernate.proxy; uses:=javax.persistence
  org.hibernate.core [190.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 [181.0]



Here are my installed bundles



111 | Active    |  80 | 3.0.2          | Apache Karaf :: JNDI :: Command
112 | Active    |  80 | 2.3.0          | HSQLDB
113 | Active    |  80 | 3.1.3.GA       | JBoss Logging 3
130 | Active    |  80 | 1.9.0          | Apache ServiceMix :: Specs :: Stax API 1.0
131 | Active    |  80 | 5.1.18         | Sun Microsystems' JDBC Driver for MySQL
132 | Active    |  80 | 1.0.0.SNAPSHOT | db-datasource-mysql
133 | Active    |  80 | 1.0.0.SNAPSHOT | db-command
134 | Active    |  80 | 1.0.0.SNAPSHOT | db-examplejdbc
135 | Active    |  80 | 3.2.1          | Commons Collections
136 | Active    |  80 | 1.5.4          | Commons Pool
137 | Active    |  80 | 1.4            | Commons DBCP
138 | Active    |  80 | 2.6            | Commons Lang
139 | Active    |  80 | 0              | wrap_mvn_net.sourceforge.serp_serp_1.13.1
140 | Active    |  80 | 2.1.1          | OpenJPA Aggregate Jar
179 | Active    |  80 | 3.18.1.GA      | Javassist
180 | Active    |  80 | 4.0.4.Final    | hibernate-commons-annotations
182 | Active    |  80 | 2.7.7.5        | Apache ServiceMix :: Bundles :: antlr
183 | Active    |  80 | 1.8.2.2        | Apache ServiceMix :: Bundles :: ant
184 | Active    |  80 | 1.6.1.5        | Apache ServiceMix :: Bundles :: dom4j
185 | Active    |  80 | 1.14.1.1       | Apache ServiceMix :: Bundles :: serp
186 | Active    |  80 | 0.9.0          | ClassMate
187 | Active    |  80 | 1.0.2.Final    | JACC 1.4 API
188 | Active    |  80 | 0              | wrap_mvn_org.jboss_jandex_1.1.0.Final
189 | Active    |  80 | 3.1.4.GA       | JBoss Logging 3
190 | Active    | 100 | 4.3.6.Final    | hibernate-core
191 | Active    | 100 | 4.3.6.Final    | hibernate-entitymanager
192 | Active    | 100 | 4.3.6.Final    | hibernate-osgi
197 | Installed |  80 | 1.0.0.SNAPSHOT | examplejpa-hibernate

Can anyone help please
Loading...