javaee / metro-jaxws-commons

Metro has been contributed to Eclipse Foundation. This repository is for legacy review only. Please refer to the Eclipse EE4J Metro project for the very latest
https://eclipse-ee4j.github.io/metro-wsit/
Other
10 stars 9 forks source link

External dependency of type "pom" is not working #53

Closed glassfishrobot closed 13 years ago

glassfishrobot commented 14 years ago

Hello,

In a test, My POM has a dependency of type POM, which seems to make crash wsgen using the maven plugin version 1.12.

Why do the plugin try to open the pom file as if it was a zip ?

This is big blocker here in the adoption of Metro as our WS stack.

Thanks,

INFO] [jaxws:wsgen

{execution: Generate WSDL and server stubs}

] error: error reading C:\Documents and Settings\apa.m2\repository\jade\framework\jade-libs-pom\2.0.27\jade-libs-pom- 2.0.27.pom; error in opening zip file error: error reading C:\Documents and Settings\apa.m2\repository\jade\framework\jade-libs-pom\2.0.27\jade-libs-pom- 2.0.27.pom; error in opening zip file Note: ap round: 1 [ProcessedMethods Class: ch.hcuge.jade.jadeservices.security.HugWsSecurityImpl] [should process method: getUser hasWebMethods: false ] [endpointReferencesInterface: false] [declaring class has WebSevice: true] [returning: true] [WrapperGen - method: getUser()]

[..]

error: compilation failed, errors should have been reported [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error executing: wsgen [-verbose, -keep, -d, D:\dev\workspace\jadeservices\jadeservices3-ws\target\classes, -cp, D:\dev\workspace\jadeservices\jadeservices3-ws\target\classes;C:\Documents and Settings\apa.m2\repository\jade\jadeservices\jadeservices-ejb\3.0.0- SNAPSHOT\jadeservices-ejb-3.0.0-SNAPSHOT.jar;C:\Documents and Settings\apa.m2\repository\jade\jadeservices\jadeservices-core\3.0.0- SNAPSHOT\jadeservices-core-3.0.0-SNAPSHOT.jar;C:\Documents and Settings\apa.m2\repository\jade\framework\jade-libs-pom\2.0.27\jade-libs-pom- 2.0.27.pom;C:\Documents and Settings\apa.m2\repository\jade\framework\jade- cache\1.0\jade-cache-1.0.jar;C:\Documents and Settings\apa.m2\repository\jboss\jboss-cache\1.4.1.SP3\jboss-cache- 1.4.1.SP3.jar;C:\Documents and Settings\apa.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar;C:\Documents and Settings\apa.m2\repository\commons-lang\commons-lang\2.3\commons-lang- 2.3.jar;C:\Documents and Settings\apa.m2\repository\jade\framework\jade- framework-webclient\1.1.15\jade-framework-webclient-1.1.15.jar;C:\Documents and Settings\apa.m2\repository\jade\framework\jade-framework-shared\1.0.37\jade- framework-shared-1.0.37.jar;C:\Documents and Settings\apa.m2\repository\jade\framework\dtd-framework-outils\3.7.1\dtd- framework-outils-3.7.1.jar;C:\Documents and Settings\apa.m2\repository\cti\DTD_log_shared\2.3.33\DTD_log_shared- 2.3.33.jar;C:\Documents and Settings\apa.m2\repository\cti\DTD_menu_client\2.3.33\DTD_menu_client- 2.3.33.jar;C:\Documents and Settings\apa.m2\repository\cti\DTD_menu_server\2.3.33\DTD_menu_server- 2.3.33.jar;C:\Documents and Settings\apa.m2\repository\cti\DTD_menu_shared\2.3.33\DTD_menu_shared- 2.3.33.jar;C:\Documents and Settings\apa.m2\repository\jade\framework\dtd- framework-clientweb\1.3.3\dtd-framework-clientweb-1.3.3.jar;C:\Documents and Settings\apa.m2\repository\cti\DTD_codeDef_shared\2.3.33\DTD_codeDef_shared- 2.3.33.jar;C:\Documents and Settings\apa.m2\repository\jade\framework\dtd- framework-securite\3.0\dtd-framework-securite-3.0.jar;C:\Documents and Settings\apa.m2\repository\jakarta\struts\1.1\struts-1.1.jar;C:\Documents and Settings\apa.m2\repository\struts\struts-el\1.1\struts-el-1.1.jar;C:\Documents and Settings\apa.m2\repository\commons-beanutils\commons- beanutils\1.7.0\commons-beanutils-1.7.0.jar;C:\Documents and Settings\apa.m2\repository\commons-collections\commons- collections\2.1.1\commons-collections-2.1.1.jar;C:\Documents and Settings\apa.m2\repository\commons-digester\commons-digester\1.5\commons- digester-1.5.jar;C:\Documents and Settings\apa.m2\repository\jakarta\taglibs- cache\20041129\taglibs-cache-20041129.jar;C:\Documents and Settings\apa.m2\repository\taglibs\standard\1.0.6\standard- 1.0.6.jar;C:\Documents and Settings\apa.m2\repository\javax\servlet\jstl\1.0.6\jstl-1.0.6.jar;C:\Documents and Settings\apa.m2\repository\commons-validator\commons- validator\1.0.2\commons-validator-1.0.2.jar;C:\Documents and Settings\apa.m2\repository\oro\oro\2.0.6\oro-2.0.6.jar;C:\Documents and Settings\apa.m2\repository\junit\junit\3.8\junit-3.8.jar;C:\Documents and Settings\apa.m2\repository\jade\framework\jade-junit-tools\1.0.8\jade-junit- tools-1.0.8.jar;C:\Documents and Settings\apa.m2\repository\jade\framework\jade-junittest-web\2.1.2\jade- junittest-web-2.1.2.war;C:\Documents and Settings\apa.m2\repository\org\apache\axis\axis\1.4\axis-1.4.jar;C:\Documents and Settings\apa.m2\repository\org\apache\axis\axis-saaj\1.4\axis-saaj- 1.4.jar;C:\Documents and Settings\apa.m2\repository\org\apache\axis\axis- jaxrpc\1.4\axis-jaxrpc-1.4.jar;C:\Documents and Settings\apa.m2\repository\axis\axis-wsdl4j\1.5.1\axis-wsdl4j- 1.5.1.jar;C:\Documents and Settings\apa.m2\repository\commons- discovery\commons-discovery\20040218.194635\commons-discovery- 20040218.194635.jar;C:\Documents and Settings\apa.m2\repository\SIM\DEJA- LIB\17.0\DEJA-LIB-17.0.jar;C:\Documents and Settings\apa.m2\repository\org\springframework\spring\2.5.5\spring- 2.5.5.jar;C:\Documents and Settings\apa.m2\repository\com\smartwavesa\ldap- persistence\2.3.6\ldap-persistence-2.3.6.jar;C:\Documents and Settings\apa.m2\repository\jaxen\jaxen\1.1.1\jaxen-1.1.1.jar;C:\Documents and Settings\apa.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Documents and Settings\apa.m2\repository\com\sun\jndi\ldap\ldapbp\1.0\ldapbp- 1.0.jar;C:\Documents and Settings\apa.m2\repository\jade\HUG_corbacaller\1.2.0\HUG_corbacaller- 1.2.0.jar;C:\Documents and Settings\apa.m2\repository\jade\crypt\1.0\crypt- 1.0.jar;C:\Documents and Settings\apa.m2\repository\org\hibernate\hibernate\3.2.7.ga\hibernate- 3.2.7.ga.jar;C:\Documents and Settings\apa.m2\repository\commons- logging\commons-logging\1.0.4\commons-logging-1.0.4.jar;C:\Documents and Settings\apa.m2\repository\cglib\cglib\2.1_3\cglib-2.1_3.jar;C:\Documents and Settings\apa.m2\repository\com\sun\xml\ws\jaxws-rt\2.1.4\jaxws-rt- 2.1.4.jar;C:\Documents and Settings\apa.m2\repository\javax\xml\ws\jaxws- api\2.1\jaxws-api-2.1.jar;C:\Documents and Settings\apa.m2\repository\javax\xml\bind\jaxb-api\2.1\jaxb-api- 2.1.jar;C:\Documents and Settings\apa.m2\repository\javax\xml\stream\stax- api\1.0\stax-api-1.0.jar;C:\Documents and Settings\apa.m2\repository\javax\activation\activation\1.1\activation- 1.1.jar;C:\Documents and Settings\apa.m2\repository\com\sun\xml\bind\jaxb- impl\2.1.7\jaxb-impl-2.1.7.jar;C:\Documents and Settings\apa.m2\repository\com\sun\xml\messaging\saaj\saaj-impl\1.3.1\saaj- impl-1.3.1.jar;C:\Documents and Settings\apa.m2\repository\javax\xml\soap\saaj- api\1.3\saaj-api-1.3.jar;C:\Documents and Settings\apa.m2\repository\com\sun\xml\stream\buffer\streambuffer\0.7\streambuf fer-0.7.jar;C:\Documents and Settings\apa.m2\repository\org\jvnet\staxex\stax- ex\1.2\stax-ex-1.2.jar;C:\Documents and Settings\apa.m2\repository\com\sun\xml\stream\sjsxp\1.0.1\sjsxp- 1.0.1.jar;C:\Documents and Settings\apa.m2\repository\com\sun\org\apache\xml\internal\resolver\20050927\re solver-20050927.jar;C:\Documents and Settings\apa.m2\repository\org\jvnet\mimepull\1.2\mimepull-1.2.jar;C:\Documents and Settings\apa.m2\repository\metro\webservices-api\2.1\webservices-api- 2.1.jar;C:\Documents and Settings\apa.m2\repository\com\sun\xml\ws\jaxws- tools\2.1.4\jaxws-tools-2.1.4.jar;C:\Documents and Settings\apa.m2\repository\com\sun\xml\ws\jaxws-rt\2.1.4\jaxws-rt- 2.1.4.jar;C:\Documents and Settings\apa.m2\repository\javax\xml\ws\jaxws- api\2.1\jaxws-api-2.1.jar;C:\Documents and Settings\apa.m2\repository\javax\xml\bind\jaxb-api\2.1\jaxb-api- 2.1.jar;C:\Documents and Settings\apa.m2\repository\javax\xml\stream\stax- api\1.0\stax-api-1.0.jar;C:\Documents and Settings\apa.m2\repository\javax\activation\activation\1.1\activation- 1.1.jar;C:\Documents and Settings\apa.m2\repository\com\sun\xml\bind\jaxb- impl\2.1.7\jaxb-impl-2.1.7.jar;C:\Documents and Settings\apa.m2\repository\com\sun\xml\messaging\saaj\saaj-impl\1.3.1\saaj- impl-1.3.1.jar;C:\Documents and Settings\apa.m2\repository\javax\xml\soap\saaj- api\1.3\saaj-api-1.3.jar;C:\Documents and Settings\apa.m2\repository\com\sun\xml\stream\buffer\streambuffer\0.7\streambuf fer-0.7.jar;C:\Documents and Settings\apa.m2\repository\org\jvnet\staxex\stax- ex\1.2\stax-ex-1.2.jar;C:\Documents and Settings\apa.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar;C:\Documents and Settings\apa.m2\repository\com\sun\xml\stream\sjsxp\1.0.1\sjsxp- 1.0.1.jar;C:\Documents and Settings\apa.m2\repository\com\sun\org\apache\xml\internal\resolver\20050927\re solver-20050927.jar;C:\Documents and Settings\apa.m2\repository\org\jvnet\mimepull\1.2\mimepull-1.2.jar;C:\Documents and Settings\apa.m2\repository\com\sun\xml\bind\jaxb-xjc\2.1.7\jaxb-xjc- 2.1.7.jar;C:\Documents and Settings\apa.m2\repository\metro\webservices- api\2.1\webservices-api-2.1.jar;C:\Documents and Settings\apa.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils- 1.1.jar;D:\dev\tools\eclipse\thirdparty\jdk1.5.0_06\jre..\lib\tools.jar;D:\dev\ tools\eclipse\thirdparty\maven-2\lib\maven-2.2.1- uber.jar;D:\dev\tools\eclipse\thirdparty\maven-2\lib\maven-2.2.1-uber.jar, - wsdl, r, D:\dev\workspace\jadeservices\jadeservices3 ws\target\jaxws\wsgen\wsdl, ch.hcuge.jade.jadeservices.security.HugWsSecurityImpl]

Environment

Operating System: All Platform: All

Affected Versions

[current]

glassfishrobot commented 14 years ago

Reported by aparolini@java.net

glassfishrobot commented 14 years ago

aparolini@java.net said: Created an attachment (id=20) Maven output

glassfishrobot commented 14 years ago

aparolini@java.net said: I think the plugin is not computing the transitive dependencies of a dependency of type pom, and instead add simply the xxx.pom dependency on the classpath, which is wrong...

glassfishrobot commented 14 years ago

aparolini@java.net said: Created an attachment (id=22) Patch

glassfishrobot commented 14 years ago

aparolini@java.net said: I just created a patch for this issue.

It is important to note that the issue arise only with jdk1.5, and not jdk 1.6

Can anyone tell me if this is going to be addressed ?

glassfishrobot commented 13 years ago

@lukasj said: JDK 5 is already EOLed => you should use JDK 6 instead and - as it is mentioned in the last comment - since on JDK 6 it works, this should be invalid. But going to double check this.

glassfishrobot commented 13 years ago

@lukasj said: works for me on JDK6/7 using plugin version 2.1/2.2-SNAPSHOT. Feel free to reopen if you can still reproduce this. Also attach debugging (-X) output from maven in that case. Thanks.

glassfishrobot commented 11 years ago

@lukasj said: closing old and already fixed issues

glassfishrobot commented 14 years ago

File: bug-metro-maven.log Attached By: aparolini@java.net

glassfishrobot commented 14 years ago

File: jaxws-maven-plugin.patch Attached By: aparolini@java.net

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAX_WS_COMMONS-53

glassfishrobot commented 13 years ago

Marked as cannot reproduce on Wednesday, November 2nd 2011, 7:46:22 am