How to create a module with multiple dependencies using CLI non interactive mode in EAP

Solution Verified - Updated -

Issue

  • How to create a module with multiple dependencies using CLI non interactive mode in EAP7.
  • We are trying to create jdbc module with multiple dependencies using jboss-cli.sh in non interactive mode and adding two comma separated dependencies in module.xml. It fails to add multiple dependencies in module.xml with exception
./bin/jboss-cli.sh -c  --commands="module add --name=com.microsoft --resources=/home/jboss-eap-7.0/sqljdbc4-2.jar
--dependencies=javax.api,javax.transaction.api"
'javax.transaction.api' is not a valid operation name.

But It is creating following module.xml which is missing "javax.transaction.api":

<?xml version="1.0" ?>
<module xmlns="urn:jboss:module:1.1" name="com.microsoft">
     <resources>
         <resource-root path="sqljdbc4-2.jar"></resource>
     </resources>
     <dependencies>
         <module name="javax.api"></module>
     </dependencies>
</module>

Environment

  • RedHat JBoss Enterprise Application Platform (EAP)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content