I'm trying to test a bundle using PaxExam which has two embedded jars, referenced by the Bundle-Classpath in the manifest.
When trying to access the service that the bundle supplies from within PaxExam I receive an ExceptionInInitializerError:
Caused by: java.lang.RuntimeException: Unable to load either XMLPull or StAX parser - check classpath for interface and implementation jars
XMLPull error java.lang.ExceptionInInitializerError: null
StAX error java.lang.NoClassDefFoundError: javax/xml/stream/FactoryConfigurationError
The bundle works fine in a standalone equinox instance and from within Eclipse.
I've tried adding the JARs to the project classpath and using the bootClasspathLibrary option in the PaxExam config but no luck.
Thanks