You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Philip Schlesinger (JIRA)" <ji...@apache.org> on 2008/06/26 23:37:45 UTC
[jira] Created: (CXF-1672) CXF codegen plugin creating classes with
references to defunct JAXB AccessorOrder class
CXF codegen plugin creating classes with references to defunct JAXB AccessorOrder class
---------------------------------------------------------------------------------------
Key: CXF-1672
URL: https://issues.apache.org/jira/browse/CXF-1672
Project: CXF
Issue Type: Bug
Components: JAXB Databinding, WS-* Components
Affects Versions: 2.0.7, 2.1.1, 2.0.6, 2.1
Environment: Kubuntu 7.10, Eclipse 3.3.2, IndexStock WSDL, Maven 2.0.9, Java version: 1.5.0_13, OS name: "linux" version: "2.6.22-15-generic" arch: "i386", SpringFramework 2.5.4 (except spring-remoting, which is 2.0.8 because it apparently hasn't been caught up), CXF 2.1.1
Reporter: Philip Schlesinger
Hi all - hoping you can help on this one.
WSDL: http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
I'm generating sources with the CXF Maven plugin. mvn test ends up throwing an exception as it can't find the class javax/xml/bind/annotation/AccessorOrder - which apparently was released as part of jaxb-api 2.0EA3 but disappeared as soon as jaxb-api 2.0 was finalized. Full log will be attached to this post.
The 2.0EA3 class is available as part of the EOL'd Sun JWSDP, available here:
http://java.sun.com/webservices/downloads/previous/webservicespack.jsp
If you unpack the download and look through the jaxb-api.jar, you'll find the AccessorOrder class
However, as of 2.0 release, it's now XMLAccessorOrder class. Meanwhile, maven's junit plugin is looking for AccessorOrder.
How do I fix this?
- Phil
JAXB dependencies:
{code}
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.0EA3</version>
</dependency>
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>2.0EA3</version>
</dependency>
{code}
Exclusions for each of the CXF dependencies in the pom because I com.sun.* makes things fail:
{code}
<exclusions>
<exclusion>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-xjc</artifactId>
</exclusion>
</exclusions>
{code|
codegen plugin:
{code}
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>2.1.1</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>
${basedir}/target/generated/src/main/java
</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>
http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
</wsdl>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (CXF-1672) CXF codegen plugin creating classes with
references to defunct JAXB AccessorOrder class
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp closed CXF-1672.
----------------------------
Resolution: Invalid
Fix Version/s: Invalid
JAXB version mis-match issue.
> CXF codegen plugin creating classes with references to defunct JAXB AccessorOrder class
> ---------------------------------------------------------------------------------------
>
> Key: CXF-1672
> URL: https://issues.apache.org/jira/browse/CXF-1672
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding, WS-* Components
> Affects Versions: 2.1, 2.0.6, 2.1.1, 2.0.7
> Environment: Kubuntu 7.10, Eclipse 3.3.2, IndexStock WSDL, Maven 2.0.9, Java version: 1.5.0_13, OS name: "linux" version: "2.6.22-15-generic" arch: "i386", SpringFramework 2.5.4 (except spring-remoting, which is 2.0.8 because it apparently hasn't been caught up), CXF 2.1.1
> Reporter: Philip Schlesinger
> Fix For: Invalid
>
> Attachments: log.txt
>
>
> Hi all - hoping you can help on this one.
> WSDL: http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> I'm generating sources with the CXF Maven plugin. mvn test ends up throwing an exception as it can't find the class javax/xml/bind/annotation/AccessorOrder - which apparently was released as part of jaxb-api 2.0EA3 but disappeared as soon as jaxb-api 2.0 was finalized. Full log will be attached to this post.
> The 2.0EA3 class is available as part of the EOL'd Sun JWSDP, available here:
> http://java.sun.com/webservices/downloads/previous/webservicespack.jsp
> If you unpack the download and look through the jaxb-api.jar, you'll find the AccessorOrder class
> However, as of 2.0 release, it's now XMLAccessorOrder class. Meanwhile, maven's junit plugin is looking for AccessorOrder.
> How do I fix this?
> - Phil
> JAXB dependencies:
> {code}
> <dependency>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>2.1</version>
> </dependency>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-impl</artifactId>
> <version>2.0EA3</version>
> </dependency>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-xjc</artifactId>
> <version>2.0EA3</version>
> </dependency>
> {code}
> Exclusions for each of the CXF dependencies in the pom because I com.sun.* makes things fail:
> {code}
> <exclusions>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-impl</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-xjc</artifactId>
> </exclusion>
> </exclusions>
> {code|
> codegen plugin:
> {code}
> <plugin>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-codegen-plugin</artifactId>
> <version>2.1.1</version>
> <executions>
> <execution>
> <id>generate-sources</id>
> <phase>generate-sources</phase>
> <configuration>
> <sourceRoot>
> ${basedir}/target/generated/src/main/java
> </sourceRoot>
> <wsdlOptions>
> <wsdlOption>
> <wsdl>
> http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> </wsdl>
> </wsdlOption>
> </wsdlOptions>
> </configuration>
> <goals>
> <goal>wsdl2java</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (CXF-1672) CXF codegen plugin creating
classes with references to defunct JAXB AccessorOrder class
Posted by "Philip Schlesinger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608659#action_12608659 ]
theschles edited comment on CXF-1672 at 6/26/08 10:33 PM:
-------------------------------------------------------------------
Hi Daniel,
The only available versions listed by mvnrepository.com for javax.xml:jaxb-xjc and javax.xml:jaxb-impl are 2.0EA3 and 1.0.5. 1.0.5 appears to have disappeared off the 'net, so I've been using 2.0EA3 rather than manually add the jars for jaxb 2.1.7.
was (Author: theschles):
Hi Daniel,
mvnrepository.com only shows javax.xml:jaxb-xjc and javax.xml:jaxb-impl 2.0EA3 and 1.0.5 as "public" (for lack of a better term) versions. 1.0.5 is nowhere to be found.
> CXF codegen plugin creating classes with references to defunct JAXB AccessorOrder class
> ---------------------------------------------------------------------------------------
>
> Key: CXF-1672
> URL: https://issues.apache.org/jira/browse/CXF-1672
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding, WS-* Components
> Affects Versions: 2.1, 2.0.6, 2.1.1, 2.0.7
> Environment: Kubuntu 7.10, Eclipse 3.3.2, IndexStock WSDL, Maven 2.0.9, Java version: 1.5.0_13, OS name: "linux" version: "2.6.22-15-generic" arch: "i386", SpringFramework 2.5.4 (except spring-remoting, which is 2.0.8 because it apparently hasn't been caught up), CXF 2.1.1
> Reporter: Philip Schlesinger
> Attachments: log.txt
>
>
> Hi all - hoping you can help on this one.
> WSDL: http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> I'm generating sources with the CXF Maven plugin. mvn test ends up throwing an exception as it can't find the class javax/xml/bind/annotation/AccessorOrder - which apparently was released as part of jaxb-api 2.0EA3 but disappeared as soon as jaxb-api 2.0 was finalized. Full log will be attached to this post.
> The 2.0EA3 class is available as part of the EOL'd Sun JWSDP, available here:
> http://java.sun.com/webservices/downloads/previous/webservicespack.jsp
> If you unpack the download and look through the jaxb-api.jar, you'll find the AccessorOrder class
> However, as of 2.0 release, it's now XMLAccessorOrder class. Meanwhile, maven's junit plugin is looking for AccessorOrder.
> How do I fix this?
> - Phil
> JAXB dependencies:
> {code}
> <dependency>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>2.1</version>
> </dependency>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-impl</artifactId>
> <version>2.0EA3</version>
> </dependency>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-xjc</artifactId>
> <version>2.0EA3</version>
> </dependency>
> {code}
> Exclusions for each of the CXF dependencies in the pom because I com.sun.* makes things fail:
> {code}
> <exclusions>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-impl</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-xjc</artifactId>
> </exclusion>
> </exclusions>
> {code|
> codegen plugin:
> {code}
> <plugin>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-codegen-plugin</artifactId>
> <version>2.1.1</version>
> <executions>
> <execution>
> <id>generate-sources</id>
> <phase>generate-sources</phase>
> <configuration>
> <sourceRoot>
> ${basedir}/target/generated/src/main/java
> </sourceRoot>
> <wsdlOptions>
> <wsdlOption>
> <wsdl>
> http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> </wsdl>
> </wsdlOption>
> </wsdlOptions>
> </configuration>
> <goals>
> <goal>wsdl2java</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-1672) CXF codegen plugin creating classes with
references to defunct JAXB AccessorOrder class
Posted by "Philip Schlesinger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Philip Schlesinger updated CXF-1672:
------------------------------------
Attachment: log.txt
> CXF codegen plugin creating classes with references to defunct JAXB AccessorOrder class
> ---------------------------------------------------------------------------------------
>
> Key: CXF-1672
> URL: https://issues.apache.org/jira/browse/CXF-1672
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding, WS-* Components
> Affects Versions: 2.1, 2.0.6, 2.1.1, 2.0.7
> Environment: Kubuntu 7.10, Eclipse 3.3.2, IndexStock WSDL, Maven 2.0.9, Java version: 1.5.0_13, OS name: "linux" version: "2.6.22-15-generic" arch: "i386", SpringFramework 2.5.4 (except spring-remoting, which is 2.0.8 because it apparently hasn't been caught up), CXF 2.1.1
> Reporter: Philip Schlesinger
> Attachments: log.txt
>
>
> Hi all - hoping you can help on this one.
> WSDL: http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> I'm generating sources with the CXF Maven plugin. mvn test ends up throwing an exception as it can't find the class javax/xml/bind/annotation/AccessorOrder - which apparently was released as part of jaxb-api 2.0EA3 but disappeared as soon as jaxb-api 2.0 was finalized. Full log will be attached to this post.
> The 2.0EA3 class is available as part of the EOL'd Sun JWSDP, available here:
> http://java.sun.com/webservices/downloads/previous/webservicespack.jsp
> If you unpack the download and look through the jaxb-api.jar, you'll find the AccessorOrder class
> However, as of 2.0 release, it's now XMLAccessorOrder class. Meanwhile, maven's junit plugin is looking for AccessorOrder.
> How do I fix this?
> - Phil
> JAXB dependencies:
> {code}
> <dependency>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>2.1</version>
> </dependency>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-impl</artifactId>
> <version>2.0EA3</version>
> </dependency>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-xjc</artifactId>
> <version>2.0EA3</version>
> </dependency>
> {code}
> Exclusions for each of the CXF dependencies in the pom because I com.sun.* makes things fail:
> {code}
> <exclusions>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-impl</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-xjc</artifactId>
> </exclusion>
> </exclusions>
> {code|
> codegen plugin:
> {code}
> <plugin>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-codegen-plugin</artifactId>
> <version>2.1.1</version>
> <executions>
> <execution>
> <id>generate-sources</id>
> <phase>generate-sources</phase>
> <configuration>
> <sourceRoot>
> ${basedir}/target/generated/src/main/java
> </sourceRoot>
> <wsdlOptions>
> <wsdlOption>
> <wsdl>
> http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> </wsdl>
> </wsdlOption>
> </wsdlOptions>
> </configuration>
> <goals>
> <goal>wsdl2java</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-1672) CXF codegen plugin creating classes
with references to defunct JAXB AccessorOrder class
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608639#action_12608639 ]
Daniel Kulp commented on CXF-1672:
----------------------------------
Why are you depending on the 2.0EA3 version of xjc? That version of xjc will generate code for the 2.0EA3 version of the runtime and API's. You should depend on the full released versions of jaxb-xjc, jaxb-api, and jaxb-impl.
> CXF codegen plugin creating classes with references to defunct JAXB AccessorOrder class
> ---------------------------------------------------------------------------------------
>
> Key: CXF-1672
> URL: https://issues.apache.org/jira/browse/CXF-1672
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding, WS-* Components
> Affects Versions: 2.1, 2.0.6, 2.1.1, 2.0.7
> Environment: Kubuntu 7.10, Eclipse 3.3.2, IndexStock WSDL, Maven 2.0.9, Java version: 1.5.0_13, OS name: "linux" version: "2.6.22-15-generic" arch: "i386", SpringFramework 2.5.4 (except spring-remoting, which is 2.0.8 because it apparently hasn't been caught up), CXF 2.1.1
> Reporter: Philip Schlesinger
> Attachments: log.txt
>
>
> Hi all - hoping you can help on this one.
> WSDL: http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> I'm generating sources with the CXF Maven plugin. mvn test ends up throwing an exception as it can't find the class javax/xml/bind/annotation/AccessorOrder - which apparently was released as part of jaxb-api 2.0EA3 but disappeared as soon as jaxb-api 2.0 was finalized. Full log will be attached to this post.
> The 2.0EA3 class is available as part of the EOL'd Sun JWSDP, available here:
> http://java.sun.com/webservices/downloads/previous/webservicespack.jsp
> If you unpack the download and look through the jaxb-api.jar, you'll find the AccessorOrder class
> However, as of 2.0 release, it's now XMLAccessorOrder class. Meanwhile, maven's junit plugin is looking for AccessorOrder.
> How do I fix this?
> - Phil
> JAXB dependencies:
> {code}
> <dependency>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>2.1</version>
> </dependency>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-impl</artifactId>
> <version>2.0EA3</version>
> </dependency>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-xjc</artifactId>
> <version>2.0EA3</version>
> </dependency>
> {code}
> Exclusions for each of the CXF dependencies in the pom because I com.sun.* makes things fail:
> {code}
> <exclusions>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-impl</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-xjc</artifactId>
> </exclusion>
> </exclusions>
> {code|
> codegen plugin:
> {code}
> <plugin>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-codegen-plugin</artifactId>
> <version>2.1.1</version>
> <executions>
> <execution>
> <id>generate-sources</id>
> <phase>generate-sources</phase>
> <configuration>
> <sourceRoot>
> ${basedir}/target/generated/src/main/java
> </sourceRoot>
> <wsdlOptions>
> <wsdlOption>
> <wsdl>
> http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> </wsdl>
> </wsdlOption>
> </wsdlOptions>
> </configuration>
> <goals>
> <goal>wsdl2java</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-1672) CXF codegen plugin creating classes
with references to defunct JAXB AccessorOrder class
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608840#action_12608840 ]
Daniel Kulp commented on CXF-1672:
----------------------------------
You would need to add the java.net repository:
<repositories>
<repository>
<id>java.net</id>
<name>java.net Maven Repository</name>
<url>http://download.java.net/maven/1/</url>
<layout>legacy</layout>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
> CXF codegen plugin creating classes with references to defunct JAXB AccessorOrder class
> ---------------------------------------------------------------------------------------
>
> Key: CXF-1672
> URL: https://issues.apache.org/jira/browse/CXF-1672
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding, WS-* Components
> Affects Versions: 2.1, 2.0.6, 2.1.1, 2.0.7
> Environment: Kubuntu 7.10, Eclipse 3.3.2, IndexStock WSDL, Maven 2.0.9, Java version: 1.5.0_13, OS name: "linux" version: "2.6.22-15-generic" arch: "i386", SpringFramework 2.5.4 (except spring-remoting, which is 2.0.8 because it apparently hasn't been caught up), CXF 2.1.1
> Reporter: Philip Schlesinger
> Attachments: log.txt
>
>
> Hi all - hoping you can help on this one.
> WSDL: http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> I'm generating sources with the CXF Maven plugin. mvn test ends up throwing an exception as it can't find the class javax/xml/bind/annotation/AccessorOrder - which apparently was released as part of jaxb-api 2.0EA3 but disappeared as soon as jaxb-api 2.0 was finalized. Full log will be attached to this post.
> The 2.0EA3 class is available as part of the EOL'd Sun JWSDP, available here:
> http://java.sun.com/webservices/downloads/previous/webservicespack.jsp
> If you unpack the download and look through the jaxb-api.jar, you'll find the AccessorOrder class
> However, as of 2.0 release, it's now XMLAccessorOrder class. Meanwhile, maven's junit plugin is looking for AccessorOrder.
> How do I fix this?
> - Phil
> JAXB dependencies:
> {code}
> <dependency>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>2.1</version>
> </dependency>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-impl</artifactId>
> <version>2.0EA3</version>
> </dependency>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-xjc</artifactId>
> <version>2.0EA3</version>
> </dependency>
> {code}
> Exclusions for each of the CXF dependencies in the pom because I com.sun.* makes things fail:
> {code}
> <exclusions>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-impl</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-xjc</artifactId>
> </exclusion>
> </exclusions>
> {code|
> codegen plugin:
> {code}
> <plugin>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-codegen-plugin</artifactId>
> <version>2.1.1</version>
> <executions>
> <execution>
> <id>generate-sources</id>
> <phase>generate-sources</phase>
> <configuration>
> <sourceRoot>
> ${basedir}/target/generated/src/main/java
> </sourceRoot>
> <wsdlOptions>
> <wsdlOption>
> <wsdl>
> http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> </wsdl>
> </wsdlOption>
> </wsdlOptions>
> </configuration>
> <goals>
> <goal>wsdl2java</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-1672) CXF codegen plugin creating classes
with references to defunct JAXB AccessorOrder class
Posted by "Philip Schlesinger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608659#action_12608659 ]
Philip Schlesinger commented on CXF-1672:
-----------------------------------------
Hi Daniel,
mvnrepository.com only shows javax.xml:jaxb-xjc and javax.xml:jaxb-impl 2.0EA3 and 1.0.5 as "public" (for lack of a better term) versions. 1.0.5 is nowhere to be found.
> CXF codegen plugin creating classes with references to defunct JAXB AccessorOrder class
> ---------------------------------------------------------------------------------------
>
> Key: CXF-1672
> URL: https://issues.apache.org/jira/browse/CXF-1672
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding, WS-* Components
> Affects Versions: 2.1, 2.0.6, 2.1.1, 2.0.7
> Environment: Kubuntu 7.10, Eclipse 3.3.2, IndexStock WSDL, Maven 2.0.9, Java version: 1.5.0_13, OS name: "linux" version: "2.6.22-15-generic" arch: "i386", SpringFramework 2.5.4 (except spring-remoting, which is 2.0.8 because it apparently hasn't been caught up), CXF 2.1.1
> Reporter: Philip Schlesinger
> Attachments: log.txt
>
>
> Hi all - hoping you can help on this one.
> WSDL: http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> I'm generating sources with the CXF Maven plugin. mvn test ends up throwing an exception as it can't find the class javax/xml/bind/annotation/AccessorOrder - which apparently was released as part of jaxb-api 2.0EA3 but disappeared as soon as jaxb-api 2.0 was finalized. Full log will be attached to this post.
> The 2.0EA3 class is available as part of the EOL'd Sun JWSDP, available here:
> http://java.sun.com/webservices/downloads/previous/webservicespack.jsp
> If you unpack the download and look through the jaxb-api.jar, you'll find the AccessorOrder class
> However, as of 2.0 release, it's now XMLAccessorOrder class. Meanwhile, maven's junit plugin is looking for AccessorOrder.
> How do I fix this?
> - Phil
> JAXB dependencies:
> {code}
> <dependency>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>2.1</version>
> </dependency>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-impl</artifactId>
> <version>2.0EA3</version>
> </dependency>
> <dependency>
> <groupId>javax.xml</groupId>
> <artifactId>jaxb-xjc</artifactId>
> <version>2.0EA3</version>
> </dependency>
> {code}
> Exclusions for each of the CXF dependencies in the pom because I com.sun.* makes things fail:
> {code}
> <exclusions>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-impl</artifactId>
> </exclusion>
> <exclusion>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-xjc</artifactId>
> </exclusion>
> </exclusions>
> {code|
> codegen plugin:
> {code}
> <plugin>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-codegen-plugin</artifactId>
> <version>2.1.1</version>
> <executions>
> <execution>
> <id>generate-sources</id>
> <phase>generate-sources</phase>
> <configuration>
> <sourceRoot>
> ${basedir}/target/generated/src/main/java
> </sourceRoot>
> <wsdlOptions>
> <wsdlOption>
> <wsdl>
> http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> </wsdl>
> </wsdlOption>
> </wsdlOptions>
> </configuration>
> <goals>
> <goal>wsdl2java</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.