3 Replies Latest reply on Jul 22, 2014 10:45 AM by Daniel Spiess

    How to create a module on a remote server using CLI

    Daniel Spiess Newbie

      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