JAXB Exception: Class not known to this context

后端 未结 6 1032
-上瘾入骨i
-上瘾入骨i 2020-11-29 04:48

When I call a particular restful service method, which is built using CXF, I get the following error, anyone know why and how to resolve it?

6条回答
  •  离开以前
    2020-11-29 05:29

    Fixed it by setting the class name to the property "classesToBeBound" of the JAXB marshaller:

    
            
              
                    myclass
              
            
    
    

提交回复
热议问题