Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9538

wsprovide.sh does not support the -secmgr setting properly

    XMLWordPrintable

Details

    • Hide

      jbossws-cxf has 3 test cases

      org.jboss.test.ws.jaxws.jbws2528.JBWS2528TestCase          
      org.jboss.test.ws.jaxws.jbws2529.JBWS2529TestCase  
      org.jboss.test.ws.jaxws.smoke.tools.WSProvideScriptTestCase 
      

      that generates and execute the following cmd

      /home/rsearls/j1/wfly10/wildfly/build/target/wildfly-10.0.0.Final/bin/wsprovide.sh \
        -k -w -o \
        /home/rsearls/j1/jbws/jbossws-cxf/modules/testsuite/shared-tests/target/test-resources/../wsprovide/java \
       --classpath /home/rsearls/j1/jbws/jbossws-cxf/modules/testsuite/shared-tests/target/test-classes \
        org.jboss.test.ws.jaxws.smoke.tools.CalculatorBean
      

      It passes the security flag by setting the env var JAVA_OPTS before executing the cmd
      above.

      You are welcome to use these testcases.

      Show
      jbossws-cxf has 3 test cases org.jboss.test.ws.jaxws.jbws2528.JBWS2528TestCase org.jboss.test.ws.jaxws.jbws2529.JBWS2529TestCase org.jboss.test.ws.jaxws.smoke.tools.WSProvideScriptTestCase that generates and execute the following cmd /home/rsearls/j1/wfly10/wildfly/build/target/wildfly-10.0.0.Final/bin/wsprovide.sh \ -k -w -o \ /home/rsearls/j1/jbws/jbossws-cxf/modules/testsuite/shared-tests/target/test-resources/../wsprovide/java \ --classpath /home/rsearls/j1/jbws/jbossws-cxf/modules/testsuite/shared-tests/target/test-classes \ org.jboss.test.ws.jaxws.smoke.tools.CalculatorBean It passes the security flag by setting the env var JAVA_OPTS before executing the cmd above. You are welcome to use these testcases.

    Description

      wsprovide.sh, wsprovide.bat does not generate the cmd with the -secmgr flag in the
      proper position. Changes to jboss-module.jar requires -segmgr to reside just after
      the jboss-module.jar reference like this.

      eval \"$JAVA\" $JAVA_OPTS \
          -jar \""$JBOSS_HOME"/jboss-modules.jar\" \
          *-secmgr \ *                                                                  
          -mp \""$JBOSS_HOME"/modules\" \
          org.jboss.ws.tools.wsprovide \
          '"$@"'
      

      Current the old style and this new style value is passed in via the JAVA_OPTS env var.

      Attachments

        Issue Links

          Activity

            People

              rsearls r searls
              rsearls r searls
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: