axis2-wsdl2code maven plugin throws exception when generating code
Here is my configuration section for the plugin. When I generate the code for the first time, everything is fine. But after that every time fails with the exception shown below. And the service.xml is wiped out. How can I fix this and move forward? plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.5.1/version executions execution goals goalwsdl2code/goal /goals phaseno/phase configuration packageNamecom.mfino.soap/packageName wsdlFile${basedir}/src/main/resources/UTKService.wsdl/wsdlFile databindingNameadb/databindingName generateAllClassesfalse/generateAllClasses generateServerSidetrue/generateServerSide generateServerSideInterfacetrue/generateServerSideInterface generateServicesXmltrue/generateServicesXml generateTestcasetrue/generateTestcase outputDirectorysrc/main/outputDirectory targetSourceFolderLocationjava/targetSourceFolderLocation targetResourcesFolderLocationresources/targetResourcesFolderLocation !-- portName/portName serviceName/serviceName -- syncModeboth/syncMode overWritetrue/overWrite skipBuildXMLtrue/skipBuildXML skipWSDLtrue/skipWSDL unpackClassestrue/unpackClasses /configuration /execution /executions /plugin Retrieving document at 'C:\xxx/src/main/resources/UTKService.wsdl'. Dec 13, 2009 11:07:00 PM org.apache.axis2.util.XMLPrettyPrinter$1 fatalError SEVERE: Exception occurred while trying to pretty print file C:\xxx\src\main\resources\services.xml ; Line#: 1; Column#: 1 javax.xml.transform.TransformerException: Premature end of file. at org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerImpl.java:780) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:756) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262) at org.apache.axis2.util.XMLPrettyPrinter.prettify(XMLPrettyPrinter.java:84) at org.apache.axis2.wsdl.codegen.extension.XMLPrettyPrinterExtension.prettifyFile(XMLPrettyPrinterExtension.java:39) at org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.prettify(AbstractPrettyPrinterExtension.java:53) at org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.engage(AbstractPrettyPrinterExtension.java:37) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:558) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149) at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223) at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176) at org.apache.maven.cli.MavenCli.main(MavenCli.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
RE: Problem running axis2-wsdl2code-maven-plugin
Hi Joen, Can you take a look at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-plugin-api\2.0.7\maven-plugin-api-2.0.7.pom? Maven was complaining about this POM being invalid so I wonder why/what about it is invalid? The http://ws.zones.apache.org/repository2 repository is configured in the axis2-parent POM. I think what is happening is that since v2.0.7 of the maven-plugin-api appears to be invalid, maven is trying to redownload it and is looking in all known repositories for the artifact (including the ones mentioned in the axis2-parent POM). You might be able to get maven to try and grab it out of the central repository first by adding it as a dependency in your project's POM, above the Axis2 dependencies. Or just try manually overwriting your existing maven-plugin-api-2.0.7.pom with the one in the maven central repository? Hope this helps, Sean -Original Message- From: Joselito D. Moreno [mailto:joenmor...@gmail.com] Sent: Tuesday, November 17, 2009 10:03 AM To: axis-user@ws.apache.org Subject: Re: Problem running axis2-wsdl2code-maven-plugin Hi Sean, Using the workaround mentioned in that JIRA issue, the first error I am getting (one of many) is this: [DEBUG] Connecting to repository: 'apache-ws-snapshots2' with url: 'http://ws.zones.apache.org/repository2'. Downloading: http://ws.zones.apache.org/repository2/org/apache/maven/maven-plugin-api/2.0.7/maven-plugin-api-2.0.7.pom [DEBUG] Access denied to: http://ws.zones.apache.org/repository2/org/apache/maven/maven-plugin-api/2.0.7/maven-plugin-api-2.0.7.pom org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://ws.zones.apache.org/repository2/org/apache/maven/maven-plugin-api/2.0.7/maven-plugin-api-2.0.7.pom at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:119) at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) I do not understand why something is hosted on a website that gives me an Access Denied error? Is there nobody else seeing this issue? What is ws.zones.apache.org/repository2 anyway and why is it giving an Access Denied error? I'm confused. Joen PS Just to mention again, I am using Axis2 1.5.1, Eclipse Galileo, M2Eclipse, and Maven 2.2.1. Although I tried it just using Maven 2.2.1 from the command line (outside of eclipse) and it still failed. On Mon, Nov 16, 2009 at 4:04 PM, Parmelee,Sean sean.parme...@cerner.com wrote: I believe this is related to the issue mentioned here: https://issues.apache.org/jira/browse/AXIS2-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel You can try the workaround mentioned in the link to see if that corrects your issue. Thanks, Sean Parmelee -Original Message- From: Joselito D. Moreno [mailto:joenmor...@gmail.com] Sent: Saturday, November 14, 2009 3:22 PM To: axis-user@ws.apache.org Subject: Problem running axis2-wsdl2code-maven-plugin Hello, I do not know if this is the correct mailing list to ask about the axis2 wsdl2code maven plugin so please let me know and point me to the correct one. I have followed the instructions here http://ws.apache.org/axis2/tools/1_4/maven-plugins/maven-wsdl2code-plugin.html with no luck. When I run maven clean install on my pom.xml, there seems to be issues with downloading process of the axis2-wsdl2code-maven-plugin. Below is the console log I am seeing when I run. I have tried everything I could. I ran it using Eclipse Galileo + m2eclipse, Netbeans 6.5.1. I have tried Maven 2.0.10 and 2.2.1. I tried switching the axis2 and axis2-wsdl2code-maven-plugin versions to 1.4, 1.4.1, 1.5, 1.5.1. I have added the dependency: dependency groupIdorg.apache.axis2/groupId artifactIdaxis2/artifactId version1.5.1/version /dependency And the plugin setting: plugins plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.5.1/version executions execution goals goalwsdl2code/goal /goals configuration packageNamecom.foo.myservice/packageName wsdlFilesrc/main/wsdl/myservice.wsdl/wsdlFile databindingNamexmlbeans/databindingName /configuration /execution /executions /plugin /plugins Has anybody come across this issue? Thanks, Joen Moreno Here
Re: Problem running axis2-wsdl2code-maven-plugin
Hello Sean, Thanks for the tip but that didn't work. And it does not seem to match the errors I'm seeing. Anybody else seeing the issue I mentioned? Joen On Mon, Nov 16, 2009 at 4:04 PM, Parmelee,Sean sean.parme...@cerner.com wrote: I believe this is related to the issue mentioned here: https://issues.apache.org/jira/browse/AXIS2-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel You can try the workaround mentioned in the link to see if that corrects your issue. Thanks, Sean Parmelee -Original Message- From: Joselito D. Moreno [mailto:joenmor...@gmail.com] Sent: Saturday, November 14, 2009 3:22 PM To: axis-user@ws.apache.org Subject: Problem running axis2-wsdl2code-maven-plugin Hello, I do not know if this is the correct mailing list to ask about the axis2 wsdl2code maven plugin so please let me know and point me to the correct one. I have followed the instructions here http://ws.apache.org/axis2/tools/1_4/maven-plugins/maven-wsdl2code-plugin.html with no luck. When I run maven clean install on my pom.xml, there seems to be issues with downloading process of the axis2-wsdl2code-maven-plugin. Below is the console log I am seeing when I run. I have tried everything I could. I ran it using Eclipse Galileo + m2eclipse, Netbeans 6.5.1. I have tried Maven 2.0.10 and 2.2.1. I tried switching the axis2 and axis2-wsdl2code-maven-plugin versions to 1.4, 1.4.1, 1.5, 1.5.1. I have added the dependency: dependency groupIdorg.apache.axis2/groupId artifactIdaxis2/artifactId version1.5.1/version /dependency And the plugin setting: plugins plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.5.1/version executions execution goals goalwsdl2code/goal /goals configuration packageNamecom.foo.myservice/packageName wsdlFilesrc/main/wsdl/myservice.wsdl/wsdlFile databindingNamexmlbeans/databindingName /configuration /execution /executions /plugin /plugins Has anybody come across this issue? Thanks, Joen Moreno Here is the log: NetBeans: Executing 'C:\apache-maven-2.0.10\bin\mvn.bat clean install' NetBeans: JAVA_HOME =C:\Program Files\Java\jdk1.6.0_13 Scanning for projects... Building DsdExampleWebServiceClientGenerator task-segment: [clean, install] Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.pom 855/? 3712/? 5479/? Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-parent/1.4/axis2-parent-1.4.pom 47984/? Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.jar 14634/? [clean:clean] Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.pom 11342/? Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.jar 2342330/? [WARNING] POM for 'org.apache.maven:maven-plugin-api:pom:2.0.7:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-plugin-api at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-plugin-api\2.0.7\maven-plugin-api-2.0.7.pom [WARNING] POM for 'org.apache.maven:maven-plugin-api:pom:2.0.7:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-plugin-api at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-plugin-api\2.0.7\maven-plugin-api-2.0.7.pom [WARNING] POM for 'org.apache.maven:maven-artifact:pom:2.0.8:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-artifact at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-artifact\2.0.8\maven-artifact-2.0.8.pom [WARNING] POM for 'org.apache.maven:maven-artifact:pom:2.0.8:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-artifact at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-artifact\2.0.8\maven-artifact-2.0.8.pom [WARNING] POM for 'org.apache.maven:maven
Re: Problem running axis2-wsdl2code-maven-plugin
Hi Sean, Using the workaround mentioned in that JIRA issue, the first error I am getting (one of many) is this: [DEBUG] Connecting to repository: 'apache-ws-snapshots2' with url: 'http://ws.zones.apache.org/repository2'. Downloading: http://ws.zones.apache.org/repository2/org/apache/maven/maven-plugin-api/2.0.7/maven-plugin-api-2.0.7.pom [DEBUG] Access denied to: http://ws.zones.apache.org/repository2/org/apache/maven/maven-plugin-api/2.0.7/maven-plugin-api-2.0.7.pom org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://ws.zones.apache.org/repository2/org/apache/maven/maven-plugin-api/2.0.7/maven-plugin-api-2.0.7.pom at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:119) at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) I do not understand why something is hosted on a website that gives me an Access Denied error? Is there nobody else seeing this issue? What is ws.zones.apache.org/repository2 anyway and why is it giving an Access Denied error? I'm confused. Joen PS Just to mention again, I am using Axis2 1.5.1, Eclipse Galileo, M2Eclipse, and Maven 2.2.1. Although I tried it just using Maven 2.2.1 from the command line (outside of eclipse) and it still failed. On Mon, Nov 16, 2009 at 4:04 PM, Parmelee,Sean sean.parme...@cerner.com wrote: I believe this is related to the issue mentioned here: https://issues.apache.org/jira/browse/AXIS2-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel You can try the workaround mentioned in the link to see if that corrects your issue. Thanks, Sean Parmelee -Original Message- From: Joselito D. Moreno [mailto:joenmor...@gmail.com] Sent: Saturday, November 14, 2009 3:22 PM To: axis-user@ws.apache.org Subject: Problem running axis2-wsdl2code-maven-plugin Hello, I do not know if this is the correct mailing list to ask about the axis2 wsdl2code maven plugin so please let me know and point me to the correct one. I have followed the instructions here http://ws.apache.org/axis2/tools/1_4/maven-plugins/maven-wsdl2code-plugin.html with no luck. When I run maven clean install on my pom.xml, there seems to be issues with downloading process of the axis2-wsdl2code-maven-plugin. Below is the console log I am seeing when I run. I have tried everything I could. I ran it using Eclipse Galileo + m2eclipse, Netbeans 6.5.1. I have tried Maven 2.0.10 and 2.2.1. I tried switching the axis2 and axis2-wsdl2code-maven-plugin versions to 1.4, 1.4.1, 1.5, 1.5.1. I have added the dependency: dependency groupIdorg.apache.axis2/groupId artifactIdaxis2/artifactId version1.5.1/version /dependency And the plugin setting: plugins plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.5.1/version executions execution goals goalwsdl2code/goal /goals configuration packageNamecom.foo.myservice/packageName wsdlFilesrc/main/wsdl/myservice.wsdl/wsdlFile databindingNamexmlbeans/databindingName /configuration /execution /executions /plugin /plugins Has anybody come across this issue? Thanks, Joen Moreno Here is the log: NetBeans: Executing 'C:\apache-maven-2.0.10\bin\mvn.bat clean install' NetBeans: JAVA_HOME =C:\Program Files\Java\jdk1.6.0_13 Scanning for projects... Building DsdExampleWebServiceClientGenerator task-segment: [clean, install] Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.pom 855/? 3712/? 5479/? Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-parent/1.4/axis2-parent-1.4.pom 47984/? Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.jar 14634/? [clean:clean] Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.pom 11342/? Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.jar 2342330/? [WARNING] POM for 'org.apache.maven:maven-plugin-api:pom:2.0.7:runtime' is invalid
RE: Problem running axis2-wsdl2code-maven-plugin
I believe this is related to the issue mentioned here: https://issues.apache.org/jira/browse/AXIS2-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel You can try the workaround mentioned in the link to see if that corrects your issue. Thanks, Sean Parmelee -Original Message- From: Joselito D. Moreno [mailto:joenmor...@gmail.com] Sent: Saturday, November 14, 2009 3:22 PM To: axis-user@ws.apache.org Subject: Problem running axis2-wsdl2code-maven-plugin Hello, I do not know if this is the correct mailing list to ask about the axis2 wsdl2code maven plugin so please let me know and point me to the correct one. I have followed the instructions here http://ws.apache.org/axis2/tools/1_4/maven-plugins/maven-wsdl2code-plugin.html with no luck. When I run maven clean install on my pom.xml, there seems to be issues with downloading process of the axis2-wsdl2code-maven-plugin. Below is the console log I am seeing when I run. I have tried everything I could. I ran it using Eclipse Galileo + m2eclipse, Netbeans 6.5.1. I have tried Maven 2.0.10 and 2.2.1. I tried switching the axis2 and axis2-wsdl2code-maven-plugin versions to 1.4, 1.4.1, 1.5, 1.5.1. I have added the dependency: dependency groupIdorg.apache.axis2/groupId artifactIdaxis2/artifactId version1.5.1/version /dependency And the plugin setting: plugins plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.5.1/version executions execution goals goalwsdl2code/goal /goals configuration packageNamecom.foo.myservice/packageName wsdlFilesrc/main/wsdl/myservice.wsdl/wsdlFile databindingNamexmlbeans/databindingName /configuration /execution /executions /plugin /plugins Has anybody come across this issue? Thanks, Joen Moreno Here is the log: NetBeans: Executing 'C:\apache-maven-2.0.10\bin\mvn.bat clean install' NetBeans: JAVA_HOME =C:\Program Files\Java\jdk1.6.0_13 Scanning for projects... Building DsdExampleWebServiceClientGenerator task-segment: [clean, install] Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.pom 855/? 3712/? 5479/? Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-parent/1.4/axis2-parent-1.4.pom 47984/? Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.jar 14634/? [clean:clean] Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.pom 11342/? Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.jar 2342330/? [WARNING] POM for 'org.apache.maven:maven-plugin-api:pom:2.0.7:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-plugin-api at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-plugin-api\2.0.7\maven-plugin-api-2.0.7.pom [WARNING] POM for 'org.apache.maven:maven-plugin-api:pom:2.0.7:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-plugin-api at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-plugin-api\2.0.7\maven-plugin-api-2.0.7.pom [WARNING] POM for 'org.apache.maven:maven-artifact:pom:2.0.8:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-artifact at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-artifact\2.0.8\maven-artifact-2.0.8.pom [WARNING] POM for 'org.apache.maven:maven-artifact:pom:2.0.8:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-artifact at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-artifact\2.0.8\maven-artifact-2.0.8.pom [WARNING] POM for 'org.apache.maven:maven-project:pom:2.0.7:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-project at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-project\2.0.7\maven-project-2.0.7.pom [WARNING] POM for 'org.apache.maven:maven-project:pom
Problem running axis2-wsdl2code-maven-plugin
Hello, I do not know if this is the correct mailing list to ask about the axis2 wsdl2code maven plugin so please let me know and point me to the correct one. I have followed the instructions here http://ws.apache.org/axis2/tools/1_4/maven-plugins/maven-wsdl2code-plugin.html with no luck. When I run maven clean install on my pom.xml, there seems to be issues with downloading process of the axis2-wsdl2code-maven-plugin. Below is the console log I am seeing when I run. I have tried everything I could. I ran it using Eclipse Galileo + m2eclipse, Netbeans 6.5.1. I have tried Maven 2.0.10 and 2.2.1. I tried switching the axis2 and axis2-wsdl2code-maven-plugin versions to 1.4, 1.4.1, 1.5, 1.5.1. I have added the dependency: dependency groupIdorg.apache.axis2/groupId artifactIdaxis2/artifactId version1.5.1/version /dependency And the plugin setting: plugins plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.5.1/version executions execution goals goalwsdl2code/goal /goals configuration packageNamecom.foo.myservice/packageName wsdlFilesrc/main/wsdl/myservice.wsdl/wsdlFile databindingNamexmlbeans/databindingName /configuration /execution /executions /plugin /plugins Has anybody come across this issue? Thanks, Joen Moreno Here is the log: NetBeans: Executing 'C:\apache-maven-2.0.10\bin\mvn.bat clean install' NetBeans: JAVA_HOME =C:\Program Files\Java\jdk1.6.0_13 Scanning for projects... Building DsdExampleWebServiceClientGenerator task-segment: [clean, install] Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.pom 855/? 3712/? 5479/? Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-parent/1.4/axis2-parent-1.4.pom 47984/? Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-wsdl2code-maven-plugin/1.4/axis2-wsdl2code-maven-plugin-1.4.jar 14634/? [clean:clean] Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.pom 11342/? Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2/1.5.1/axis2-1.5.1.jar 2342330/? [WARNING] POM for 'org.apache.maven:maven-plugin-api:pom:2.0.7:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-plugin-api at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-plugin-api\2.0.7\maven-plugin-api-2.0.7.pom [WARNING] POM for 'org.apache.maven:maven-plugin-api:pom:2.0.7:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-plugin-api at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-plugin-api\2.0.7\maven-plugin-api-2.0.7.pom [WARNING] POM for 'org.apache.maven:maven-artifact:pom:2.0.8:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-artifact at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-artifact\2.0.8\maven-artifact-2.0.8.pom [WARNING] POM for 'org.apache.maven:maven-artifact:pom:2.0.8:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-artifact at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-artifact\2.0.8\maven-artifact-2.0.8.pom [WARNING] POM for 'org.apache.maven:maven-project:pom:2.0.7:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-project at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-project\2.0.7\maven-project-2.0.7.pom [WARNING] POM for 'org.apache.maven:maven-project:pom:2.0.7:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project org.apache.maven:maven-project at C:\Documents and Settings\jmoren02\.m2\repository\org\apache\maven\maven-project\2.0.7\maven-project-2.0.7.pom Downloading: http://ws.zones.apache.org/repository2/org/apache/axis2/axis2-codegen/1.4/axis2-codegen-1.4.pom Downloading: http://tomcat.apache.org/dev/dist/m2-repository/org/apache/axis2/axis2-codegen/1.4/axis2-codegen-1.4.pom
[AXIS2] A question on axis2-wsdl2code-maven-plugin
Dear all, I'm using the maven plugin of axis2. As a maven plugin I thought that giving an output directory of outputDirectorysrc/main/java/outputDirectory(or better nothing at all) and the right package name I could find the generated sources on my package, but I'm seeing that the plugin generates a new directory src! So, at the end I have this situation: src/main/java/src... how I can get rid of this new src directory? Which are the best practices for integrating the plugin in a maven project? BTW, a build.xml file is also created, for what is needed? Thank you very much. Indrit Plugin Configuration: plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.5/version configuration packageNameit.rcs.maps.service.providers.microsoft.webservice/packageName wsdlFilesrc/main/resources/wsdl/mappoint.wsdl/wsdlFile generateServerSidetrue/generateServerSide outputDirectorysrc/main/java/outputDirectory /configuration executions execution idwsdl/id phasegenerate-sources/phase goals goalwsdl2code/goal /goals /execution /executions /plugin
Re: [AXIS2] A question on axis2-wsdl2code-maven-plugin
In a Maven build you should never let a plugin output generated code into src/main/java, but instead into a temporary directory under target (so that it will be removed by mvn clean). In that case it doesn't matter that axis2-wsdl2code-maven-plugin places the code in a subdirectory called src. Andreas On Tue, Sep 22, 2009 at 19:58, Indrit Selimi indritsel...@yahoo.com wrote: Dear all, I'm using the maven plugin of axis2. As a maven plugin I thought that giving an output directory of outputDirectorysrc/main/java/outputDirectory(or better nothing at all) and the right package name I could find the generated sources on my package, but I'm seeing that the plugin generates a new directory src! So, at the end I have this situation: src/main/java/src... how I can get rid of this new src directory? Which are the best practices for integrating the plugin in a maven project? BTW, a build.xml file is also created, for what is needed? Thank you very much. Indrit Plugin Configuration: plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.5/version configuration packageNameit.rcs.maps.service.providers.microsoft.webservice/packageName wsdlFilesrc/main/resources/wsdl/mappoint.wsdl/wsdlFile generateServerSidetrue/generateServerSide outputDirectorysrc/main/java/outputDirectory /configuration executions execution idwsdl/id phasegenerate-sources/phase goals goalwsdl2code/goal /goals /execution /executions /plugin
Re: axis2-wsdl2code-maven-plugin use
Hi Not sure this is exact what you are asking about but here is how I use the plugin, I have a separate class stored in src/main/java that extends the skeleton created by wsdl2code tool and implements the service. Then change the ServiceClass parameter in service xml file to refer to the new class that implements the service. parameter name=ServiceClassnew.package.ServiceImpl/parameter Then it's also easy to use the maven aar plugin for packaging the hole thing. cheers, Håkon 2009/7/11 Larry Meadors larry.mead...@gmail.com That wouldn't solve the issue - the problem is that I have to edit one of the files that it creates, but it creates it in a temporary location (everything under target is wiped when you run mvn clean), and if I have a second copy, then the compile blows chunks. :-( I will stick with my ant trick - it works adequately, and if the interface changes because of a change to the WSDL file, the compile will fail, and I'll have a copy of the generated file that I can merge with my implemented file. For any others with the same problem, here's the code from my pom.xml: build ... plugins ... plugin artifactIdmaven-antrun-plugin/artifactId executions execution idmove-skeleton/id phaseprocess-sources/phase goalsgoalrun/goal/goals configuration tasks echoMove the generated skeleton/echo move file=${basedir}/target/generated-sources/.../BlahSkeleton.java tofile=${basedir}/target/generated-sources/.../BlahSkeleton.java.generated/ /tasks /configuration /execution /executions /plugin /plugins /build Running ant tasks from maven feels a bit like cheating, but it does the trick. Larry -- Håkon Sagehaug, Scientific Programmer Parallab, Bergen Center for Computational Science (BCCS) UNIFOB AS (University of Bergen Research Company)
axis2-wsdl2code-maven-plugin use
How does this plug-in fit in a normal development work flow? I'm using it to create a service from a wsdl file that is provided by a vendor, and I think I have it creating the sources correctly, but the default behavior is to generate the classes into the target directory (specifically target/generated-sources/axis2/wsdl2code/src). One of the generated classes is the skeleton for the service, so if I change it and run maven clean package to build a new war file...it gets deleted. :-) If I copy that class to my src/main/java directory, then I get a [INFO] Compilation failure message because I have a duplicate class. I think for now, I'll just use the ant tasks to delete the generated version. That seems a bit wonky...but it'll do it. Can someone who is using this help me figure out a way to fit it into my work flow? Larry
RE: axis2-wsdl2code-maven-plugin use
assume you're referring to http://ws.apache.org/axis2/tools/1_2/maven-plugins/maven-wsdl2code-plugin.html where the default of Target directory, where sources are being target/generated-sources/axis2/wsdl2code generated. what if you redirect the parameter outputDirectory to point to classes folder? -DoutputDirectory=/classes ? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 10 Jul 2009 17:11:11 -0600 Subject: axis2-wsdl2code-maven-plugin use From: larry.mead...@gmail.com To: axis-user@ws.apache.org How does this plug-in fit in a normal development work flow? I'm using it to create a service from a wsdl file that is provided by a vendor, and I think I have it creating the sources correctly, but the default behavior is to generate the classes into the target directory (specifically target/generated-sources/axis2/wsdl2code/src). One of the generated classes is the skeleton for the service, so if I change it and run maven clean package to build a new war file...it gets deleted. :-) If I copy that class to my src/main/java directory, then I get a [INFO] Compilation failure message because I have a duplicate class. I think for now, I'll just use the ant tasks to delete the generated version. That seems a bit wonky...but it'll do it. Can someone who is using this help me figure out a way to fit it into my work flow? Larry _ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
Re: axis2-wsdl2code-maven-plugin use
That wouldn't solve the issue - the problem is that I have to edit one of the files that it creates, but it creates it in a temporary location (everything under target is wiped when you run mvn clean), and if I have a second copy, then the compile blows chunks. :-( I will stick with my ant trick - it works adequately, and if the interface changes because of a change to the WSDL file, the compile will fail, and I'll have a copy of the generated file that I can merge with my implemented file. For any others with the same problem, here's the code from my pom.xml: build ... plugins ... plugin artifactIdmaven-antrun-plugin/artifactId executions execution idmove-skeleton/id phaseprocess-sources/phase goalsgoalrun/goal/goals configuration tasks echoMove the generated skeleton/echo move file=${basedir}/target/generated-sources/.../BlahSkeleton.java tofile=${basedir}/target/generated-sources/.../BlahSkeleton.java.generated/ /tasks /configuration /execution /executions /plugin /plugins /build Running ant tasks from maven feels a bit like cheating, but it does the trick. Larry
axis2-wsdl2code-maven-plugin generated code GET/POST
I have used the Eclipse WebServices Client wizard to generate axis WS. The tool properly creates bindings that allow me to connect to the web service. But I want my project to be maven based, so I used the axis2-wsdl2code-maven-plugin to generate bindings. The pom entry is as follows: plugin groupIdorg.apache.axis2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId version1.4.1/version configuration packageNamecom.myorg.teamtrack.stubs/packageName generateAllClassestrue/generateAllClasses wsdlFilesrc/main/resources/ttwebservices.wsdl/wsdlFile databindingNameadb/databindingName /configuration executions execution goals goalwsdl2code/goal /goals /execution /executions /plugin When I run a test client that uses the bindings I get the following Exception: INFO: Unable to sendViaPost to url[http://teamtrack.hostname.com/gsoap/ttwebservices.wsdl?wsdl] org.apache.axis2.AxisFault: Transport error: 405 Error: Method Not Allowed at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:364) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448) at ... Notice the exception that says it is trying to connect via POST method: I believe that the Eclipse generated code is generating GET method calls. So the question is, how can I either configure the maven plugin to generated GET-based calls or how can I programmatically tell Axis to set WS calls via GET? Thanks in advance for any help. Adam
Re: remote wsdl axis2-wsdl2code-maven-plugin
the file location can be a valid url location. This should work with the plugin. On Dec 19, 2007 4:14 AM, Brice Lambi [EMAIL PROTECTED] wrote: Hello, Is it possible to have the wsdl2code plugin find a remote wsdl ( http://localhost:8080/axis2/services/Hello?wsdl instead of a local file) via the wsdlFile config parameter. I haven't used the command line tool with Axis 2 but I know the Axis 1 Java2WSDL command line interface supported this. I'm sure it would be a quick change to the axis2-wsdl2code-maven-plugin but I was hoping this was already implemented. Thanks, Brice -- Amila Suriarachchi, WSO2 Inc.
[axis2] axis2-wsdl2code-maven-plugin
Hey is someone using this plugin successfully??? I can't interprete the following error ;-( The wsdl is ok, with the axis 1.4 maven2 Plugin the code gen works! The path to the wsdl is ok! The outputDirectory path is existing! Thanks! [DEBUG] Configuring mojo ' org.apache.axis2.maven2:axis2-wsdl2code-maven-plugin:1.1:wsdl2code' -- [DEBUG] (f) databindingName = adb [DEBUG] (f) generateAllClasses = false [DEBUG] (f) generateServerSide = false [DEBUG] (f) generateServerSideInterface = false [DEBUG] (f) generateServicesXml = false [DEBUG] (f) generateTestcase = false [DEBUG] (f) language = java [DEBUG] (f) outputDirectory = D:\hauschel\ewu\workspaces\activeDevelopment\PPVServiceClient\target [DEBUG] (f) packageName = com.foo.myservice [DEBUG] (f) pluginArtifacts = [jaxen:jaxen:jar:1.1-beta-10:runtime, commons-logging:commons-logging:jar:1.1:runtime, javax.servlet:servlet-api:jar:2.3:runtime, org.apache.ws.commons.axiom:axiom-dom:jar:1.2:runtime, ant:ant:jar: 1.6.5:runtime, log4j:log4j:jar:1.2.12:runtime, org.apache.ws.commons.axiom:axiom-api:jar:20070618.032556-283:runtime, woodstox:wstx-asl:jar:3.0.1:runtime, javax.mail:mail:jar:1.4:runtime, stax:stax-api:jar:1.0.1:runtime, logkit:logkit:jar:1.0.1:runtime, annogen:annogen:jar:0.1.0:runtime, avalon-framework:avalon-framework:jar: 4.1.3:runtime, org.apache.axis2:axis2-kernel:jar:1.1:runtime, org.apache.axis2:axis2-adb:jar:1.1:runtime, org.apache.axis2:axis2-adb-codegen:jar:1.1:runtime, axis:axis-wsdl4j:jar: 1.5.1:compile, org.apache.ws.commons.schema:XmlSchema:jar:1.2:runtime, org.apache.axis2:axis2-codegen:jar:1.1:runtime, org.apache.axis2:axis2-java2wsdl:jar:1.1:runtime, org.apache.ws.commons.axiom:axiom-impl:jar:1.2:runtime, javax.activation:activation:jar:1.1:runtime, xml-apis:xml-apis:jar: 1.3.03:runtime, org.apache.maven:maven-artifact:jar:2.0.4:runtime, org.apache.maven:maven-project:jar:2.0.4:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.4:runtime] [DEBUG] (f) project = [EMAIL PROTECTED] [DEBUG] (f) syncMode = both [DEBUG] (f) unpackClasses = false [DEBUG] (f) wsdlFile = D:\hauschel\ewu\workspaces\activeDevelopment\PPVServiceClient\src\main\wsdl\Administration.wsdl [DEBUG] -- end configuration -- [INFO] [axis2-wsdl2code:wsdl2code {execution: default}] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error parsing WSDL (File exists) [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error parsing WSDL at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error parsing WSDL at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute( WSDL2CodeMojo.java:404) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:534) ... 16 more Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init( CodeGenerationEngine.java:116) at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute( WSDL2CodeMojo.java:396) ... 18 more Caused by: java.lang.RuntimeException: The specified output location is not a directory! at org.apache.axis2.wsdl.codegen.CodegenConfigLoader.loadConfig
axis2-wsdl2code-maven-plugin
Hi all. I'm trying to use the m2 plugin as described here: http://ws.apache.org/axis2/tools/1_1/maven-plugins/maven-wsdl2code-plugin.html But Maven says it can't find the plugin. Is that plugin deployed anywhere? I couldn't find it in any of these repos: http://people.apache.org/repository/ http://people.apache.org/repo/m1-ibiblio-rsync-repository/ http://people.apache.org/repo/m2-ibiblio-rsync-repository/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]