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 TestResource.java file SampleResponse.java file When I run this on the server, it throws the following error: Please someone help!!! Answer To get rid of additional jaxb.index files you may use Java