aspose file tools*
The moose likes JDBC 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
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Hibernate:java.lang.ClassNotFoundException: org.hibernate.Session" Watch "Hibernate:java.lang.ClassNotFoundException: org.hibernate.Session" New topic
Author

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

Ghaith Shamayleh
Greenhorn

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(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at dao.AbstractReadDAO.getAll(AbstractReadDAO.java:57)
at managers.HomePageManager.getAllNews(HomePageManager.java:258)
at servlets_manager.NewHomePage.doPost(NewHomePage.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

I believe, Hibernate library is not in CLASSPATH.


S.D. MADHAN
Not many get the right opportunity !
Ghaith Shamayleh
Greenhorn

Joined: Apr 13, 2011
Posts: 14
Thanks a lot its solved now
 
 
subject: Hibernate:java.lang.ClassNotFoundException: org.hibernate.Session