Hi *, I guess, I have a misunderstanding about classloaders in OSGi and i appreciate, if someone can engross those thoughts.
Here's a specific situation: Bundle A exports exports stax-api and implementation WoodStox. Bundle B has an import on just the stax-api (javax.xml.stream). Bundle B calls 'XMLInputFactory.newInstance();'. Now whats going on? According to 'http://java.sun.com/webservices/docs/2.0/tutorial/doc/StAX4.html' it is looking for file 'META-INF/services/javax.xml.stream.XMLInputFactory' "in jars available to the JRE". Bundle B finds this file and because bundle A exports the WoodStox-classes, everything works fine. But why? Remember: Bundle A has no exporting advice for META-INF (if thats ever possible) and bundle B has no importing on that. I try to split bundle A in two bundles: Bundle A1 contains the stax-api, bundle A2 the implementation (WoodStox). But now, when I call 'XMLInputFactory.newInstance();' in bundle B the file 'META-INF/services/javax.xml.stream.XMLInputFactory' is NOT found. I don't get the point and hope, someone can bring light into my/the darkness. Cheers, Kevin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

