I am installing a war file in a Wildfly.
The package contains EJB and WS.
The dependencies are located in myWar.war/WEB-INF/lib
.
My EJBs (annotated with @Stateless
) located in myWar.war/WEB-INF/classes
are correctly scanned by wildfly and deployed.
The problem is that some dependencies are also annotated with @Stateless
, and Wildfly also deploy them.
I have no direct control over the dependencies I need to import.
Is there any way to exclude myWar.war/WEB-INF/lib from being scanned by
org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor
and deployed ?