Friday, May 10, 2019

CDI in IntelliJ Java Enterprise projects

I was following this tutorial to deploy a Primefaces application to Wildfly 16, but I kept getting an error

unable to find cdi beanmanager

I have tried adding Maven support and adding the dependency




to no avail.

Funnily, setting webapp version="2.3" instead of version="4.0" in web.xml fixes the problem.

Then I added CDI support as shown here:

and using version="4.0" and things are working.

No comments: