javaee / metro-wsit

https://javaee.github.io/metro-wsit/
Other
9 stars 24 forks source link

[wsimport]java.lang.NoSuchMethodError: com/sun/codemodel/writer/FileCodeWriter.<init>(Ljava/io/File;Ljava/lang/String;)V #1592

Closed glassfishrobot closed 12 years ago

glassfishrobot commented 13 years ago

wsimport is failing in security related modules with this error

[wsimport] Consider using / so that wsimport won't do unnecessary compilation [wsimport] parsing WSDL... [wsimport] [wsimport] [wsimport] [wsimport] Generating code... [wsimport] [wsimport] Exception in thread "main" java.lang.NoSuchMethodError: com/sun/codemodel/writer/FileCodeWriter.(Ljava/io/File;Ljava/lang/String;)V [wsimport] at com.sun.tools.ws.wscompile.WSCodeWriter.(WSCodeWriter.java:60) [wsimport] at com.sun.tools.ws.wscompile.WsimportTool.generateCode(WsimportTool.java:421) [wsimport] at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:201) [wsimport] at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:178) [wsimport] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [wsimport] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) [wsimport] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) [wsimport] at java.lang.reflect.Method.invoke(Method.java:611) [wsimport] at com.sun.tools.ws.Invoker.invoke(Invoker.java:135) [wsimport] at com.sun.tools.ws.WsImport.main(WsImport.java:57) [wsimport] Command invoked: wsimport /usr/java6_64/jre/bin/java -Djavax.net.ssl.keyStore=../functional/data/certs/xws-security/etc/client-keystore.jks -Djavax.net.ssl.keyStoreType=JKS -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=../functional/data/certs/xws-security/etc/client-truststore.jks -Djavax.net.ssl.trustStoreType=JKS -Djavax.net.ssl.trustStorePassword=changeit -classpath /export/metro/hudson-test-workdir/glassfish3/glassfish/modules/aixporting-repackaged.jar:/usr/java6_64/lib/tools.jar:/usr/java6_64/lib/ibmorbtools.jar:/export/metro/hudson-test-workdir/glassfish3/glassfish/modules/gmbal.jar:/export/metro/hudson-test-workdir/glassfish3/glassfish/modules/javax.mail.jar:/export/metro/hudson-test-workdir/glassfish3/glassfish/modules/javax.security.auth.message.jar:/export/metro/hudson-test-workdir/glassfish3/glassfish/modules/jaxb-osgi.jar:/export/metro/hudson-test-workdir/glassfish3/glassfish/modules/management-api.jar:/export/metro/hudson-test-workdir/glassfish3/glassfish/modules/woodstox-core-asl.jar:/export/metro/hudson-test-workdir/metro/lib/webservices-api.jar:/export/metro/hudson-test-workdir/metro/lib/webservices-rt.jar:/export/metro/hudson-test-workdir/metro/lib/webservices-extra.jar:/export/metro/hudson-test-workdir/metro/lib/webservices-tools.jar:/export/metro/hudson-test-workdir/workspace/tango/qe-tests/wssecuritypolicy/functional/src/s1/etc:/export/metro/hudson-test-workdir/workspace/tango/qe-tests/xtest-distribution/lib/junit.jar:/export/metro/hudson-test-workdir/workspace/tango/qe-tests/xtest-distribution/lib/nbjunit.jar com.sun.tools.ws.WsImport -d /export/metro/hudson-test-workdir/workspace/tango/qe-tests/wssecuritypolicy/functional/src/build/s1/classes -g /export/metro/hudson-test-workdir/workspace/tango/qe-tests/wssecuritypolicy/test/../functional/src/s1/etc/PingServices1.wsdl -b /export/metro/hudson-test-workdir/workspace/tango/qe-tests/wssecuritypolicy/functional/src/s1/etc/custom-server.xml

Environment

AIX,RHEL,Solx86,Glassfish 3.1.2

Affected Versions

[2.2]

glassfishrobot commented 13 years ago

Reported by msreekanth

glassfishrobot commented 13 years ago

msreekanth said: Observed this in sol x86 as well.

glassfishrobot commented 13 years ago

msreekanth said: Looks like the issue is in on all platforms.Just it was first found in AIX

glassfishrobot commented 13 years ago

snajper said: What was the exact configuration against which this ran? I'd expect this to work in latest promotion.

glassfishrobot commented 13 years ago

msreekanth said: GlassFish Version: GlassFish Server Open Source Edition 3.1.2-SNAPSHOT (build 9) Java 1.6 update 28

Please let me know if any other information is needed.

glassfishrobot commented 13 years ago

snajper said: OK, where do you get the GF snapshot build from?

glassfishrobot commented 12 years ago

snajper said: Resolved in metro 2.2-b07

glassfishrobot commented 13 years ago

Was assigned to snajper

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA WSIT-1592

glassfishrobot commented 12 years ago

Marked as fixed on Wednesday, November 9th 2011, 4:15:00 am