Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 92906 invoked from network); 10 Oct 2007 13:31:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Oct 2007 13:31:09 -0000 Received: (qmail 10710 invoked by uid 500); 10 Oct 2007 13:30:55 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 10689 invoked by uid 500); 10 Oct 2007 13:30:55 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 10678 invoked by uid 99); 10 Oct 2007 13:30:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 06:30:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.138.81.65] (HELO ibis.ua) (195.138.81.65) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 13:30:56 +0000 Received: from [192.168.0.4] by ibis.ua (MDaemon PRO v9.5.6) with ESMTP id md50000620703.msg for ; Wed, 10 Oct 2007 16:29:33 +0300 Message-ID: <470CD3C4.3020602@ibis.ua> Date: Wed, 10 Oct 2007 16:29:40 +0300 From: Oleg Nitz Organization: IBIS User-Agent: Thunderbird 2.0.0.6 (X11/20070802) MIME-Version: 1.0 To: user@geronimo.apache.org Subject: ClassCastException: EjbJarInfo Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Processed: ibis.ua, Wed, 10 Oct 2007 16:29:33 +0300 (not processed: spam filter heuristic analysis disabled) X-Return-Path: on@ibis.ua X-Envelope-From: on@ibis.ua X-MDaemon-Deliver-To: user@geronimo.apache.org Reply-To: on@ibis.ua X-Virus-Checked: Checked by ClamAV on apache.org Hi! I am trying to move our app from Geronimo 1.1.1 to Geronimo 2.0 and I am getting a strange error during deployment: 16:15:55,569 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="irbis/irbis/1.0/ear?J2EEApplication=irbis/irbis/1.0/ear,j2eeType=EJBModule,name=irbis-ejb.jar" java.lang.ClassCastException: org.apache.openejb.assembler.classic.EjbJarInfo at org.apache.geronimo.openejb.OpenEjbSystemGBean$$FastClassByCGLIB$$5005cdd0.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.openejb.OpenEjbSystem$$EnhancerByCGLIB$$785b6d0a.createEjbJar() at org.apache.geronimo.openejb.EjbModuleImpl.start(EjbModuleImpl.java:123) ... Here irbis-ejb.jar is an EJB jar contained inside our EAR file. Also the EAR file contains two RAR files. Under debugger I see that the ejbJarInfo variable passed to createEjbJar() method is of the the same class EjbJarInfo that the first argument should have. Most probably there are two EjbJarInfo classes loaded via different classloaders. But I don't understand why this happens and how to avoid this. In the deployment plan there are no dependencies on standard Geronimo libraries or services, just on three additional jars like jConnect, that are completely independent of Geronimo libraries. Should I provide some more info? Regards, Oleg