cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brent Johnson <bljohn...@gmail.com>
Subject Hibernate Tutorial + Jetty and ClassCastException
Date Thu, 22 Sep 2005 21:52:36 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message