• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.faces.model.ManagedBean not found

 
Vikash Ananda
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am extremely new to JSF. Infact this is the first Hello World Application I am building that has Ajax Support. I have written following code from website :
http://weblogs.java.net/blog/driscoll/archive/2008/11/a_simple_ajax_j.html


But Eclipse is not able to find classes for:
javax.faces.model.ManagedBean
javax.faces.model.SessionScoped

Jars added currently:
jsf-api.jar
jsf-impl.jar
jstl.jar
standard.jar
servlet-api.jar

and some commons jar files.

What jars should i include. I googled for it but could not get relevant information. Sadly, www.findjar.com is down.

Thanks,
Vikash Anand.
 
sri raman
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the jars you added is sufficient(for JSF). build your application once again and restart.

Make sure you have a proper entry in faces-config for ManagedBean
 
Vikash Ananda
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The exact error is:
The import javax.faces.model.ManagedBean cannot be resolved

in class Count.java

I have rebuilt the application and all jars are there in classpath and also in faces-config.xml file.

Please suggest.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!