2

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 ?

loonis
  • 1,317
  • 16
  • 19
  • Take a look at [WildFly's Class Loading Documentation](https://docs.jboss.org/author/display/WFLY10/Class+Loading+in+WildFly). Perhaps you could make use of *jboss-deployment-structure.xml* in order to achieve what you want. – António Ribeiro Apr 25 '16 at 18:06
  • Cant you just exclude the jars in lib/ during packaging? – Quincy Apr 26 '16 at 03:18
  • Hello, thanks for your answers. Neither of these solutions works. I don't think it is possible. If I find a way I'll post it here. – loonis Apr 26 '16 at 15:17

0 Answers0