gkinu
asked on
JSF/Hibernate: NoClassDefFoundError: org/hibernate/Session
An eclipse JSF/Hibernate application. I have classes whose data am able to insert/update to a DB if i call the necessary update/insert functions from a test class located in the src folder. But when i call the same update/insert functions from a JSF/JSP interface, i get the error:
SEVERE: java.lang.NoClassDefFoundE rror: org/hibernate/Session
javax.faces.el.EvaluationE xception: java.lang.NoClassDefFoundE rror: org/hibernate/Session
at javax.faces.component.Meth odBindingM ethodExpre ssionAdapt er.invoke( MethodBind ingMethodE xpressionA dapter.jav a:102)
at com.sun.faces.application. ActionList enerImpl.p rocessActi on(ActionL istenerImp l.java:102 )
What should i do so that the same can work when called from a JSF/JSP interface? The necessary hibernate jar files are in a user library in the src folder.
Thanks
SEVERE: java.lang.NoClassDefFoundE
javax.faces.el.EvaluationE
at javax.faces.component.Meth
at com.sun.faces.application.
What should i do so that the same can work when called from a JSF/JSP interface? The necessary hibernate jar files are in a user library in the src folder.
Thanks
They need to be in the webroot lib folder of the deployed war file.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes. Am using Eclipse.