I'm trying to get Hibernate 2.1 to work on Tomcat/Apache on Windows. I'm
going through chapter 1 of the docs and hitting some trouble. I've made
some modifications to the code to try to isolate it:
http://eugeneciurana.com/pastebin/pastebin.php?show=3277
On line 62 I get the following:
java.lang.NoClassDefFoundError
org.apache.jsp.hibernatetest_jsp._jspService(hibernatetest_jsp.java:61)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
hibarnate2.jar and everything in the hibernate lib directory I have copied over
to my application's lib directory. HibernateUtil compiles without
error. Any ideas how I would go about fixing this?
Thanks in advance,

Signature
Brian
Brian Victor - 08 Oct 2004 22:20 GMT
> On line 62 I get the following:
> java.lang.NoClassDefFoundError
To answer my own question right after spending 7 hours on it then
posting...
The problem was in my hibernate.cfg.xml file. I changed the package
that the Cat class was in, but didn't change it in the hibernate.cfg.xml
file to match.

Signature
Brian