Hi Pavel,
I see that you try to install Hibernate under ServiceMix. You can try
feature named jpa-hibernate which contains all dependencies needed to run
Hibernate under OSGi. Also you can use packages:exports <bundle-id> and
packages:imports <bundle-id> to check what bundle try to get. Another good
command is dev:show-tree <bundle-id>.


Best regards,
Lukasz

-----Original Message-----
From: Pavel Tavoda [mailto:[email protected]] 
Sent: Thursday, November 25, 2010 7:19 PM
To: [email protected]
Subject: Bundle dependencies?

Hello, bundle 220 depends on org.hibernate.annotations but bundle 293
is exporting it. What's wrong?

TNX
_____________________________________________________________
ka...@root> list -s | grep 220
[ 220] [Installed  ] [            ] [       ] [   60]
org.sculptor.shipping (1.0.0.SNAPSHOT)

ka...@root> start 220
Error executing command: The bundle
"org.sculptor.shipping_1.0.0.SNAPSHOT [220]" could not be resolved.
Reason: Missing Constraint: Import-Package: org.hibernate.annotations;
version="0.0.0"

ka...@root> list -s | grep 293
[ 293] [Installed  ] [            ] [       ] [   60]
com.springsource.org.hibernate.annotations (3.4.0.GA)

ka...@root> start 293
Error executing command: A fragment bundle cannot be started:
com.springsource.org.hibernate.annotations_3.4.0.GA [293]

ka...@root> headers 293

JBoss Hibernate Annotations (293)
---------------------------------
Manifest-Version = 1.0
Export-Package =
org.hibernate;version="3.4.0.GA",org.hibernate.annotations;version="3.4.0.GA
";uses:="javax.persistence",org.hibernate.cfg;version="3.4.0.GA";uses:="java
x.persistence,org.dom4j,org.hibernate,org.hibernate.annotations,org.hibernat
e.annotations.common.reflection,org.hibernate.cfg.annotations,org.hibernate.
engine,org.hibernate.mapping,org.w3c.dom,org.xml.sax",org.hibernate.cfg.anno
tations;version="3.4.0.GA";uses:="javax.persistence,org.hibernate,org.hibern
ate.annotations,org.hibernate.annotations.common.reflection,org.hibernate.cf
g,org.hibernate.mapping",org.hibernate.cfg.annotations.reflection;version="3
.4.0.GA";uses:="javax.persistence,org.dom4j,org.hibernate.annotations.common
.annotationfactory,org.hibernate.annotations.common.reflection",org.hibernat
e.cfg.search;version="3.4.0.GA";uses:="org.hibernate.event",org.hibernate.ej
b;version="3.4.0.GA",org.hibernate.mapping;version="3.4.0.GA",org.hibernate.
type;version="3.4.0.GA";uses:="org.dom4j,org.hibernate,org.hibernate.engine"
Implementation-Title = Hibernate Annotations
Implementation-Version = 3.4.0.GA
Bundle-Classpath = .
Specification-Vendor = jcp.org
Bundle-Name = JBoss Hibernate Annotations
Created-By = 1.5.0_06-b05 (Sun Microsystems Inc.)
Implementation-URL = http://annotations.hibernate.org
Ant-Version = Apache Ant 1.7.1
Implementation-Vendor = hibernate.org
Bundle-Vendor = SpringSource
Fragment-Host =
com.springsource.org.hibernate;bundle-version="[3.3.1.GA, 3.4.0)"
Implementation-Vendor-Id = hibernate.org
Bundle-Version = 3.4.0.GA
Specification-Title = Java Persistence
Bundle-ManifestVersion = 2
Import-Package = javax.persistence;version="[1.0.0,
2.0.0)",org.dom4j;version="[1.6.1,
2.0.0)",org.dom4j.io;version="[1.6.1,
2.0.0)",org.hibernate.annotations.common.annotationfactory;version="[3.3.0.g
a,
3.4.0)",org.hibernate.annotations.common.reflection;version="[3.3.0.ga,
3.4.0)",org.hibernate.annotations.common.reflection.java;version="[3.3.0.ga,
3.4.0)",org.hibernate.annotations.common.util;version="[3.3.0.ga,
3.4.0)",org.slf4j;version="[1.3.1, 2.0.0)",org.w3c.dom,org.xml.sax
Specification-Version = 1.0
Bundle-SymbolicName = com.springsource.org.hibernate.annotations

Reply via email to