How to add an external modules directory in JBoss EAP 6/7

Solution Verified - Updated -

Issue

  • By default, the modules directory resides under the JBoss EAP home directory. How can the classpath be extended to deployed content reference directories and files external to the JBoss install?
  • Unable to set the custom module path in JBoss server instance to load custom modules
  • How to configure JBoss to use a different modules directory other than $JBOSS_HOME/modules ?\

  • How can we specify the entries for the jars in ${EXTJARS_PATH} in the module.xml resource-root path? where ${EXTJARS_PATH} refers to the location of external libraries which are placed in a specific folder outside jboss module directory.

  • How can I define a folder as a classpath in JBoss EAP 6?

  • We want to add a custom "modules" directory for our application's modules, how can we do this?

  • Add external folder to JBOSS classpath.
    We want /usr/xxx/.properties file need to be added to JBOSS classpath. We could add this in eclipse plugin. We want method to add the same to jboss start up in linux.

  • I'm trying to deploy the same app on two different JBoss EAP server but on the same VM. I would like to specify the module path differently for these two JBoss EAP servers. Is there a way I can specify JBOSS_MODULEPATH or -mp option differently per server? And can I specify multiple values for -mp and will it use the first valid module path found from multiple paths? I would like to be able to specify a -mp option separately for each server if possible.

  • I have some applications to be deployed in my JBoss server. For these applications, I have many custom modules. I want to place my custom modules outside $JBOSS_HOME/modules for my application efficiency, which means an external modules. However, I don't know how to place my modules outside $JBOSS_HOME. I have tried placing them outside, but I still confused about how to configure the module.xml and other things. Is there a way to have an external module in JBOSS EAP 6.4?
  • We are planning to configure shared libraries .
    But instead of placing all the libraries under $JBOSS_HOME/modules , is there a possibility that we can externalize these to a different location , We are planning to place all the libraries under a standard location /apps/properties/shared-libraries

  • How can we add an additional module directory (like "/home/userone/CustomModuleTest" ) apart from the default module directory ( "$JBOSS_HOME/modules" ) in JBoss EAP6.

  • what is the recommended way to deploy global config files in a Domain

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.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.