-
1. Re: javax.xml.namespace.QName issue
olivern Feb 16, 2009 5:08 PM (in response to olivern)I figured this one out. I had loaded an XmlBeans bundle from the Spring OSGi bundle repository, and it didn't have an import for the javax.xml.namespace in the Manifest. So it was that bundle trying to load javax.xml.namespace.QName, not my application bundle.
I think the Spring bundle was probably tested in an OSGi container that included the built-in Java 1.5/1.6 javax.xml.namespace package by default (which SMX doesn't - it substitutes an Apache version). So that's why it worked for whoever built it. I guess substituting for JDK packages still has its gotchas, even in an OSGi world!
I'm pretty new to OSGi, but it seems like there are quite a few class loading details to be aware of. One thing that would be beneficial is for class loading error messages to print out a bit of information about the bundle that is trying to load the class. That would have been a timesaver in this case since I got faked out and thought it was my App bundle having the problem.
-Oliver
-
2. Re: javax.xml.namespace.QName issue
davsclaus Feb 17, 2009 12:39 AM (in response to olivern)Good idea about the detailed error message.
Feel free to raise a RFE at the JIRA for it: