4 Replies Latest reply on May 17, 2018 6:38 PM by swvajanyatek

    How to create a module on a remote server using CLI

    dspiess

      Hi,

       

      I'm trying to create a CLI script to configure our Wildfly servers.

       

      When I run the following from a script of command prompt

       

      ./jboss-cli.sh --connect controller=192.168.59.103
      

       

      I connect to the correct server.  But when I run

       

      [standalone@192.168.59.103:9990 /] module add --name=com.oracle.jdbc --resources=/tmp/ojdbc6.jar --dependencies=javax.api,javax.transaction.api
      

       

      I get the error

       

      Module com.oracle.jdbc already exists at /JavaLibraries/jboss/wildfly-8.0.0-2.Final/modules/com/oracle/jdbc/main
      

       

      It's trying to add the module on my local machine.  Any other command runs against the remote server as expected.  Is there something special I need to do to install a module on a remote server via CLI?  The remote version of Wildfly is 8.1.

       

      Thanks,

      DJ