Regarding huge number of dependencies. Some libraries have a lot of
dependencies or modules. To avoid installing all dependencies we create
composite bundles - for example CXF comes in one bundle with jaxws and jaxrs
support. Apache POI and Drools bundle aggregates all libraries modules
(drools-core, compiler and so on). There is nothing wrong in composite
bundles.
If you use some common libraries you may submit patch to ServiceMix and
they'll be included in ServiceMix bundles repository and let community to
support it.

Best Regards,
Lukasz


-----Original Message-----
From: Pavel Tavoda [mailto:[email protected]] 
Sent: Friday, November 26, 2010 8:26 AM
To: [email protected]
Subject: Re: Bundle dependencies?

Thanks for response Lukasz, I was trying only to show that it's
fragment bundle. Anyway after stopping Karaf and starting it again
behavior is totally strange and I have to reinstall it. Now I'm
starting to understand why OSGi is so difficult. This dependency stuff
is becoming horrible specially for project with around 32 dependencies
in pom.xml what is around 90 libraries :-/.

Pavel


2010/11/25 Łukasz Dywicki <[email protected]>:
> Anyway,
> I found that you might use this feature, but that is not reason why I
double
> post. You try to start fragment bundle. That isn't supported, only one
state
> you might get in fragment bundle is resolved. After that packages exported
> from fragment (com.springsource.org.hibernate.annotations) will be
attached
> to host bundle (com.springsource.org.hibernate).
>
> 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