File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes value faces is not a member of package javax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "value faces is not a member of package javax" Watch "value faces is not a member of package javax" New topic
Author

value faces is not a member of package javax

Raaga Maalika
Greenhorn

Joined: Aug 30, 2011
Posts: 4
Hi, I have written a simple JSF app (am a newbie to JSF). I have included the jar files jsf-api-1.2-b19.jar and jsf-impl-1.2-b19.jar in the app through maven (I checked that these files exist in "...\.m2\repository" directory. When I run the app(using Jetty server) with the command "mvn jetty:run", I get the following error:

[ERROR] C:\BookApp\src\main\scala\BookApp\controller\BookController.scala:4: error: value faces is not a member of package javax
[INFO] import javax.faces.bean._
[INFO] ^
[ERROR] one error found
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR

It's a simple Scala class which just creates a new Book (I have declared it as a ManagedBean). Can someone please help?

Raaga Maalika
Greenhorn

Joined: Aug 30, 2011
Posts: 4
and one more thing I don't understand is: jsf-api.jar is supposed to contain javax.faces.bean right? How can that be missing from it (I checked the contents of the jsf-api & jsf-impl jar files. They don't contain the javax.faces.bean package!).
 
Consider Paul's rocket mass heater.
 
subject: value faces is not a member of package javax
 
Similar Threads
loader constraints violated when linking javax/el/ELResolver class error
issues integrating seam2.1.1 and facelets 1.1.14 to myfaces 1.25, spring 2.5 and hibernate 3.4 app
ERROR when I try to start JSF/RichFaces portlet on JBoss Portal
FacesServlet not found
The requested resource (Servlet Faces Servlet is not available) is not available.