Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-2120

Can't have ejb references outside current config. ClassCastException on org.openejb.proxy.ProxyInfo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.1
    • 1.1.1
    • deployment, OpenEJB
    • Security Level: public (Regular issues)
    • None
    • Win XP, Intel, Sun JDK 142

    • Regression

    Description

      See http://mail-archives.apache.org/mod_mbox/geronimo-user/200606.mbox/%3c2E3C762A-A857-497F-9000-A7173EB177CC@yahoo.com%3e.

      I deploy (or distribute) a jar with an ejb, then deploy (or distribute) a war that references the ejb, and get:

      Error: Operation failed: java.lang.ClassCastException

      with this server.log entry:

      10:51:39,531 ERROR [Deployer] Deployment failed due to
      java.lang.ClassCastException
      at org.openejb.deployment.OpenEJBReferenceBuilder.checkRemoteProxyInfo(OpenEJBReferenceBuilder.java:133)
      at org.openejb.deployment.OpenEJBReferenceBuilder.createEJBRemoteRef(OpenEJBReferenceBuilder.java:159)
      at org.openejb.deployment.OpenEJBReferenceBuilder$$FastClassByCGLIB$$bfd62c9f.invoke(<generated>)
      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:122)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
      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.j2ee.deployment.EJBReferenceBuilder$$EnhancerByCGLIB$$d6cd2b5d.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>)

      Attachments

        1. GERONIMO-2120-djencks.patch
          9 kB
          David Jencks

        Issue Links

          Activity

            People

              djencks David Jencks
              tkirby Ted Kirby
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: