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.

Bug 207485 - netbeans suggestes wrong location for missing netbeans.xml
Summary: netbeans suggestes wrong location for missing netbeans.xml
Status: RESOLVED DUPLICATE of bug 203710
Alias: None
Product: javaee
Classification: Unclassified
Component: CDI (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 22:45 UTC by hpgisler
Modified: 2012-01-19 05:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hpgisler 2012-01-18 22:45:47 UTC
a maven project has following bean class:

@SessionScoped
@Named
public class Login implements Serializable {   // <------ here netbeans complains
...
}

netbeans complains: "CDI artifact is found but there is no beans.xml file."

However, there is a beans.xml file in WEB-INF and compilation and deployment works
(only netbeans editor seems to have a problem with that).

If I follow netbeans suggestion to create the beans.xml in "Other Sources --> src/main/resources" 

the bean is actually not found by CDI and the code doesn't work.
Comment 1 Denis Anisimov 2012-01-19 05:15:06 UTC

*** This bug has been marked as a duplicate of bug 203710 ***