Thanks, Richard,

All it needs is a gentle hint and someone taking the time to provide the hint.

Paul Fraser

On 15/12/21 11:13 pm, Richard Hierlmeier wrote:
How do you create the JAXBContext?

You have to use the newInstance-method with the class loader that has access to the ObjectFactory class


Regards

 Richard





Am Mi., 15. Dez. 2021 um 11:09 Uhr schrieb Paul Fraser <[email protected] <mailto:[email protected]>>:

    Hi,

    Have created xsd file from xml file and used xjc to generate the java
    classes.

    When run, the system reports "no ObjectFactory class file found"
    but it
    exists with the generated java classes produced by xjc.

    Is there something about Karaf or Osgi with Jaxb that causes this
    problem?

    Where should I be looking to fix this?

    Karaf 4.3.3, Java 11

    Regards

    Paul Fraser


Reply via email to