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
As far as I remember, adding a module to the filesystem module repository is only available in standalone mode and not in domain mode.