0

For an REST api I have create a class with @XMLRootElement annotation , and when providing the request in SOAPUi , getting below error .

JAXBException occurred : unable to marshal type "mypackage.myclass."as an element because it is not known to this context..

How to resolve this error?

deva
  • 49
  • 6
  • That depends on a lot of the code you didn't include in your post. [mcve] – daniu Jun 14 '18 at 10:01
  • Possible duplicate of [JAXB Exception: Class not known to this context](https://stackoverflow.com/questions/3237473/jaxb-exception-class-not-known-to-this-context) – craigcaulfield Jun 15 '18 at 08:53

0 Answers0