Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 24180 invoked from network); 14 Jun 2006 17:04:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jun 2006 17:04:40 -0000 Received: (qmail 19913 invoked by uid 500); 14 Jun 2006 17:04:37 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 19896 invoked by uid 500); 14 Jun 2006 17:04:37 -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 Delivered-To: moderator for user@geronimo.apache.org Received: (qmail 7595 invoked by uid 99); 14 Jun 2006 15:19:08 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ted.kirby@gmail.com designates 64.233.184.239 as permitted sender) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=qV9NZpo0wC9kxtVDvFSms9jfnPfpXp0KJEbJRxs9f4/fY1251HmaiUvtwuDg4+IbiqOEvv1HCBlc7d7mzsljKinfcGxW0yoff50Dgac1cpIj0FuZ2tj8u5nLf7Jn2Z7fsI7dStCy5q9wqi8GWABLz83bPU/BF3Gzl3HKM592Nc0= Message-ID: <3da992810606140818h2a33eaa5o4b1a901fdc8e4f7@mail.gmail.com> Date: Wed, 14 Jun 2006 11:18:45 -0400 From: "Ted Kirby" To: user@geronimo.apache.org Subject: Re: java.lang.ClassCastException: org.openejb.proxy.ProxyInfo In-Reply-To: <3da992810606131821n180c585fxd70a18b22e4cdf15@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4776_10742076.1150298325807" References: <3da992810606051455j4122c68cj8669cc604a9538bf@mail.gmail.com> <3da992810606131821n180c585fxd70a18b22e4cdf15@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_4776_10742076.1150298325807 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks David. I filed JIRA 2120: http://issues.apache.org/jira/browse/GERONIMO-2120 If I distribute the jar, then distribute the war, I get the same problem. On war distribution, the jar config gets started... On 6/13/06, Ted Kirby wrote: > > I think this is a geronimo problem. > ProxyInfo is in openejb-core.jar, which is in the classpath of both > openejb & openejb-deployer configs. > > I define an ejb in an MDBDemo config (see attached openejb-jar.xml). > Through deployment, the openejb-deployer classloader is used for > ProxyInfo. > The config is then stopped and serialized. > When it is subsequently started (all as part of my deploy from the command > line), > the openejb classloader is used for ProxyInfo. > > Next, I deploy an MDBDemoWar config (see attached geronimo-web.xml) from > the command-line deployer. I get the traceback below. > The ProxyInfo from gbeanData.getAttribute("proxyInfo") is from the openejb > class loader, > whereas the ProxyInfo from OpenEJBReferenceBuilder is from the > openejb-deployer class loader. > Hence, the ClassCastException. > > I put some tracing in, including printing out the classloader info to make > these determinations. > > It seems that, based on this, a restriction is that you can't refer to an > ejb in another configuration? > > > On 6/5/06, Ted Kirby wrote: > > > > I am trying to get an MDB Sample from http://opensource2.atlassian.com/confluence/oss/pages/viewpage.action?pageId=1153 > > running on 1.1. > > > > I upgraded the plans from the sample, and have attached them to this > > note. > > When I deploy the messaging war file, I get: > > > > Error: Unable to distribute messaging-ejb-1.1-SNAPSHOT.war: > > java.lang.ClassCastException: org.openejb.proxy.ProxyInfo > > > > org.openejb.proxy.ProxyInfo > > > > I also get an error and long traceback in server log, which starts with: > > > > 15:51:11,689 ERROR [Deployer] Deployment failed due to > > java.lang.ClassCastException: org.openejb.proxy.ProxyInfo > > at org.openejb.deployment.OpenEJBReferenceBuilder.checkRemoteProxyInfo( > > OpenEJBReferenceBuilder.java :121) > > at org.openejb.deployment.OpenEJBReferenceBuilder.createEJBRemoteRef( > > OpenEJBReferenceBuilder.java:147) > > at > > org.openejb.deployment.OpenEJBReferenceBuilder$$FastClassByCGLIB$$bfd62c9f.invoke() > > > > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java(Inlined > > Compiled Code)) > > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke( > > FastMethodInvoker.java(Compiled Code)) > > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke ( > > GBeanOperation.java(Inlined Compiled Code)) > > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke( > > GBeanInstance.java(Compiled Code)) > > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java(Inlined > > Compiled Code)) > > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke( > > RawOperationInvoker.java(Compiled Code)) > > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept( > > ProxyMethodInterceptor.java(Compiled Code)) > > at > > org.apache.geronimo.j2ee.deployment.EJBReferenceBuilder$$EnhancerByCGLIB$$3716d4c8.createEJBRemoteRef > > () > > at org.apache.geronimo.j2ee.deployment.RefContext.getEJBRemoteRef( > > RefContext.java:69) > > at org.apache.geronimo.naming.deployment.ENCConfigBuilder.addEJBRef( > > ENCConfigBuilder.java:412) > > at org.apache.geronimo.naming.deployment.ENCConfigBuilder.addEJBRefs( > > ENCConfigBuilder.java:339) > > at > > org.apache.geronimo.naming.deployment.ENCConfigBuilder.buildComponentContext( > > ENCConfigBuilder.java:731) > > at > > org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.buildComponentContext > > (TomcatModuleBuilder.java:458) > > at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans( > > TomcatModuleBuilder.java :288) > > at > > org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$$FastClassByCGLIB$$6f85ec2c.invoke > > () > > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java(Inlined > > Compiled Code)) > > > > > ------=_Part_4776_10742076.1150298325807 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Thanks David.
 
 
If I distribute the jar, then distribute the war, I get the same problem.
On war distribution, the jar config gets started...

 
On 6/13/06, Ted Kirby <ted.kirby@gmail.com> wrote:
I think this is a geronimo problem. 
ProxyInfo is in openejb-core.jar, which is in the classpath of both openejb & openejb-deployer configs.
 
I define an ejb in an MDBDemo config (see attached openejb-jar.xml).
Through deployment, the openejb-deployer classloader is used for ProxyInfo.
The config is then stopped and serialized.
When it is subsequently started (all as part of my deploy from the command line),
the openejb classloader is used for ProxyInfo.
 
Next, I deploy an MDBDemoWar config (see attached geronimo-web.xml) from the command-line deployer.  I get the traceback below.
The ProxyInfo from gbeanData.getAttribute("proxyInfo") is from the openejb class loader,
whereas the ProxyInfo from OpenEJBReferenceBuilder is from the openejb-deployer class loader.
Hence, the ClassCastException.
 
I put some tracing in, including printing out the classloader info to make these determinations.
 
It seems that, based on this, a restriction is that you can't refer to an ejb in another configuration?

 
On 6/5/06, Ted Kirby <ted.kirby@gmail.com> wrote:

I upgraded the plans from the sample, and have attached them to this note.

When I deploy the messaging war file, I get:

 Error: Unable to distribute messaging-ejb-1.1-SNAPSHOT.war:
 java.lang.ClassCastException: org.openejb.proxy.ProxyInfo

     org.openejb.proxy.ProxyInfo

I also get an error and long traceback in server log, which starts with:

15:51:11,689 ERROR [Deployer] Deployment failed due to
java.lang.ClassCastException: org.openejb.proxy.ProxyInfo
 at org.openejb.deployment.OpenEJBReferenceBuilder.checkRemoteProxyInfo(OpenEJBReferenceBuilder.java :121)
 at org.openejb.deployment.OpenEJBReferenceBuilder.createEJBRemoteRef(OpenEJBReferenceBuilder.java:147)
 at org.openejb.deployment.OpenEJBReferenceBuilder$$FastClassByCGLIB$$bfd62c9f.invoke(<generated>)
 at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java(Inlined Compiled Code))
 at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java(Compiled Code))
 at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke (GBeanOperation.java(Inlined Compiled Code))
 at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java(Compiled Code))
 at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java(Inlined Compiled Code))
 at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java(Compiled Code))
 at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java(Compiled Code))
 at org.apache.geronimo.j2ee.deployment.EJBReferenceBuilder$$EnhancerByCGLIB$$3716d4c8.createEJBRemoteRef(<generated>)
 at org.apache.geronimo.j2ee.deployment.RefContext.getEJBRemoteRef(RefContext.java:69)
 at org.apache.geronimo.naming.deployment.ENCConfigBuilder.addEJBRef(ENCConfigBuilder.java:412)
 at org.apache.geronimo.naming.deployment.ENCConfigBuilder.addEJBRefs(ENCConfigBuilder.java:339)
 at org.apache.geronimo.naming.deployment.ENCConfigBuilder.buildComponentContext (ENCConfigBuilder.java:731)
 at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.buildComponentContext(TomcatModuleBuilder.java:458)
 at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans( TomcatModuleBuilder.java :288)
 at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$$FastClassByCGLIB$$6f85ec2c.invoke(<generated>)
 at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java(Inlined Compiled Code))




------=_Part_4776_10742076.1150298325807--