1 Reply Latest reply on Jun 16, 2014 3:41 AM by jaikiran pai

    Adding module using jboss cli library - No resource definition is registered for address

    Balasubramanian Ponmariappan Newbie

      Hi All,

                      i am trying to add module using jboss cli jar library.  below are the code to add module in domain mode. i am using JBOSS EAP 6.2.  its say "No resource definition is registered for address" please help me to solve this .

       

      ModelNode request = new ModelNode();

           request.get(ClientConstants.OP).set(ClientConstants.ADD)

           request.get(ClientConstants.OP_ADDR).add("profile","default");

          request.get(ClientConstants.OP_ADDR).add("subsystem","ee");

          request.get(ClientConstants.OP_ADDR).add("module","com.cisco.sdp.auth");

          request.get("resources").set("lib\\jar_name.jar");

          request.get("dependencies").set("javax.api,javax.security.jacc.api,javax.xml.bind.api,org.jboss.as.web");

         

          ModelNode resultNode = cli.getCommandContext().getModelControllerClient().execute(new OperationBuilder(request).build())

       

      thanks