users@jersey.java.net

Re: [Jersey] Problem with Bookstore app on tomcat

From: <Peter.Neu_at_gmx.net>
Date: Tue, 14 Jul 2009 14:45:05 +0200

Hi Paul,

I use the latest version of Jersey 1.1.0

The class cast exception thrown is very peculiar.

java.lang.ClassCastException: com.sun.jersey.spi.container.servlet.ServletContainer cannot be cast to javax.servlet.Filter

Cheers,
Pete

-------- Original-Nachricht --------
> Datum: Tue, 14 Jul 2009 14:34:35 +0200
> Von: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
> An: users_at_jersey.dev.java.net
> Betreff: Re: [Jersey] Problem with Bookstore app on tomcat

> Hi Pete,
>
> The error indicates you are using a version of the bookstore sample
> that is greater than the version of the dependent jersey jars.
>
> What versions of the bookstore sample and jersey jars are you using?
>
> Paul.
>
> On Jul 14, 2009, at 2:28 PM, Peter.Neu_at_gmx.net wrote:
>
> > Hello,
> >
> > I'm trying to run the bookstore app from the samples on a tomcat 6
> > with jre 1.5. When I try to run the app I get a Class Cast exception
> > with the Jersey filter:
> >
> > Exception starting filter Jersey Filter
> > java.lang.ClassCastException:
> > com.sun.jersey.spi.container.servlet.ServletContainer
> >
> > My IDE tells me that the class
> > com.sun.jersey.spi.container.servlet.ServletContainer is not
> > assignable to javax.filter.
> >
> > Any ideas what's wrong?
> >
> > Cheers,
> > Pete
> >
> > --
> > Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
> > für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> > For additional commands, e-mail: users-help_at_jersey.dev.java.net
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01