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 233988 - [74cat] missleading warning/inject session bean
Summary: [74cat] missleading warning/inject session bean
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: CDI (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-06 07:01 UTC by muellermi
Modified: 2013-08-08 02:28 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 muellermi 2013-08-06 07:01:51 UTC
Product Version = NetBeans IDE Dev (Build 201308032300)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01


Given a class to access data via JPA:

@Stateless
public class PeppProposalFacade extends AbstractFacade<PeppProposal>{
[...]

and a named bean

@RequestScoped
@Named
public class PeppProposalTest {
    @Inject PeppProposalFacade _facade;
    
    public int getCount(){
        return _facade.count();
    }
}

At the injection point, NB displays "Unsatisfied dependeny: no bean...", whilst the bean is still valid and might be used.
This warning appears for EE7 only. No such warning on EE6.
Comment 1 Sergey Petrov 2013-08-06 20:29:46 UTC
ok, may be I miss ejb can be injected without scope definition in ee7, thanks.
Comment 2 Sergey Petrov 2013-08-07 11:10:18 UTC
fbba71bb93ea handle session beans
Comment 3 Quality Engineering 2013-08-08 02:28:55 UTC
Integrated into 'main-silver', will be available in build *201308072300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fbba71bb93ea
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #233988 allow session beans to surivive filters