You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2016/04/07 14:06:25 UTC
[jira] [Resolved] (AXIS2-5754) axis2-wsdl2code-maven-plugin creates
invalid sources
[ https://issues.apache.org/jira/browse/AXIS2-5754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved AXIS2-5754.
------------------------------------
Resolution: Not A Problem
In Axis2 1.7.x, ADBDataSource is no longer abstract:
https://axis.apache.org/axis2/java/core/apidocs/org/apache/axis2/databinding/ADBDataSource.html
If you are getting a compilation error, it's because you are compiling with an older version (1.6.x or below) of Axis2.
> 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: onlineService.zip
>
>
> 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