even if the BusinessObjects are compiled with a different version of cayenne
as used in tomcat, there are strange runtime-errors ...
2006/11/2, Cris Daniluk <cris.danilu..mail.com>:
>
> > > 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 : Thu Nov 02 2006 - 00:57:26 EST