Found the problem. Some jar files in the classpath were different versions so it was causing the ClassCastException. I chopped down the classpath to only what was expressly needed to start the webapp and it works.
- Brent On 9/22/05, Brent Johnson <[EMAIL PROTECTED]> wrote: > I have a Cocoon webapp based on the latest version of Cocoon. It uses > Hibernate and the "HibernateFiler" idea posted on the Wiki > (HibernateWithCocoon Tutorial or something similarly named). The app > works great under Tomcat and has for a while, but if I try and start > it using Jetty I get the following exception: > > java.lang.ClassCastException > ...snip... > at > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1123) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) > at > org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342) > at com.myapp.hibernate.HibernateFilter.doFilter(HibernateFilter.java:32) > at > org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) > at > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) > ...snip... > > Line 32 of my HibernateFilter is this: > chain.doFilter(request, response); > > So when it calls that, whammo ClassCastException. This exact same > webapp works fine under Tomcat. Anyone have any ideas where I should > look to track down the problem? I've looked in my log4j logs, > nothing. I looked in the WEB-INF/logs and the only thing I get is > that exception. It looks like Hibernate starts fine and everything is > going well, but when I hit the first page in my webapp I get a > ClassCastException. > > Thanks. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
