users@glassfish.java.net

Re: bizarre casting problem

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Wed, 02 Jan 2008 13:58:52 -0800

This means that the same class is loaded by 2 different classloaders. How did
you package your app?

thanks,
-marina

Glenn Holmer wrote:
> I have an app that, after being redeployed several times, fails with
> this bizarre error message:
>
> org.lyonlabs.qlink.QUser cannot be cast to org.lyonlabs.qlink.QUser
>
> The app uses JPA/TopLink and was built using NetBeans. I'm deploying to
> GlassFish v2ur1, and there doesn't seem to be any pattern to whether the
> error occurs after redeploying from NetBeans or from the GlassFish admin
> app.
>
> Has anybody else seen something like this?
>