Catching webservice exception with CXF: NoClassDefFoundError: SOAPFaultBuilder

前端 未结 2 1509
面向向阳花
面向向阳花 2021-01-18 09:20

I\'ve been using Apache CXF wsdl2java generated code to call methods from a webservice for some time now, which so far has been working fine.. The problem I\'m having is tha

2条回答
  •  梦毁少年i
    2021-01-18 10:12

    There are two interesting things about that stack trace:

    1) It is having problems finding an SAAJ implementation. Probably adding saaj-impl.jar to the classpath might resolve that.

    2) It's not using CXF at all. It's using the Sun JAX-WS reference implementation that's built into the jre. Thus, it looks like the cxf jars aren't being picked up at all.

提交回复
热议问题