0 Replies Latest reply on Feb 17, 2020 7:28 AM by jdafi

    Is it possible to get the error message inside the catch in JBoss CLI?

    jdafi

      My JBoss CLI script contains a try/catch and I want to obtain information about the error (stacktrace, message, ...) but I can't find any documentation

       

      For example, the code shown below should print why the jdbc driver registration fails

       

      try
          module add --name=com.oracle.ojdbc6 --dependencies=javax.api,javax.transaction.api --resources=$ORACLE_DRIVER_PATH
          /subsystem=datasources/jdbc-driver=oracle:add(driver-name="oracle",driver-module-name="com.oracle.ojdbc6",driver-class-name=oracle.jdbc.OracleDriver)
      catch
          echo Something goes wrong
      end-try