That class comes from a dependency you already have:
However, the scope is provided, which means it's not included in your web app. That's fine (and should be the case) for libraries provided by the container. However, I'm guessing this is Tomcat, and Tomcat doesn't come with CDI (full JEE containers like JBoss, WildFly, GlassFish and WebLogic do). You'll therefore have to include the dependency either in your JAR (by removing the scope), or by putting it in Tomcat somewhere. I heavily prefer the former.
Hi, trying to solve this problem I do removed Apache Tomcat from my netbeans and I instal the WildFly server in my netbeans, after start WildFly I run my xhtml file but the log of Run show Deploying on tomcat90 I can't understand.
WildFly start log:
Hi, 1 - Uninstall Apache Netbeans,
2 - Install Apache Netbeans,
3 - Install WildFly.25.0.0.Beta1 in Netbeans.
Now I am receiving "No suitable Deployment Server is defined for the project or globally."
Run away! Run away! Here, take this tiny ad with you: