Kevan,

 

I have changed the <session> tag to <entity> in my open-ejb-jar.xml . But iam getting an error like

 

Unable to initialize EJBContainer GBean: ejbName=ApplicationEntity
org.apache.geronimo.common.DeploymentException: Unable to initialize EJBContainer GBean: ejbName=ApplicationEntity
        at org.openejb.deployment.EntityBuilder.createBean(EntityBuilder.java:156)
        at org.openejb.deployment.EntityBuilder.buildBeans(EntityBuilder.java:110)
        at org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuilder.java:516)
        at org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.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.ModuleBuilder$$EnhancerByCGLIB$$2448a8b3.addGBeans(<generated>)
        at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:562)
        at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.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.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$3035b125.buildConfiguration(<generated>)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
        at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.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:852)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
        at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:106)
        at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:60)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: com/symcor/wlbx/util/Exception/InvalidOrgIdException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.getMethod0(Unknown Source)
        at java.lang.Class.getMethod(Unknown Source)
        at org.openejb.deployment.BMPContainerBuilder.buildVopMap(BMPContainerBuilder.java:142)
        at org.openejb.deployment.BMPContainerBuilder.buildIt(BMPContainerBuilder.java:111)
        at org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:354)
        at org.openejb.deployment.EntityBuilder.createBean(EntityBuilder.java:154)
        ... 32 more

 

I have attached the changed open-ejb-jar.xml as well.

 

Open-Ejb-jar for entity bean

 

<?xml version="1.0" encoding="UTF-8"?>

<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"

                   xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"

                   xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0"

                   xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"

                   xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">

   

            <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">

        <dep:moduleId>

            <dep:artifactId>wlbxdao-rc</dep:artifactId>

        </dep:moduleId>

        <dep:dependencies>

            <dep:dependency>

                <dep:groupId>console.dbpool</dep:groupId>

                <dep:artifactId>wlbx-ds</dep:artifactId>

            </dep:dependency>

                 

            </dep:dependencies>

    </dep:environment>               

   

 

    <enterprise-beans>

         <entity>

 

            <ejb-name>UserEntity</ejb-name>

            <jndi-name>ejb/UserEntity</jndi-name>

            <resource-ref>

               <ref-name>datasource/wlbx-ds</ref-name>

               <resource-link>wlbx-ds</resource-link>

            </resource-ref>

       </entity>

 

 <entity>

            <ejb-name>LockboxEntity</ejb-name>

            <jndi-name>ejb/LockboxEntity</jndi-name>

            <resource-ref>

               <ref-name>datasource/wlbx-ds</ref-name>

               <resource-link>wlbx-ds</resource-link>

            </resource-ref>

         </entity>

         <entity>

            <ejb-name>ApplicationEntity</ejb-name>

            <jndi-name>ejb/ApplicationEntity</jndi-name>

            <resource-ref>

               <ref-name>datasource/wlbx-ds</ref-name>

               <resource-link>wlbx-ds</resource-link>

            </resource-ref>

 </entity>

    <entity>

            <ejb-name>ProfileEntity</ejb-name>

            <jndi-name>ejb/ProfileEntity</jndi-name>

            <resource-ref>

               <ref-name>datasource/wlbx-ds</ref-name>

               <resource-link>wlbx-ds</resource-link>

            </resource-ref>

 </entity>

    </enterprise-beans>

 

</openejb-jar>

 

 


From: Kevan Miller [mailto:kevan.miller@gmail.com]
Sent: Wednesday, January 03, 2007 8:58 PM
To: user@geronimo.apache.org
Subject: Re: classcastException when trying to deploy

 

 

On Jan 3, 2007, at 9:47 AM, Kamalanathan Raman wrote:

 

<snip>

    <enterprise-beans>

            <ejb-name>UserEntity</ejb-name>

            <resource-ref>

               <resource-link>wlbx-ds</resource-link>

        </session>

            <ejb-name>LockboxEntity</ejb-name>

            <resource-ref>

               <resource-link>wlbx-ds</resource-link>

        </session>

            <ejb-name>ApplicationEntity</ejb-name>

            <resource-ref>

               <resource-link>wlbx-ds</resource-link>

        </session>

            <ejb-name>ProfileEntity</ejb-name>

            <resource-ref>

               <resource-link>wlbx-ds</resource-link>

        </session>

 

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***