Why can't JAXB find my jaxb.index when running inside Apache Felix?
问题 It's right there, in the package that it should be indexing. Still, when I call JAXBContext jc = JAXBContext.newInstance("my.package.name"); I get a JAXBException saying that "my.package.name" doesnt contain ObjectFactory.class or jaxb.index although it does contain both. What does work, but isn't quite what I want, is JAXBContext jc = JAXBContext.newInstance(my.package.name.SomeClass.class); This question from various other people appears on quite some mailing lists and forums but seemingly