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 <[EMAIL PROTECTED]>:

> > 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

Reply via email to