cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cris Daniluk" <>
Subject Re: Using Cayenne withTomcat gives ClassCastException
Date Thu, 02 Nov 2006 00:18:30 GMT
> > This seems like some kind of classloader issue. John need to make
> > sure that cayenne.jar is loaded by the same classloader as the app
> > code. In most simple case this means putting it in the war. But there
> > are more weird cases such as this one:
> >
> Hi thanks for answering,
> You are right, i use diffrent Cayenne.jarS.

You mean, you have more than one cayenne.jar on the classpath? That
would be your problem... because Tomcat uses nested classloaders, you
can run into problems like this:

     de.model.MenuObject cannot be cast to de.model.MenuObject

.. very easily.


View raw message