Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4481

GShell command jaxws/java2ws error: Syntax error, annotations are only available if source level is 5.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 2.2
    • webservices
    • Security Level: public (Regular issues)
    • None
    • java version "1.6.0_10"
      Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
      Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
      ubuntu 8.04.1 LTS

    Description

      Steps to recurring:
      1. start 2.2 snapshot server
      2. enter gshell prompt
      3. execute command like this:
      <code>
      jaxws/java2ws -wsdl -client -server -wrapperbean -ant -o test.wsdl -s /home/forrestxm/temp/gshell015 -d /home/forrestxm/temp/gshell015 -classdir /home/forrestxm/temp/gshell015 -cp /home/forrestxm/temp/gshell015/G3665FeatureValidation.jar org.apache.geronimo.test.fixver.g3665.SayHelloWebService
      </code>

      then the errors say "Syntax error, annotations are only available if source level is 5.0". Checked cxf 2.1.3 release, there are similar problems when executing a similar command.

      However, use the generated ant project to compile those generated source code, it's fine.

      Attachments

        Issue Links

          Activity

            People

              xiaming Ming Xia
              xiaming Ming Xia
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: