Catching webservice exception with CXF: NoClassDefFoundError: SOAPFaultBuilder

前端 未结 2 1505
面向向阳花
面向向阳花 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条回答
  • 2021-01-18 09:56

    Had similar problem when we're switching from Ant to Maven. We use Sun JDK 1.6u20.

    We've missed these libraries in maven-assembled war's:

    jaxws-api jaxws-rt jaxws-tools

    After adding them all works as it had worked before. Hope this will help someone!

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题