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

前端 未结 4 1261
谎友^
谎友^ 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 19:12

    I have face many issues when trying to build a Soap web service running on Tomcat, and for that I've needed many maven dependencies. The configuration that have worked for me is the following:

    
        
        
            com.sun.xml.ws
            jaxws-rt
            2.2.8
        
        
        
            javax.servlet
            javax.servlet-api
            3.1.0
            provided
        
        
        
            com.sun.xml.bind
            jaxb-core
            2.2.7
        
        
        
            com.sun.xml.stream.buffer
            streambuffer
            1.5.3
        
        
        
            com.sun.xml.bind
            jaxb-impl
            2.2.7
        
        
        
            com.sun.xml.ws
            policy
            2.3.1
        
        
        
            org.glassfish.gmbal
            gmbal-api-only
            3.2.0-b003
        
        
        
            org.glassfish.ha
            ha-api
            3.1.9
        
    
    

    Replace your maven dependencies by these and then make a new try. I hope this works for you too

    Regards

提交回复
热议问题