How to add / remove a JDBC Module, Driver and JNDI mapping Using CLI in JBoss EAP 6

Solution Verified - Updated -

Issue

  • How to add / remove a JDBC Module, Driver and JNDI mapping Using CLI in JBoss EAP 6?

  • Unable to create the module for the driver using the JBoss CLI command in EAP 6 domain mode. Facing the below error:

    [domain@127.0.0.1:9999 /] module add --name=com.oracle.jdbc --resources=/path/to/ojdbc6.jar --dependencies=javax.api,javax.transaction.api
    The command is not available in the current context (e.g. required subsystems or connection to the controller might be unavailable).
    

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.