File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Hibernate:java.lang.ClassNotFoundException: org.hibernate.Session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Hibernate:java.lang.ClassNotFoundException: org.hibernate.Session" Watch "Hibernate:java.lang.ClassNotFoundException: org.hibernate.Session" New topic

Hibernate:java.lang.ClassNotFoundException: org.hibernate.Session

Ghaith Shamayleh

Joined: Apr 13, 2011
Posts: 14
Am getting the following exception, can anyone help

java.lang.ClassNotFoundException: org.hibernate.Session
at org.apache.catalina.loader.WebappClassLoader.loadClass(
at org.apache.catalina.loader.WebappClassLoader.loadClass(
at dao.AbstractReadDAO.getAll(
at managers.HomePageManager.getAllNews(
at servlets_manager.NewHomePage.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
at Source)
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

I believe, Hibernate library is not in CLASSPATH.

Not many get the right opportunity !
Ghaith Shamayleh

Joined: Apr 13, 2011
Posts: 14
Thanks a lot its solved now
I agree. Here's the link:
subject: Hibernate:java.lang.ClassNotFoundException: org.hibernate.Session
jQuery in Action, 3rd edition