Description of problem: Running wsconsume.sh utility when it needs to compile classes fails, probably because of slass loading problem. Utility reads WSDL, creates java code, but can't compile it. Version-Release number of selected component (if applicable): EAP 6.1 ER3 How reproducible: run any wsconsume command to generate classes Actual results: command fails wsdl2java -compile -exsh false -p org.jboss.test.script -d /mnt/hudson_workspace/workspace/eap-61-scripts-tools-rhel/jdk/openjdk-1.6.0-local/label/RHEL6_x86_64/scripts-testing/target/test-classes/wsconsume-classes-out/tmp5772328 -verbose -classdir /mnt/hudson_workspace/workspace/eap-61-scripts-tools-rhel/jdk/openjdk-1.6.0-local/label/RHEL6_x86_64/scripts-testing/target/test-classes/wsconsume-classes-out -allowElementReferences file:/mnt/hudson_workspace/workspace/eap-61-scripts-tools-rhel/jdk/openjdk-1.6.0-local/label/RHEL6_x86_64/scripts-testing/target/test-classes/wsdl/Echo1Service.wsdl wsdl2java - Apache CXF 2.6.6-redhat-1 JBWS024002: Failed to invoke org.apache.cxf.tools.wsdlto.WSDLToJava org.apache.cxf.tools.common.ToolException: Failed to compile generated code at org.apache.cxf.tools.common.ClassUtils.compile(ClassUtils.java:120) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:279) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:142) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:300) at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103) at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113) at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:284) at org.jboss.ws.tools.cmd.WSConsume.importServices(WSConsume.java:279) at org.jboss.ws.tools.cmd.WSConsume.mainInternal(WSConsume.java:104) at org.jboss.ws.tools.cmd.WSConsume.main(WSConsume.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.jboss.modules.Module.run(Module.java:262) at org.jboss.modules.Main.main(Main.java:329) ---- /mnt/hudson_workspace/workspace/eap-61-scripts-tools-rhel/jdk/openjdk-1.6.0-local/label/RHEL6_x86_64/scripts-testing/target/test-classes/wsconsume-classes-out/tmp5772328/org/jboss/test/script/Echo1Service.java:54: cannot find symbol symbol : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[]) location: class javax.xml.ws.Service super(WSDL_LOCATION, SERVICE, features); ^ /mnt/hudson_workspace/workspace/eap-61-scripts-tools-rhel/jdk/openjdk-1.6.0-local/label/RHEL6_x86_64/scripts-testing/target/test-classes/wsconsume-classes-out/tmp5772328/org/jboss/test/script/Echo1Service.java:61: cannot find symbol symbol : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[]) location: class javax.xml.ws.Service super(wsdlLocation, SERVICE, features); ^ /mnt/hudson_workspace/workspace/eap-61-scripts-tools-rhel/jdk/openjdk-1.6.0-local/label/RHEL6_x86_64/scripts-testing/target/test-classes/wsconsume-classes-out/tmp5772328/org/jboss/test/script/Echo1Service.java:68: cannot find symbol symbol : constructor Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[]) location: class javax.xml.ws.Service super(wsdlLocation, serviceName, features); ^ 3 errors ---------- Expected results: command should create classes Additional info: test job run results https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-Scripts/job/eap-61-scripts-tools-rhel/8/testReport/
Alessio, can you please look into this? Thanks!
I've run the test locally with the following jdk version and I can't reproduce the problem: java version "1.6.0_18" OpenJDK Runtime Environment (IcedTea6 1.8.8) (fedora-51.1.8.8.fc13-x86_64) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
There was Java version: 1.6.0_24 in tests run.
FYI this is a problem still in 6.1.1 and openjdk 1.7 (see bug 999223)
@Pavel Aleksandar Kostadinov has probably active beaker machine with env setup where he was able to hit this problem - more details in BZ 999223
Release notes text added to be published in JBoss EAP 6.2.0 Release Notes document.
Is not this bug a duplicate of BZ 999223 which was already fixed in 6.2.0? I can't immediately see the difference.
It definitely is. Closing this, thanks for pointing this out. *** This bug has been marked as a duplicate of bug 999223 ***