I'm working with a Felix container embedded into a Tomcat deployed Webapp.
Felix is started inside of an ApplicationContextListener. We then install some
bundles at run time. Mostly, it kind of works ;) However, there are
glitches. Though I don't pretend to understand the details, I gather that
there are issues with running Felix inside of a webapp like this. I would love
to have some insight on that topic.
My current and specific issue is this.
My bundles all resolve, which to me means that all of my imported classes
should be visible. However, one of my bundle activator's blows up complaining
about a class not found. That class is from a package that DEFINITELY has
resolved. So, what's happening here? Here's a bit of my stack trace. Is it
right for the WebappClassLoader to be involved here?
Caused by: java.lang.ClassNotFoundException: com.MyClass
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.hibernate.annotations.common.util.ReflectHelper.classForName(ReflectHelper.java:78)
Thanks!
Chad