users@glassfish.java.net

Help to TopLink error-java.lang.LinkageError: loader constraint violation

From: <glassfish_at_javadesktop.org>
Date: Tue, 25 Sep 2007 09:44:44 PDT

I've been used toplink with tomcat 5.5 (aplication manager) and i've had some problems that I cant fix or find solution....I'm using toplink http://download.java.net/javaee5/promoted/shared/glassfish-persistence/glassfish-persistence-installer-v2-b41.jar) with tomcat 5.5 and i've had this exeception:

java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "demercado.negocio.Fornecedor.get(Ljava/lang/String;)Ldemercado/negocio/Fornecedor;" the class loader (instance of oracle/toplink/essentials/internal/ejb/cmp3/JavaSECMPInitializer$TempEntityLoader) of the current class, demercado/negocio/Fornecedor, and the class loader (instance of org/apache/catalina/loader/WebappClassLoader) for interface demercado/seguranca/IFornecedor have different Class objects for the type demercado/negocio/Fornecedor used in the signature
        java.lang.Class.getDeclaredFields0(Native Method)
        java.lang.Class.privateGetDeclaredFields(Class.java:2291)
        java.lang.Class.getDeclaredFields(Class.java:1743)
        oracle.toplink.essentials.internal.security.PrivilegedAccessHelper.getDeclaredFields(PrivilegedAccessHelper.java:189)
        oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataHelper.getFields(MetadataHelper.java:428).......

I already try set toplink toplink.weaving=false as described here https://glassfish.dev.java.net/issues/show_bug.cgi?id=3420 but it dont WORK YEAT !!!!!
Somebody Can help me ou send me some link that a can read how to fix ?

Thanks.

Fernando Franzini - Brazil.
[Message sent by forum member 'fernandofranzini' (fernandofranzini)]

http://forums.java.net/jive/thread.jspa?messageID=236988