JaxbRepresentation gives error “doesnt contain ObjectFactory.class or jaxb.index”

后端 未结 8 1306
再見小時候
再見小時候 2021-02-02 08:11

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

8条回答
  •  庸人自扰
    2021-02-02 08:58

    I created an empty jaxb.index file at the location where it was looking for the object factory class. That fixed my problem.

提交回复
热议问题