hibernate.cfg issues [message #953846] |
Mon, 22 October 2012 15:27 |
Erik Vande Velde Messages: 82 Registered: September 2012 |
Member |
|
|
I'm trying to use hibernate with jpa 2.0 in my project. To have a clean start I decided to use the latest library from the springsource repository, so I'm sure the bundles in that library are supposed to work together well.
Problem 1: when I deploy both com.springsource.org.hibernate-3.3.2.GA and com.springsource.org.hibernate.annotations-3.4.0.GA-A in repository/usr the spring bundle org.springframework.orm_3.0.5.RELEASE leads to a problem, because it uses org.hibernate.cfg. Both hibernate bundles mentioned above provide that package, and somehow spring orm doesn't like it: message is
Uses violation: <Import-Package: org.hibernate.cfg; version="0.0.0"> in bundle <com.fugro.gwf.model_1.0.0>
Resolver reported uses conflict for import constrained to bundle <com.springsource.org.hibernate> constrained bundle
version range 3.3.2.GA,3.3.2.GA.
So i took out hibernate.annotations from the repository/usr to bypass that problem (then I only have one bundle exporting the package)
Problem 2: After taking out the hibernate.annotations bundle I get this message:
An Import-Package could not be resolved. Resolver error data <Import-Package: org.hibernate.ejb.event; version="[3.4.0.GA,3.4.0.GA]">. Caused by missing constraint in bundle <com.fugro.gwf.service_1.0.0> constraint: <Import-Package: org.hibernate.ejb.event; version="[3.4.0.GA,3.4.0.GA]"> constrained to bundle <com.springsource.org.hibernate> constrained bundle version range "[3.3.1.GA,3.4.0)"
I read this as: org.hibernate version 3.3.2.GA, which is indeed in the range [3.3.1.GA,3.4.0) somehow needs the package org.hibernate.ejb.event, while I provide com.springsource.org.hibernate.ejb-3.4.0.GA in repository/usr. And somehow that leads to a conflict. Can someone explain what Virgo is trying to tell me here, and even better: what the solution might be ?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03329 seconds