Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 57223 invoked from network); 4 Jan 2007 04:50:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jan 2007 04:50:20 -0000 Received: (qmail 56963 invoked by uid 500); 4 Jan 2007 04:50:02 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 56932 invoked by uid 500); 4 Jan 2007 04:50:02 -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 56839 invoked by uid 99); 4 Jan 2007 04:49:55 -0000 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_FONT_BIG,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [61.95.162.76] (HELO Kecgate02.infosys.com) (61.95.162.76) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 20:49:51 -0800 Received: from indhubbhs01.ad.infosys.com ([192.168.200.81]) by Kecgate02.infosys.com with InterScan Messaging Security Suite; Thu, 04 Jan 2007 10:11:31 +0530 Received: from BLRKECMSG04.ad.infosys.com ([172.25.213.134]) by indhubbhs01.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 4 Jan 2007 10:18:19 +0530 Received: from BLRKECMSG13.ad.infosys.com ([172.22.147.5]) by BLRKECMSG04.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 4 Jan 2007 10:18:19 +0530 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C72FBB.8DFA9ED8" Subject: RE: classcastException when trying to deploy Date: Thu, 4 Jan 2007 10:18:18 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: classcastException when trying to deploy Thread-Index: AccvS74Dfp1d6IYaRwOMyeb6d7xR6QAbhEFw From: "Kamalanathan Raman" To: X-OriginalArrivalTime: 04 Jan 2007 04:48:19.0365 (UTC) FILETIME=[8E26DD50:01C72FBB] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C72FBB.8DFA9ED8 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Kevan,=0D =0D I have changed the tag to in my open-ejb-jar.xml . But iam getting an error like =0D Unable to initialize EJBContainer GBean: ejbName=3DApplicationEntity org.apache.geronimo.common.DeploymentException: Unable to initialize EJBContainer GBean: ejbName=3DApplicationEntity at org.openejb.deployment.EntityBuilder.createBean(EntityBuilder.java:156) at org.openejb.deployment.EntityBuilder.buildBeans(EntityBuilder.java:110) at org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuild er.java:516) at org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20. invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInv oker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.j ava:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.jav a:817) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperation Invoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyM ethodInterceptor.java:96) at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$2448 a8b3.addGBeans() at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration( EARConfigBuilder.java:562) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$ 38e56ec6.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInv oker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.j ava:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.jav a:817) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperation Invoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyM ethodInterceptor.java:96) at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$30 35b125.buildConfiguration() 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.invo ke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInv oker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.j ava:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.jav a:852) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239 ) at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDepl oy(AbstractDeployCommand.java:106) at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(Distri buteCommand.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(BMPContainerBuild er.java:142) at org.openejb.deployment.BMPContainerBuilder.buildIt(BMPContainerBuilder.j ava:111) at org.openejb.deployment.AbstractContainerBuilder.createConfiguration(Abst ractContainerBuilder.java:354) at org.openejb.deployment.EntityBuilder.createBean(EntityBuilder.java:154) ... 32 more =0D I have attached the changed open-ejb-jar.xml as well. =0D Open-Ejb-jar for entity bean =0D =0D wlbxdao-rc console.dbpool wlbx-ds =0D =0D =0D =0D =0D UserEntity ejb/UserEntity datasource/wlbx-ds wlbx-ds =0D LockboxEntity ejb/LockboxEntity datasource/wlbx-ds wlbx-ds ApplicationEntity ejb/ApplicationEntity datasource/wlbx-ds wlbx-ds ProfileEntity ejb/ProfileEntity datasource/wlbx-ds wlbx-ds =0D =0D =0D ________________________________ From: Kevan Miller [mailto:kevan.miller@gmail.com]=0D Sent: Wednesday, January 03, 2007 8:58 PM To: user@geronimo.apache.org Subject: Re: classcastException when trying to deploy =0D =0D On Jan 3, 2007, at 9:47 AM, Kamalanathan Raman wrote: =0D UserEntity wlbx-ds LockboxEntity wlbx-ds ApplicationEntity wlbx-ds ProfileEntity wlbx-ds =0D **************** 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*** ------_=_NextPart_001_01C72FBB.8DFA9ED8 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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=
=3DApplicationEntity
org.apache.geronimo.common.DeploymentException: Unable to=
 initialize EJBContainer GBean: ejbName=
=3DApplicationEntity
        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.in=
voke(<generated>)
        at=
 net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at=
 org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvok=
er.java:38)
        at=
 org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.jav=
a: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(RawOperationIn=
voker.java:35)
        at=
 org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMet=
hodInterceptor.java:96)
        at=
 org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$2448a8=
b3.addGBeans(<generated>)
        at=
 org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EA=
RConfigBuilder.java:562)
        at=
 org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38=
e56ec6.invoke(<generated>)
        at=
 net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at=
 org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvok=
er.java:38)
        at=
 org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.jav=
a: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(RawOperationIn=
voker.java:35)
        at=
 org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMet=
hodInterceptor.java:96)
        at=
 org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$3035=
b125.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(FastMethodInvok=
er.java:38)
        at=
 org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.jav=
a:122)
        at=
 org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:=
852)
        at=
 org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)<=
o:p>
        at=
 org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy=
(AbstractDeployCommand.java:106)
        at=
 org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(Distribu=
teCommand.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.jav=
a:111)
        at=
 org.openejb.deployment.AbstractContainerBuilder.createConfiguration(Abstra=
ctContainerBuilder.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=3D"1.0" encoding= =3D"UTF-8"?>

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

           &n= bsp;       xmlns:nam= =3D"http://geronimo.apache.org/xml/ns/naming-1.1"

           &n= bsp;       xmlns:pkgen= =3D"http://www.openejb.org/xml/ns/pkgen-2.0"

           &n= bsp;       xmlns:sec= =3D"http://geronimo.apache.org/xml/ns/security-1.1"

           &n= bsp;       xmlns:sys= =3D"http://geronimo.apache.org/xml/ns/deployment-1.1">

   =

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

        <dep:moduleId>

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

        </dep:moduleId>

        <dep:dependencies>

            <dep:dependency>

           &n= bsp;    <dep:groupId>console.dbpool</dep:groupId>

                <dep:artifac= tId>wlbx-ds</dep:artifactId>

            </dep:dependency>

           &n= bsp;     

           = </dep:dependencies>

    </dep:environment>        &nb= sp;      

   =

 

    <enterprise-beans>

         <entity>

 

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

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

            <resource-ref>

           &n= bsp;   <ref-name>datasource/wlbx-ds</ref-name>

           &n= bsp;   <resource-link>wlbx-ds</resource-link>=

            </resource-ref>

       </entity>

 

 <entity>

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

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

            <resource-ref>

           &n= bsp;   <ref-name>datasource/wlbx-ds</ref-name>

           &n= bsp;   <resource-link>wlbx-ds</resource-link>=

            </resource-ref>

         </entity>

         <entity>

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

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

            <resource-ref>

           &n= bsp;   <ref-name>datasource/wlbx-ds</ref-name>

           &n= bsp;   <resource-link>wlbx-ds</resource-link>=

            </resource-ref>

 </entity>

    <entity>

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

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

            <resource-ref>

           &n= bsp;   <ref-name>datasource/wlbx-ds</ref-name>

           &n= bsp;   <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>

      &nb= sp;     <ejb-name>UserEntity</ejb-name>      &nb= sp;     <resource-ref>

      &nb= sp;        <resource-link>wlbx-ds</resource-link>      &nb= sp; </session>

      &nb= sp;     <ejb-name>LockboxEntity</ejb-name>      &nb= sp;     <resource-ref>

      &nb= sp;        <resource-link>wlbx-ds</resource-link>      &nb= sp; </session>

      &nb= sp;     <ejb-name>ApplicationEntity</ejb-name>      &nb= sp;     <resource-ref>

      &nb= sp;        <resource-link>wlbx-ds</resource-link>      &nb= sp; </session>

      &nb= sp;     <ejb-name>ProfileEntity</ejb-name>      &nb= sp;     <resource-ref>

      &nb= sp;        <resource-link>wlbx-ds</resource-link>      &nb= sp; </session>

 <= b>

****************= 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***
------_=_NextPart_001_01C72FBB.8DFA9ED8--