Unable to create JAXBContext creating my wsdl

前端 未结 8 1051
旧巷少年郎
旧巷少年郎 2020-11-27 22:20

I am trying to generate my WSDL for webservices but I get this error:

Note:   ap round: 2
Exception in thread \"main\" javax.xml.ws.WebServiceException: Unable to         


        
8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 22:42

    Note, that you don't have to create a custom Exception. You just ned to use the right version of JAXB when you are generating your classes. For example:

    
        org.codehaus.mojo
        jaxws-maven-plugin
        1.12
        
            
                com.sun.xml.bind
                jaxb-impl
                2.2.5
            
        
        
            
                ...
            
        
    
    

提交回复
热议问题