JaxWS ClassCastException on JBoss

前端 未结 3 957
野趣味
野趣味 2021-01-22 23:08

I\'m using JBoss 5.1.0.GA (for JDK6), and jaxws 2.2.6. When I invoke the webservice, I get the following exception:

java.util.ServiceConfigurationError: j

3条回答
  •  时光取名叫无心
    2021-01-22 23:43

    Finally, I've managed to solve my problem: I put jaxws-rt.jar in $JBOSS_HOME/lib/endorsed.

    EDIT
    I had the same problem on JBoss 5.1 EAP, and to solve it, the steps are a little different: in $JBOSS_HOME/lib/endorsed I removed the old jaxb-api.jar, then copied

    • jaxb-api.jar
    • jaxb-impl.jar
    • jaxws-api.jar
    • jaxws-rt.jar

    from the latest jaxws-ri package, and eventually it worked.

提交回复
热议问题