I am trying to create a sample test application which converts an object to JaxbRepresentation. But when I try to run this, it gives me an error.
Main.java file
I was using Spring and I just had to change
Jaxb2Marshaller mlr = new Jaxb2Marshaller(); mlr.setContextPaths("","");
to
Jaxb2Marshaller mlr = new Jaxb2Marshaller(); mlr.setPackagesToScan("","");
Ref1 & Ref2