I am trying to put an OpenSessionInViewFilter into the http-invoker in JBoss so that the Managers that access my DAO objects can get their objects in one session, thus enabling me to use lazy loading in Hibernate.
Therefore, I put a filter and filter-mapping into
deploy/http-invoker.sar/invoker.war/WEB-INF/web.xml
for the
org.springframework.orm.hibernate.support.OpenSessionInViewFilter
However, I get the following error when starting JBoss:
2005-12-30 12:07:05,053 ERROR [org.jboss.web.localhost.Engine] StandardContext[/invoker]Exception starting filter hibernateFilter
java.lang.ClassNotFoundException: org.springframework.orm.hibernate.support.OpenSessionInViewFilter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
Where would I put a path to the Hibernate JAR file in order to fix this problem? And when I do, what is the path relative to? The application deployment or lib directory?
Thanks for the help.
Richard