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]>:

> 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