axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Knüppel (JIRA) <j...@apache.org>
Subject [jira] [Updated] (AXIS2-5754) axis2-wsdl2code-maven-plugin creates invalid sources
Date Fri, 08 Apr 2016 06:26:25 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-5754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pascal Knüppel updated AXIS2-5754:
----------------------------------
    Attachment: effective-pom.xml

sorry, forgot about the master. But it is only basic stuff in there. nothing special.
so here is the effective-pom

> axis2-wsdl2code-maven-plugin creates invalid sources
> ----------------------------------------------------
>
>                 Key: AXIS2-5754
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5754
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.7.1
>            Reporter: Pascal Knüppel
>            Priority: Blocker
>         Attachments: effective-pom.xml, onlineService.zip, pom.xml
>
>
> I configured my axis2-wsdl2code-maven-plugin like so
> {code:title=pom.xml|borderStyle=solid}
> <plugin>
>                 <groupId>org.apache.axis2</groupId>
>                 <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
>                 <version>${axis2-version}</version>
>                 <executions>
>                     <execution>
>                         <phase>generate-sources</phase>
>                         <goals>
>                             <goal>wsdl2code</goal>
>                         </goals>
>                         <configuration>
>                             <packageName>de.fiverx.steuerberater.ws.v1</packageName>
>                             <wsdlFile>etc/XML/WSDL/v1/SteuerberaterOnline.wsdl</wsdlFile>
>                             <databindingName>adb</databindingName>
>                             <generateServerSide>true</generateServerSide>
>                             <generateServerSideInterface>true</generateServerSideInterface>
>                             <generateServicesXml>true</generateServicesXml>
>                             <generateAllClasses>true</generateAllClasses>
>                             <namespaceToPackages>
>                                 http://ws.gfi-bremen.de/SteuerberaterOnline/v1=de.fiverx.steuerberater.gfi_bremen.v1,http://ws.gfi-bremen.de/online/services/SteuerberaterOnline/v1=de.fiverx.steuerberater.gfi_bremen.v1,http://ws.gfi-bremen.de/types/v1=de.fiverx.steuerberater.gfi_bremen,http://fiverx.de/spec/abrechnungsservice=de.fiverx.steuerberater.spec.abrechnungsservice
>                             </namespaceToPackages>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
> {code}
> the result is, that the plugin is generating sources that do not compile. For example:
> {code:title= Pw_type1.java|borderStyle=solid}
> {color:red}public class Pw_type1 implements org.apache.axis2.databinding.ADBBean {color}{
>        ...
>       /**
>      *
>      * @param parentQName
>      * @param factory
>      * @return org.apache.axiom.om.OMElement
>      */
>     public org.apache.axiom.om.OMElement getOMElement(
>         final javax.xml.namespace.QName parentQName,
>         final org.apache.axiom.om.OMFactory factory)
>         throws org.apache.axis2.databinding.ADBException {
>         return {color:red}factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(
>                 this, MY_QNAME));{color}
>     }
>     ...
> }
> {code}
> the lines "that I unfortunately could not get red" are invalid since org.apache.axis2.databinding.ADBDataSource
is an abstract class and the generated class *Pw_type1* does not implement the abstract methods.
Also is it trying to directly instantiate the abstract class. 
> Or am I doing something really stupid here that is causing this problem?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message