Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5348

Solaris - wsconsume and wsprovide scripts run errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.3.0.GA_CP10
    • 4.3.0.GA_CP09
    • Web Services
    • None
    • Solaris 9/10, intel/sparc

    • Release Notes
    • Workaround Exists
    • Hide
        • way 1:
          do not run './wsconsume.sh' but 'sh wsconsume.sh'

      edit .sh scripts, two possible ways:

        • way 2:
          change /bin/sh --> /usr/xpg4/bin/sh (which is a Posix-compliant variant of 'ksh88')
        • way 3:
          change 'if [ -a $LIBDIR/jbossws-client.jar ]; then' --> 'if [ -f $LIBDIR/jbossws-client.jar ]; then'
      Show
      way 1: do not run './wsconsume.sh' but 'sh wsconsume.sh' edit .sh scripts, two possible ways: way 2: change /bin/sh --> /usr/xpg4/bin/sh (which is a Posix-compliant variant of 'ksh88') way 3: change 'if [ -a $LIBDIR/jbossws-client.jar ]; then' --> 'if [ -f $LIBDIR/jbossws-client.jar ]; then'
    • Not Required

    Description

      On Solaris platform wsconsume and wsprovide shell scripts can't be executed directly from actual shell like ./wsconsume.sh.
      It ends with this output './wsconsume.sh: test: argument expected'

      3 workarounds exist, for permanent change is possible way number 3:
      change 'if [ -a $LIBDIR/jbossws-client.jar ]; then' to 'if [ -f $LIBDIR/jbossws-client.jar ]; then'
      (section for JBOSSWS_NATIVE property# Is it a JBossWS-native or SunRI installation? )

      part from man test on Solaris machine:
      -a file True if file exists. (Not available
      in sh.)
      ...
      -e file True if file exists. (Not available
      in sh.)
      -f file True if file exists and is a regular
      file. Alternatively, if /usr/bin/sh
      users specify /usr/ucb before
      /usr/bin in their PATH environment
      variable, then test will return true
      if file exists and is
      (not-a-directory). The csh test and
      [ built-ins always use this alterna-
      tive behavior.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-ema Jim Ma
              rsvoboda@redhat.com Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: