Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-25788

[wsconsume.sh] Inconsistency in supported JAX-WS spec versions stated by the script

XMLWordPrintable

      Our inner QE test suite has a couple of simple tests that verify the output of wscomsume.sh while generating classes/sources files. The only difference in them is the passed --target/-t  JAX-WS spec version. 

      If version 2.1 is passed, the script states the following warning:

      JBWS024002: Failed to invoke org.apache.cxf.tools.wsdlto.WSDLToJava
      com.sun.tools.xjc.BadCommandLineException: "2.1" is not a valid target version. "3.0" is supported. 

      But when the target version 3.0 is passed to the script, the following INFO statement can be observed:

      INFO  [ScriptUtil] (main) Shell command: [bash, -c, ./wsconsume.sh -k -t 3.0 -p org.jboss.test.script -o /tmp/ test-classes/wsdl/Echo1Service.wsdl]
      ...
      INFO  [ScriptTest] (main) JBWS024003: Unsupported value '3.0' for target, using default value '2.2'
      

      The script help message itself states:

      --target=<2.1|2.2>
      

      What is the default version then?

              rhn-engineering-ema Jim Ma
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: