WildFly Class Loading
Jump to navigation
Jump to search
External
- Class Loading in AS7 https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7
Internal
Overview
WildFly class loading relies on modules that have to define explicit dependencies on other modules. This model is different from the previous EAP 5 hierarchical class loading model.
Class Loading Precedence
WildFly adds module dependencies for a JEE deployment in a very specific order, starting from the highest priority to the lowest priority:
- System Dependencies - these are the dependencies that are automatically added by the container. For more details see implicit dependencies.
- User Dependencies - these are the dependencies that are added through jboss-deployment-structure.xml, through the Dependencies: manifest entry for modules or through Class-Path: for JAR files.
- Local Resources - class files packaged inside the deployment itself (example, classes from WEB-INF/classes or WEB-INF/lib in a WAR file.
- Inter-Deployment Dependencies - dependencies on other deployments in an EAR deployment. This can include classes in an EAR's lib directory or classes defined in other EJB JARs.