Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could not instantiate Seam component: motorcycleCategService Problem

 
Giannis nasdades
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all,

I am trying to learn seam with jsf hibernate ajax by creating a simple advert application.

I used seam gen in to create a new project and generate the entity classes (i already had tables in the database).

After this i am tryign to follow the seam "hotel booking example" in the online documentation and create a new action to search for soemthjing "motorcycle category in my case".

I have an action class called MotorcycleCategImpl which holds some actions. Code below:



My entity bean is as follows:


Now i have a simple xhtml page from where i am trying to call the find method from the MotorcycleCategImpl class (as done the seam documentation roughly).

My xhtml page searchMotorcycles is as follows:

Now the problem is that as soon i try to load the above page i get the following error: Could not instantiate Seam component: motorcycleCategService

Any help would be appreciated. Find the stack trace below:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic