This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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!).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: value faces is not a member of package javax
 
Similar Threads
FacesServlet not found
issues integrating seam2.1.1 and facelets 1.1.14 to myfaces 1.25, spring 2.5 and hibernate 3.4 app
loader constraints violated when linking javax/el/ELResolver class error
The requested resource (Servlet Faces Servlet is not available) is not available.
ERROR when I try to start JSF/RichFaces portlet on JBoss Portal