cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-3778) cxf-wadl2java-plugin (maven) does not generate an implementing service-class, neither with <impl>true</impl> nor with <extraarg>-impl</extraarg>
Date Thu, 22 Sep 2011 16:53:27 GMT

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

Sergey Beryozkin commented on CXF-3778:
---------------------------------------

This test project works for me on Windows, I added an <interface>true</interface>
switch to pom.xml:

 Directory of C:\Work\apache\test\rest-test\rest-test\target\generated-sources\c
xf-rs\rest\test\service

22/09/2011  17:44    <DIR>          .
22/09/2011  17:44    <DIR>          ..
22/09/2011  17:44               397 TestResource.java
22/09/2011  17:44               316 TestResourceImpl.java
               2 File(s)            713 bytes

I'm going to close as Can't Reproduce; let ne know please if you might be able to debug the
plugin/generator, it's very easy. Just download the source, run maven in a suspended debug
mode, and put a breakpoint in a class called JAXRSContainer, that will tell you if flags are
set propery or not... It seems that for whatever reasons, one of the switches is being lost
in your win env, so only you can help to find where the problem is :-)
thanks 



> 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, rest-test.zip
>
>
> 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

        

Mime
View raw message