> > 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:
java.lang.ClassCastException
de.model.MenuObject cannot be cast to de.model.MenuObject
.. very easily.
Cris
This archive was generated by hypermail 2.0.0 : Wed Nov 01 2006 - 19:18:56 EST