So, if I have this class in the classpath twice (in two different jars)
would also cause the same issue, correct ?

I will take a look into the classloader/classpath issues. One thing I am
not sure though why I see this issue sporadically,
but not consistently ?...


Gul


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 23, 2007 11:08 AM
To: [email protected]
Subject: Re: Strange exception "classX incompatible with classX" ?

Hi Gul,

The root cause is class path or class loader problems. A class loaded by
a different class loader is considered to be a different class by Java
even if it has the same name.

Does this help?

Craig

On Nov 23, 2007, at 7:30 AM, Gul Onural wrote:

> Hi,
>
> We are observing a strange exception sporadically, for different JPA 
> classes. When we replace an ear file containing our jar with our jpa 
> classes, we see an exception  thrown :
>
> "2?com.mycompany.UserDetails incompatible with 
> com.mycompany.UserDetails"
>
> We see this exception even the class in question is unchanged.
>
> Did anyone saw this type of exception before ? What would be the route

> cause of this ?
>
> Gul
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp!

Reply via email to