aspose file tools*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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