ClassNotFoundException for a definitely existing class in Felix OSGI container

J

Jan Thomä

Hi,

i am encountering a strange problem when using Spring inside the Felix OSGI
container. I have struggled long and hard to make my external libraries
available inside Felix, and I found out, that the recommended way to do
this is to package your libraries as OSGI bundles (using the bnd tool) and
then deploy them inside your OSGI container. So I did exactly that and
everything seemed to work out fine, until Spring launched an application
context for me. Then I got a ClassNotFoundException for org.w3c.dom.Node.
Nevertheless i have packaged xml-apis.jar (which contains the said class)
as a bundle and deployed it inside Felix, so I am currently totally out of
ideas why despite the fact that there is a bundle providng this class, it
is still not found. The Spring-bundle requires the org.w3c.dom package and
is started correctly without any problems by Felix, which tells me, that
Felix at least knows that there is a bundle providing it, otherwise i could
not have started the Spring bundle. Any ideas on what i could have done
wrong would be greatly appreciated. Thank you very much.

Best regards,
Jan Thomä
 
J

Jan Thomä

One clarification, it is actually a NoClassDefFoundError and not a
ClassNotFoundException. Tells me, that the class is at least found, but
cannot be loaded, which is even more strange. Any ideas?

Best regards,
Jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top