PDA

View Full Version : Simple Service Sample trouble


S.Isaev
May 28th, 2008, 07:36 AM
Hello

I can't run Simple Service Example from springframework.svn.sourceforge.net.

I have this error in start bundle:
-> WARNING: *** Class 'org.springframework.osgi.service.exporter.support .OsgiServiceFactoryBeanBeanInfo' was not found because bundle 35 does
not import 'org.springframework.osgi.service.exporter.support ' even though bundle 28 does export it.

I try to add "org.springframework.osgi.service.exporter.support" to Import-Package and enather error:
-> WARNING: *** Package 'org.springframework.osgi.service.exporter.support ' is imported by bundle 35 from bundle 28, but the exported package
from bundle 28 does not contain the requested class 'org.springframework.osgi.service.exporter.support .OsgiServiceFactoryBeanBeanInfo'.

I can't find class "OsgiServiceFactoryBeanBeanInfo'".

Use:
- felix 1.0.4;
- Spring DM 1.1.0 M2.

Attached:
- full error;
- log command "ps -l";
- zipped jar of bilded example.

Help me :)

oleg.zhurakousky
May 28th, 2008, 07:26 PM
You can't run?
or
You are simply overwhelmed with **WARNING** messages?

I don't see any errors in your logs. All I see is Felix warning messages that certain classes could not be found, which have to do with dynamically imported libraries and should not affect your application.
See this post:
http://markmail.org/message/nbiu2hf3kdvj5duh?q=ObjectBeanInfo&page=1&refer=vwyqotpksqqveswb

Also, the ZIP file you posted does not contain sources, but I did notice that yoru MANIFEST has more imports, so if you made any changes let us know what they are.

Costin Leau
May 29th, 2008, 02:52 AM
The Warnings are not an error. They are caused by lookups for classes that do not exist - Spring uses javax.beans package which searches for <Class>BeanInfo classes - when such classes do not exist (the usual case), a classnotFound is thrown which is logged as a warning by Felix.
That's all though - everything should work.

S.Isaev
May 29th, 2008, 09:53 AM
Thank you.
You are right, this is only Warning messages. Simple export/import Spring DM services are working correctly.

How can I make the filter to suppress warning messages of dynamic loading *BeanInfo classes?

Costin Leau
May 29th, 2008, 10:09 AM
I believe you can lower the level of logging but not suppress a certain category but I might be wrong. See the Felix documentation/wiki.