This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Erroneous error "CDI artifact is found but there is no beans.xml file." | ||
---|---|---|---|
Product: | javaee | Reporter: | mccomber <mccomber> |
Component: | CDI | Assignee: | Sergey Petrov <sj-nb> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | arturo_serrano, zeratul2k |
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | IDE log |
Description
mccomber
2013-06-18 11:46:40 UTC
Created attachment 135960 [details]
IDE log
I am also seeing this bug with NB 7.3.1. I have just upgraded from NetBeans 7.2 in order to try and resolve [this other bug|http://stackoverflow.com/questions/10757793/netbeans-warning-on-event-injection], but this new bug is even worse! I'm going to try downgrading to NB 7.2.1 instead. For the record: I have a WAR project, and my beans.xml file is in my WEB-INF directory. I can confirm this behaviour after updating a Netbeans 7.3. It's very distracting to have false-positive red lines on files I'm working on. For 7.3.1 it may have sense to try to create meta-inf folder with beans.xml just to avoid this warning, but I don't know if it may or nor broke any functionality. *** This bug has been marked as a duplicate of bug 230730 *** As a temporary fix, copy (or move) the build.xml file from /WEB-INF/build.xml directly into the root. My old setup: Web Pages WEB-INF beans.xml faces-config.xml web.xml (does not work) New setup: Web Pages WEB-INF faces-config.xml web.xml beans.xml (works - beans.xml has the same hierarchy as WEB-INF) |