Hello,

I've a problem between activemq-core-5.2.0 and
org.springframework.beans.factory. When starting my broker service - which
start an embedded activemq - I get this error :

...
Caused by: java.lang.ClassNotFoundException: *** Class
'org.springframework.beans.factory.InitializingBean' was not found because
bundle 8 does not import 'org.springframework.beans.factory' even though
bundle 9 does export it. Additionally, the class is also available from the
system class loader. There are two fixes: 1) Add an import for
'org.springframework.beans.factory' to bundle 8; imports are necessary for
each class directly touched by bundle code or indirectly touched, such as
super classes if their methods are used. 2) Add package
'org.springframework.beans.factory' to the
'org.osgi.framework.bootdelegation' property; a library or VM bug can cause
classes to be loaded by the wrong class loader. The first approach is
preferable for preserving modularity. ***
...

my felix ps :

START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.5.0.SNAPSHOT)
[   1] [Active     ] [    1] Apache Felix Shell Service (1.1.0.SNAPSHOT)
[   2] [Active     ] [    1] Apache Felix Shell TUI (1.1.0.SNAPSHOT)
[   3] [Active     ] [    1] Apache Felix Bundle Repository (1.3.0.SNAPSHOT)
[   4] [Active     ] [    1] geronimo-j2ee-management_1.1_spec (1.0.1)
[   5] [Active     ] [    1] geronimo-jms_1.1_spec (1.1.1)
[   6] [Active     ] [    1] Apache Commons Logging (1.1.1)
[   7] [Active     ] [    1] Apache Log4J (1.2.15)
[   8] [Active     ] [    1] activemq-core (5.2.0)
[   9] [Active     ] [    1] Spring Beans (2.5.6)
[  10] [Active     ] [    1] broker (0.0.1)
[  11] [Resolved   ] [    1] broker-service (0.0.1)

I checked the MANIFEST from activemq-core but it already import the package
org.springframework.beans.factory so I do not understand well from where
could come the problem...

Do I miss something ?

Thanks.


gnodet wrote:
> 
> On Fri, Apr 3, 2009 at 10:47, ffrenchm <ffrench.mathi...@gmail.com> wrote:
>>
>> Hello,
>>
>> I've some questions about ActiveMQ and OSGI.
>>
>> As far as I know, there is two activemq jar bundlised : activemq-core and
>> activemq-pool. Is there any others ActiveMQ bundlised jars today ?
> 
> All ActiveMQ jars are OSGi bundles.
> 
>> The other question I've is about the activemq bundleisation methodology.
>> I
>> already see that you use pom.xml to define your dependencies. I would
>> like
>> to know what kind of bundlisation tools is behind properties such as
>> "activemq.osgi.import.pkg". Do you use a tool like bnd for example ?
> 
> Yes, those properties are defined in the root pom where the
> maven-bundle-plugin configuration is defined.
> 
>> My aim is to integrate ActiveMQ bundle on Felix. I know this is already
>> done
>> on servicemix 4 but through their servicemix kernel (felix + others OSGI
>> tools). Is there anybody who try to make it work directly on native felix
>> ?
>> Do you have any advices for me ?
> 
> Just deploy the jars and the required dependencies.
> You'll find the list in ServiceMix 4 feature definition for ActiveMQ at
>   
> http://repo1.maven.org/maven2/org/apache/servicemix/apache-servicemix/4.0.0/apache-servicemix-4.0.0-features.xml
> I advise you to use the same bundles as listed or you'll likely run into
> issues.
> 
>> Thanks
>>
>> --
>> View this message in context:
>> http://www.nabble.com/ActiveMQ-%2B-OSGI-tp22864414p22864414.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ActiveMQ-%2B-OSGI-tp22864414p22927544.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to