java.lang.NoClassDefFoundError: com/sun/istack/localization/Localizable?

前端 未结 4 1255
谎友^
谎友^ 2020-12-15 18:45

i try to run my project by tomcat7. afer the generation of the wsdl file of my webservices by jax ws maven plugin (and it generated by success) but tried to view the wsdl fi

4条回答
  •  执念已碎
    2020-12-15 18:55

    com.sun.istack.localization.Localizable.class is definitly in jaxb-core-2.2.11.jar

    For runing properly your web apllication, you need to add on your pom.xml:
    com.sun.xml.ws jaxws-rt 2.2.8
    This is for your listner declared on your web.xml:
    com.sun.xml.ws.transport.http.servlet.WSServletContextListener

    Then, under <%TOMCAT_HOME%>/endorsed (create it if you don't have it) the librairies:

    1. jaxb-impl-2.2.11.jar
    2. jaxb-core-2.2.11.jar
    3. jaxb-api-2.2.3.jar
    4. stax-api-1.0-2.jar
    5. activation-1.1.jar
    6. jaxws-api-2.2.3.jar
    7. saaj-api-1.3.2.jar
    8. javax.annotation-3.1-b35.jar
    9. jsr181-api-1.0-MR1.jar

提交回复
热议问题