I'm building my first Struts/Tiles/Hibernate application and ran into some problems.
I have a Businessclass that has a method for a List, I call on that method straight in my
jsp. This same approach did work on another tutorial I was working on, but in my project now it isn't.
Here is the method in CustomerDAO.java:
This is my accOptions.jsp:
And this is my rather long (sorry for that) HibernateUtil.java:
Now when I call on the jsp page the first time I get:
When I refresh that same page i get same exception but different root cause:
I've googled around, found things about classpaths, libraries and such but as far as I can see all is well.
I've got hibernate2.jar AND cglib-full-2.0.1.jar in my WEB-INF/lib.
In my
java files I'm referering to the right classes (otherwise Eclipse would warn me about it), so I'm frustrated out of idea's!
Can anyone help me?
O yeah, using JDK 1.5,
Tomcat 5.5.4 and Eclipse/MyEclipse.
Another thing. The first rootcause with line 39 is from the throw/catch at wanting to build a SessionFactory and the second one at CustomerDAO:195 is at the List method at trying to get the HibernateUtil.getSession
[ December 22, 2004: Message edited by: Ritchie Warsi ]