Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.el.PropertyNotFoundException

 
Shalabh Vyas
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had an exception while creating testing a JPA entity from JSF.Following are the steps I followed:

1.I created an JPA Entity class Employee.java as shown below.
2.I created a database on MySQL, data source and a persistence unit.
3.I then chose the option of creating JSF pages from Entity Classes in NetBeans 6.7.1.

When I run the project and try creating a New Employee, I get the javax.el.PropertyNotFound exception saying that jpa.entities.Employee does not contain property 'serialversionUID'. The serialVersionUID field was already created in the Entity class. Could anybody please explain why such exception is being thrown?

I've also posted the exception from the Server log.

Employee.java


Exception from Server log

 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's because it's a static method, I believe.

Why are you exposing the serialzation id? There's really no need.

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic