cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-3023) WSDL2Java with Xmlbeans, wrong classpath
Date Wed, 25 May 2011 19:23:47 GMT

    [ https://issues.apache.org/jira/browse/CXF-3023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039292#comment-13039292
] 

Daniel Kulp commented on CXF-3023:
----------------------------------

Any chance to get a testcase?   That error is caused by not being able to find the schema
type for a message part.    I'm really not sure why that would happen without a wsdl/test
case.



> WSDL2Java with Xmlbeans, wrong classpath
> ----------------------------------------
>
>                 Key: CXF-3023
>                 URL: https://issues.apache.org/jira/browse/CXF-3023
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.2.10
>            Reporter: S├ębastien
>             Fix For: NeedMoreInfo
>
>         Attachments: Bank.wsdl, stack-trace-xbean.txt, stack-trace-xmlbeans-classpath.txt
>
>
> I'm trying to generate Java stubs from WSDL. With JAXB the created code is working fine.
 So, clients generated from WSDL files can connect to web services.
> The configuration of the JAXB generator is:
> {code}
>             <plugin>
>                 <groupId>org.apache.cxf</groupId>
>                 <artifactId>cxf-codegen-plugin</artifactId>
>                 <version>${cxf-version}</version>
>                 <executions>
>                     <execution>
>                         <id>generate-sources</id>
>                         <phase>generate-sources</phase>
>                         <configuration>
>                             <wsdlRoot>${basedir}/src/main/wsdl</wsdlRoot>
>                             <includes>
>                                 <include>*.wsdl</include>
>                             </includes>
>                         </configuration>
>                         <goals>
>                             <goal>wsdl2java</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> {code}
> When I use Xmlbeans instead of JAXB, the source generation succeed,  but once unit tests
are running I got the following exception:
> {code}
> Caused by: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.s14C5C2D1E1AB170E2BDAA0B2E05EA32B.TypeSystemHolder
> {code}
> The plugin configuration is the same (I've also tried to remove the <phase> markup):
> {code}
>             <plugin>
>                 <groupId>org.apache.cxf</groupId>
>                 <artifactId>cxf-codegen-plugin</artifactId>
>                 <version>${cxf-version}</version>
>                 <executions>
>                     <execution>
>                         <id>generate-sources</id>
>                         <phase>generate-sources</phase>
>                         <configuration>
>                             <defaultOptions>
>                                 <extraargs>
>                                     <!-- look at -->
>                                     <!-- http://cxf.apache.org/docs/wsdl-to-java.html
-->
>                                     <extraarg>-db</extraarg>
>                                     <extraarg>xmlbeans</extraarg>
>                                 </extraargs>
>                             </defaultOptions>
>                             <wsdlRoot>${basedir}/src/main/wsdl</wsdlRoot>
>                             <includes>
>                                 <include>*.wsdl</include>
>                             </includes>
>                         </configuration>
>                         <goals>
>                             <goal>wsdl2java</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> {code}
> If there is something wrong during the generation, the generation should say something?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message