• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.NoClass DefFoundError: org/hibernate/Session

 
Harathi Rao
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have created a "reporter" folder(application) under Tomcat 5.0. So I placed all required jars including hibernate3.jar and jdbc driver jar under the following directory.

C:\Tomcat 5.0\webapps\reporter\WEB-INF\lib

I placed the hibernate.config.xml, mapping file and all the cllasses in

C:\Tomcat 5.0\webapps\reporter\WEB-INF\classes

I set an environmental vaiable TOMCAT_HOME to c:\Tomcat 5.0
But I am getting "java.lang.NoClassDefFoundError: org/hibernate/Session".
What could be the problem? Do I need to set any classpath for tomcat.

Note: The environmental variable "CLASSPATH" is empty.
your help would save me a lot of time.

Thanks
Harathi
 
Harathi Rao
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry.. Its my silly mistake.
I forgot to copy hibenate3.jar into the lib folder.
Now its working fine.

Thanks
Harathi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic