aspose file tools
The moose likes JSF and the fly likes javax.el.PropertyNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "javax.el.PropertyNotFoundException" Watch "javax.el.PropertyNotFoundException" New topic
Author

javax.el.PropertyNotFoundException

Shalabh Vyas
Greenhorn

Joined: Dec 17, 2008
Posts: 10
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



OCP-Java 6 (100%),OCWCD-JavaEE 5
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

It's because it's a static method, I believe.

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

-Cameron McKenzie


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: javax.el.PropertyNotFoundException
 
Similar Threads
ClassCastException thrown using @Inheritance and List
java.io.FileNotFoundException in J2ee application
InjectionException / FacesException - JNDI
struts portlet framework error
Web app JSF+Facelets+Hibernate error: "No Persistence provider for EntityManager named"