This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

value faces is not a member of package javax

 
Raaga Maalika
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic