1 Reply Latest reply on May 10, 2017 9:28 AM by Eric Lundgren

    Deploy module using CLI

    Pedro Saraiva Newbie



      I've created a cli module to deploy a postgresql driver to Wildfly.


      The cli module is a zip file with name "install-postgres.cli" and with the following content:

      - deploy.scr

      - postgresql-9.3-1102-jdbc41.jar

      - postgresql-module.xml

      - undeploy.scr


      I then run from the JBoss CLI the following commands:


      deploy /folder/install-postgres.cli


      And the module is successfully deployed.


      However if I run afterwards the command:


      undeploy /folder/install-postgres.cli


      I get the following error:


      Undeploy failed: {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS014807: Management resource '[(\"deployment\" => \"/folder/install-postgresql-driver.cli\")]' not found"}}


      The contents of the undeploy.scr file is:


      module remove --name=org.postgresql.jdbc --slot=main


      If I run this command directly on the console the module is undeployed.


      I'm doing something wrong or is this a bug?


      PS: Using Wildfly 8.1 Final


      Kind regards,


      Pedro Saraiva