java.lang.NoClassDefFoundError: javax/activation/DataSource on wsimport Intellij java 9

前端 未结 4 634
再見小時候
再見小時候 2020-12-15 06:27

i\'m trying to generate class stubs for a wsdl with Intellij-Idea 2017.2.5 (Webservices -> Generate code from wsdl...) using JDK-9

I\'m getting this exception and i

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-15 07:12

    Based on your error message, you need to add the following dependency in your pom.xml

    
        javax.activation
        activation
        1.1.1
    
    

    From SDK 9, for JAXB to work for web services you need to also have the following dependencies if you do not already have them as they are not part of the SDK.

    
        javax.xml.bind
        jaxb-api
        2.3.0
    
    
    
        com.sun.xml.bind
        jaxb-core
        2.3.0
    
    
    
       com.sun.xml.bind
       jaxb-impl
       2.3.0
    
    

提交回复
热议问题