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
This is a discussion on ClassNotFoundException for a definitely existing class in Felix OSGI container - Java ; 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 ...
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ä
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