Private/unsupported modules in JBoss EAP

Solution Verified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 8.x
    • 7.x
    • 6.x
  • Depending on private modules in jboss-deployment-structure.xml or in a custom module

Issue

Receving a warning in regards to modules being private or unsupported:

EAP 7 and EAP 8

WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) WFLYSRV0018: Deployment "deployment.jaxp.jar" is using a private module ("org.jboss.as.cli") which may be changed or removed in future versions without notice.

EAP 6

        WARN  [org.jboss.as.dependency.private] (MSC service thread 1-6) JBAS018567: Deployment "deployment.com.aaa.bbb.test.zzz.ear" is using a private module ("com.sun.jsf-impl:1.2") which may be changed or removed in future versions without notice.
        WARN  [org.jboss.as.dependency.unsupported] (MSC service thread 1-2) JBAS018568: Deployment "deployment.com.aaa.bbb.test.zzz.ear" is using an unsupported module ("org.infinispan:main") which may be changed or removed in future versions without notice.
  • Depend on private or unsupported modules

Resolution

Private modules (like com.sun.jsf-impl:1.2) are hidden from deployments by default and are only intended to be imported by JBoss shipped modules. They are not supported for use in customer applications and may be removed in any patch or release.

Root Cause

Unsupported modules (like org.infinispan) should not be used by applications. Red Hat does not provide fixes that result from the use of unsupported modules.

They are subject to change in any patch. Red Hat may not provide bug fixes for errors that result from the use of private modules directly in a way that does not also affect JBoss EAP internal usage of those modules.

See JBoss EAP 8 Included Modules, JBoss EAP 7 Included Modules or JBoss EAP 6 Included Modules for the Module Support Classifications

Diagnostic Steps

  • Review the logs.
  • One can check the jboss-deployment-structure.xml to verify if a unsupported or private module is being referenced.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments