You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2011/09/13 14:01:09 UTC

[jira] [Issue Comment Edited] (CXF-3778) cxf-wadl2java-plugin (maven) does not generate an implementing service-class, neither with true nor with -impl

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

Sergey Beryozkin edited comment on CXF-3778 at 9/13/11 11:59 AM:
-----------------------------------------------------------------

Can you please attach a sample Maven project ? I'll try it on Windows.

Also, is there any chance that you can do the following:
1. svn co http://svn.apache.org/repos/asf/cxf/trunk cxf  
2. cd cxf
3. mvn install -Pfastinstall
4. cd systests/jaxrs
5. Add an '-impl' flag in the pom.xml and do
6. mvn generate-sources ?

It appears some subtle issue exists - so if you can confirm on your side that say it works when building the CXF source and I can confirm that the test project works on Windows then it'd point out to either
your windows env or to the possible fact that the wadltojava dependencies are not complete which is hidden when building the CXF source...  


      was (Author: sergey_beryozkin):
    Can you please attach a sample Maven project ? I'll try it on Windows.

Also, is there any chance that you can do the following:
1. svn co http://svn.apache.org/repos/asf/cxf/trunk cxf  
2. cd cxf
3. mvn install -Pfastinstall
4. cd systests/jaxrs
5. Add an '-impl' flag in the pom.xml and do
6. mvn generate-sources ?

It appears some subtle issue exists - so if you can confirm on your side that say it works when building the CXF source and I can confirm that the test project works form then it'd point out to either
your windows env or to the possible fact that the wadltojava dependencies are not complete which is hidden when building the CXF source...  

  
> cxf-wadl2java-plugin (maven) does not generate an implementing service-class, neither with <impl>true</impl> nor with <extraarg>-impl</extraarg>
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-3778
>                 URL: https://issues.apache.org/jira/browse/CXF-3778
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.4.1, 2.4.2
>         Environment: Maven 3.0-SNAPSHOT
> Oracle Java jdk1.6_24
>            Reporter: Oliver Jelinski
>         Attachments: RestTestService.wadl, RestTestService.xsd
>
>
> cxf-wadl2java-plugin (maven) does not generate an implementing service-class, neither with <impl>true</true> nor with <extraarg>-impl</extraarg>.
> For example with these declarations:
> ...
>   <properties>
>     <cxf.version>2.4.2</cxf.version>
>   </properties>
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.cxf</groupId>
>       <artifactId>cxf-rt-frontend-jaxrs</artifactId>
>       <version>${cxf.version}</version>
>     </dependency>
>   </dependencies>
> ...
>             <plugin>
>                 <groupId>org.apache.cxf</groupId>
>                 <artifactId>cxf-wadl2java-plugin</artifactId>
>                 <version>${cxf.version}</version>
>                 <executions>
>                     <execution>
>                         <id>generate-sources</id>
>                         <phase>generate-sources</phase>
>                         <configuration>
>                             <sourceRoot>${basedir}/target/generated-sources/cxf-rs</sourceRoot>
>                             <wadlOptions>
>                                 <wadlOption>
>                                     <wadl>${basedir}/src/main/resources/wadl/RestTestService.wadl</wadl>
> 					                <extraargs>
> 					                    <extraarg>-impl</extraarg>
> 					                    <extraarg>-interface</extraarg>
> 					                    <extraarg>-verbose</extraarg>
> 					                </extraargs>
>                                     
>                                     <packagename>rest.test.service</packagename>
>                                     <schemaPackagenames>
>                                        <schemaPackagename>http://example.com/rest-test=rest.test.types</schemaPackagename>
>                                     </schemaPackagenames>
>                                     
>                                 </wadlOption>
>                             </wadlOptions>
>                         </configuration>
>                         <goals>
>                             <goal>wadl2java</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> ...
> Build is sucessful, the interface is generated, as well as the xml-types, but the impl class isn't.

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