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

    How to create a module on a remote server using CLI

    Daniel Spiess Newbie



      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=


      I connect to the correct server.  But when I run


      [standalone@ /] 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.