Hi Mike,

The problem is about the JAXB version you are using.

Do you define jaxb-api in your pom dependencies ?

Regards
JB

> Le 31 mai 2021 à 06:54, Mike Oliver <mikeolive...@open4businessonline.com> a 
> écrit :
> 
> Hi,
> 
> I am trying to add the  cxf-codegen-plugin
> 
> <plugin>
>   <groupId>org.apache.cxf</groupId>
>   <artifactId>cxf-codegen-plugin</artifactId>
>   <version>3.2.4</version>
>   <executions>
>     <execution>
>       <id>generate-sources</id>
>       <phase>generate-sources</phase>
>       <configuration>
>         <wsdlOptions>
>           <wsdlOption>
>             <wsdl>src/main/resources/wsdl/BookService.wsdl</wsdl>
>           </wsdlOption>
>         </wsdlOptions>
>       </configuration>
>       <goals>
>         <goal>wsdl2java</goal>
>       </goals>
>     </execution>
>   </executions>
> </plugin>
> 
> 
> However when I do I get this error message.
> 
> Execution generate-sources of goal
> org.apache.cxf:cxf-codegen-plugin:3.2.4:wsdl2java failed: A required
> class was missing while executing org.apache.cxf:cxf-codegen-
> plugin:3.2.4:wsdl2java:
> javax/xml/bind/annotation/adapters/HexBinaryAdapter
> ----------------------------------------------------- realm =
> plugin>org.apache.cxf:cxf-codegen-
> plugin:3.2.4 strategy =
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] =
> file:/C:/esb/.m2/repository/org/apache/cxf/cxf-codegen-plugin/3.2.4/cxf-codegen-
> plugin-3.2.4.jar...
> 
> my cxf dependency is
> 
> <dependency>
>       <groupId>org.apache.camel</groupId>
>       <artifactId>camel-cxf</artifactId>
>       <version>2.21.0</version>
> </dependency>
> 
> Given I believe this is a version missmatch, which one should I change?
> 
> 
> 
> 
> 
> *Mike Oliver** Founder**, Open 4 Business Online*
> Tel: +1(951)260-0793 | Mobile:**NEW* 639479927462
> US Toll free: 1-800-985-4766 **NEW*
> http://www.o4bo.com
> Mas marunong akong umunawa ng salitang tagalog kaysa magkapagsalita nito
> [image: Facebook]
> <http://www.facebook.com/pages/Open-4-Business-Online/147285608707176> [image:
> Twitter] <https://twitter.com/O4BO> [image: LinkedIn]
> <http://ph.linkedin.com/pub/mike-oliver/0/1b9/197> [image: AngelList]
> <https://angel.co/open-4-business-online/> [image: Blogger]
> <http://blog.open4businessonline.com/> [image: eBay]
> <http://www.store.o4bo.com/servlet/StoreFront> [image: YouTube]
> <http://www.youtube.com/channel/UCruaIEFosh9uvfkQCq7mtKw> [image: Google
> Plus Page] <https://plus.google.com/113688478700619104336/posts>
> Contact me: [image: Google Talk] mikeolive...@open4businessonline.com [image:
> Skype] MikeOliverAZ

Reply via email to