This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes Usage of @Named Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "Usage of @Named" Watch "Usage of @Named" New topic
Author

Usage of @Named

Carlos Jorge Tavares Ferreira
Greenhorn

Joined: Dec 10, 2007
Posts: 17
Hi,

I'm using the @Named annotation on a class, combined with @Stateless:



But when I try to reference it via EL, i get the following error:

"Target Unreachable, identifier 'test' resolved to null".

What am I doing wrong?

BTW, I'm using Netbeans 6.9.1 with Glassfish v3.

Kind regards,

Carlos Ferreira
Carlos Jorge Tavares Ferreira
Greenhorn

Joined: Dec 10, 2007
Posts: 17
Nevermind, I was missing the beans.xml file.

Kind regards,

Carlos Ferreira
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Usage of @Named
 
It's not a secret anymore!