This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSF and the fly likes Error: Target Unreachable, identifier 'StoreNameBean' resolved to null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Error: Target Unreachable, identifier Watch "Error: Target Unreachable, identifier New topic
Author

Error: Target Unreachable, identifier 'StoreNameBean' resolved to null

Surendra Kumar
Ranch Hand

Joined: Jul 04, 2006
Posts: 235
Hi,

I have a problem with my very simple first JSF app.
when I access page, I get the following error.

org.apache.jasper.el.JspPropertyNotFoundException: /inputname.jsp(15,3) '#{StoreNameBean.personName}' Target Unreachable, identifier 'StoreNameBean' resolved to null

what's the problem? I searched google, but couln't find any solution.

I have all necessary libraries in project, and I am using jsf 1.2.

jsf page:


faces-config.xml


web.xml
--------
Santhosh Krishnamoorthy
Greenhorn

Joined: Nov 24, 2008
Posts: 2
Change the bean scope form the request to session in faces config file and try it out
rajkiran vadla
Greenhorn

Joined: Nov 26, 2011
Posts: 11
The problem is resolved when i changes the scope to session.Can you explain me the reason.
Thanks
Raj
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16022
    
  20

I don't know why changing the scope fixed it, but I do know that "StoreNameBean" is not a proper name for a backing bean. StoreNameBean is an instance, not a class, so its name should be a lower-case letter. JSF will usually accept a mis-capitalized name, but some of the development tools will not, and JSF annotations won't accept such names by default.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error: Target Unreachable, identifier 'StoreNameBean' resolved to null