Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-1819

wsrunclient script(s) differ and do not always function.

XMLWordPrintable

      Scripts wsrunclient.sh and wsrunclient.bat contain some questionable code:

      1. They both define a "-Djava.endorsed.dirs" that is only used by javac. The compiler is not called here, only the JVM. The JVM doesn't seem to use it...

      2. The included classpaths in the batch- and shell-file differ wildly. This cannot be attributed to OS-differences. I keep wondering what jars are actually needed...

      3. The 'eval ...' command in wsrunclient.sh mis-quotes the actual command and at least 1 jar is missing.

      Below a "diff -u" on the shell-script. Changes that were needed to get it running in my environment.

      Hope this helps,
      Tom.

      the diff:
      ----------

      — ../../jbossws-native-2.0.1.GA/bin/wsrunclient.sh 2007-08-17 18:58:06.000000000 +0200
      +++ ../../jboss-4.2.1.GA/bin/wsrunclient.sh.new 2007-09-21 13:53:59.638125000 +0200
      @@ -52,9 +52,6 @@

      1. Setup JBoss sepecific properties
        JAVA_OPTS="$JAVA_OPTS"
        1. Setup the java endorsed dirs
          -JBOSS_ENDORSED_DIRS="$JBOSS_HOME/lib/endorsed"
          -
      1. Setup the client classpath
        WSRUNCLIENT_CLASSPATH="$WSRUNCLIENT_CLASSPATH:$JBOSS_HOME/client/log4j.jar"
        WSRUNCLIENT_CLASSPATH="$WSRUNCLIENT_CLASSPATH:$JBOSS_HOME/client/jbossws-client.jar"
        @@ -66,6 +63,8 @@
      2. JBossAS-4.2 subset of jbossall-client.jar
        WSRUNCLIENT_CLASSPATH="$WSRUNCLIENT_CLASSPATH:$JBOSS_HOME/client/jboss-common-client.jar"

      +WSRUNCLIENT_CLASSPATH="$WSRUNCLIENT_CLASSPATH:$JBOSS_HOME/lib/endorsed/xercesImpl.jar"
      +
      while [ $# -ge 1 ]; do
      case $1 in
      "-classpath") WSRUNCLIENT_CLASSPATH="$WSRUNCLIENT_CLASSPATH:$2"; shift;;
      @@ -82,9 +81,7 @@
      JBOSS_ENDORSED_DIRS=`cygpath --path --windows "$JBOSS_ENDORSED_DIRS"`
      fi

        1. Execute the JVM
          eval "$JAVA" $JAVA_OPTS \
      • -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
        -Dlog4j.configuration=wstools-log4j.xml \
      • -classpath "$WSRUNCLIENT_CLASSPATH" \
        + -classpath '$WSRUNCLIENT_CLASSPATH' \
        "$args"

              ropalka Richard Opalka
              uijltje Tom Uijldert (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified