Whenever I deploy a war to wildfly 8 or 10 (in this case it's a jax-rs service), I see the following line
[javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 151) Initializing Mojarra 2.2.11-jbossorg-1 20150505-1501 for context
Since JSF is not used in the application, is there a way to stop mojarra from being initialized?
Add a jboss-deployment-structure.xml file to your WEB-INF folder to stop deployment for a single war
<jboss-deployment-structure>
<deployment>
<exclude-subsystems>
<subsystem name="jsf" />
</exclude-subsystems>
</deployment>
</jboss-deployment-structure>
You can remove
<subsystem xmlns="urn:jboss:domain:jsf:1.0"/>
from your profile. It should stop Mojarra initialization.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With