Apache NetBeans version
Apache NetBeans 19 release candidate
What happened
I have a Gradle web application project that runs in Payara with the following problem.
All of my @ViewScoped & @Named classes (e.g. controllers) are showing what looks like a red compile error on the class name that says "CDI artifact is found but there is no beans.xml file." However, there is a beans.xml file located in Web Pages->WEB-INF. This error does not appear in NB 18. Also, I can build and deploy the project without problems. So, apparently more of a "cosmetic" issue?
How to reproduce
Create a Gradle Jakarta EE 10 web application that runs on Payara. Create a ViewScoped and Named backing bean within the project. Add a beans.xml file to WEB-INF.
Did this work correctly in an earlier version?
Apache NetBeans 18
Operating System
macOS Ventura 13.4.1
JDK
OpenJDK 64-Bit Server VM Temurin-11.0.20+8
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
This occurs every time I use NB 19.
Are you willing to submit a pull request?
Yes