CXF - ClassCastException (SEIStub/ClientProxy)

后端 未结 7 1598
时光说笑
时光说笑 2020-12-10 14:05

I\'m trying to build a client jar file to access a webservice. I\'m including the jar in a servlet/war that makes the client webservice calls. I\'m getting the following e

7条回答
  •  离开以前
    2020-12-10 14:43

    I just had this issue while upgrading our application to Java 11. In the end it turned out that we had some weired dependency setup and two "conflicting" libs:

    cxf-rt-frontend-simple vs. cxf-rt-frontend-jaxws

    So I removed all the simple dependencies and replaced them with jaxws and now all is fine ->

    
     org.apache.cxf
     cxf-rt-frontend-jaxws
     ${cxf.version}
    
    

    Credits to this blog post -> http://www.littlebigextra.com/exception-how-to-resolve-com-sun-xml-internal-ws-client-sei-seistub-cannot-be-cast-to-org-apache-cxf-frontend-clientproxy/

    For further reading I recommend this thread on Java >8 migrations: Replacements for deprecated JPMS modules with Java EE APIs

提交回复
热议问题