Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 80723 invoked from network); 22 Sep 2005 22:04:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2005 22:04:06 -0000 Received: (qmail 89911 invoked by uid 500); 22 Sep 2005 22:04:00 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 89860 invoked by uid 500); 22 Sep 2005 22:04:00 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 89846 invoked by uid 99); 22 Sep 2005 22:03:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2005 15:03:59 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of bljohnson@gmail.com designates 64.233.170.202 as permitted sender) Received: from [64.233.170.202] (HELO rproxy.gmail.com) (64.233.170.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2005 15:04:08 -0700 Received: by rproxy.gmail.com with SMTP id 40so41471rnz for ; Thu, 22 Sep 2005 15:03:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RoB9wwQHh776s9CfL5IMsOjjNf3q4sIiRVSTIYO+w75iSNKmP+Yrmuph0914gi91BdR6We9omjvvF5aruRbQx6Ex1qBr7HiJqc/b/WV64e+gzqCAJXxu+hiuoWY/NlwCBSeT7rh/7jTZ4GKGF+NzPU5wEQmVkF+BRv25TOgtv70= Received: by 10.38.4.7 with SMTP id 7mr18534rnd; Thu, 22 Sep 2005 15:03:38 -0700 (PDT) Received: by 10.38.8.53 with HTTP; Thu, 22 Sep 2005 15:03:38 -0700 (PDT) Message-ID: <9a27dace05092215033045c308@mail.gmail.com> Date: Thu, 22 Sep 2005 18:03:38 -0400 From: Brent Johnson Reply-To: Brent Johnson To: Cocoon Mailing List Subject: Re: Hibernate Tutorial + Jetty and ClassCastException In-Reply-To: <9a27dace050922145277132ea@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9a27dace050922145277132ea@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 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(Web= ApplicationHandler.java:342) > at com.myapp.hibernate.HibernateFilter.doFilter(HibernateFilter.java:= 32) > at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(Web= ApplicationHandler.java:334) > at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplic= ationHandler.java:286) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.jav= a: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