Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 71769 invoked from network); 4 Jan 2007 05:41:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jan 2007 05:41:40 -0000 Received: (qmail 22745 invoked by uid 500); 4 Jan 2007 05:41:44 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 22736 invoked by uid 500); 4 Jan 2007 05:41:44 -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 22725 invoked by uid 99); 4 Jan 2007 05:41:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 21:41:44 -0800 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 (herse.apache.org: local policy) Received: from [220.227.179.21] (HELO Kecgate03.infosys.com) (220.227.179.21) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 21:41:33 -0800 Received: from indhubbhs01.ad.infosys.com ([192.168.200.81]) by Kecgate03.infosys.com with InterScan Messaging Security Suite; Thu, 04 Jan 2007 11:14:13 +0530 Received: from BLRKECMSG14.ad.infosys.com ([172.22.147.6]) by indhubbhs01.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 4 Jan 2007 11:10:13 +0530 Received: from BLRKECMSG13.ad.infosys.com ([172.22.147.5]) by BLRKECMSG14.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 4 Jan 2007 11:10:13 +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_01C72FC2.CE1373DC" Subject: RE: classcastException when trying to deploy Date: Thu, 4 Jan 2007 11:10:12 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: classcastException when trying to deploy Thread-Index: Accvvx65LMy6PXKaQyWHHVqhp69suQAA5sgw From: "Kamalanathan Raman" To: X-OriginalArrivalTime: 04 Jan 2007 05:40:13.0385 (UTC) FILETIME=[CE409B90:01C72FC2] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C72FC2.CE1373DC Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Nicholas , it is working now . =20 ________________________________ From: Nicholas Irving [mailto:nirving@darkedges.com]=20 Sent: Thursday, January 04, 2007 10:44 AM To: user@geronimo.apache.org Subject: Re: classcastException when trying to deploy =20 Look like you are missing a dependency. Caused by: java.lang.NoClassDefFoundError: com/symcor/wlbx/util/Exception/InvalidOrgIdException Resolve that and I believe that issue will disappear. Nicholas Irving nirving@darkedges.com =20 Kamalanathan Raman wrote:=20 Kevan,=20 =20 I have changed the tag to in my open-ejb-jar.xml . But iam getting an error like =20 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 =20 I have attached the changed open-ejb-jar.xml as well. =20 Open-Ejb-jar for entity bean =20 =20 =20 xmlns:nam=3D"http://geronimo.apache.org/xml/ns/naming-1.1" =20 = xmlns:pkgen=3D"http://www.openejb.org/xml/ns/pkgen-2.0" =20 =20 xmlns:sec=3D"http://geronimo.apache.org/xml/ns/security-1.1" =20 =20 xmlns:sys=3D"http://geronimo.apache.org/xml/ns/deployment-1.1" > =20 > wlbxdao-rc console.dbpool wlbx-ds =20 =20 =20 =20 =20 UserEntity ejb/UserEntity datasource/wlbx-ds wlbx-ds =20 LockboxEntity ejb/LockboxEntity datasource/wlbx-ds wlbx-ds ApplicationEntity ejb/ApplicationEntity datasource/wlbx-ds wlbx-ds ProfileEntity ejb/ProfileEntity datasource/wlbx-ds wlbx-ds =20 =20 =20 ________________________________ From: Kevan Miller [mailto:kevan.miller@gmail.com]=20 Sent: Wednesday, January 03, 2007 8:58 PM To: user@geronimo.apache.org Subject: Re: classcastException when trying to deploy =20 =20 On Jan 3, 2007, at 9:47 AM, Kamalanathan Raman wrote: =20 UserEntity wlbx-ds LockboxEntity wlbx-ds ApplicationEntity wlbx-ds ProfileEntity wlbx-ds =20 **************** 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*** =20 ------_=_NextPart_001_01C72FC2.CE1373DC Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Thanks Nicholas , it is working now = .

 


From: Nicholas Irving [mailto:nirving@darkedges.com]
Sent: Thursday, January = 04, 2007 10:44 AM
To: user@geronimo.apache.org
Subject: Re: = classcastException when trying to deploy

 

Look like you = are missing a dependency.

Caused by: java.lang.NoClassDefFoundError: =
com/symcor/wlbx/util/Exception/InvalidOrgIdException


Resolve that and I believe that issue will disappear.

Nicholas Irving
nirving@darkedges.com

 


Kamalanathan Raman wrote: =

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(OpenEJBModuleBuilde=
r.java:516)
        at =
org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.i=
nvoke(<generated>)
=
        at =
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at =
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo=
ker.java:38)
        at =
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.ja=
va: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(RawOperationI=
nvoker.java:35)
        at =
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMe=
thodInterceptor.java:96)
=
        at =
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$2448a=
8b3.addGBeans(<generated>)
        at =
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(E=
ARConfigBuilder.java:562)
        at = org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$3= 8e56ec6.invoke(<generated>)
        at =
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at =
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo=
ker.java:38)
        at =
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.ja=
va: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(RawOperationI=
nvoker.java:35)
        at =
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMe=
thodInterceptor.java:96)
=
        at =
org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$303=
5b125.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.invok=
e(<generated>)
        at =
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at =
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo=
ker.java:38)
        at =
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.ja=
va: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.doDeplo=
y(AbstractDeployCommand.java:106)
        at =
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(Distrib=
uteCommand.java:60)
        at =
java.lang.Thread.run(Unknown =
Source)
Caused by: java.lang.NoClassDefFoundError: =
com/symcor/wlbx/util/Exception/InvalidOrgIdException<=
/font>
        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(BMPContainerBuilde=
r.java:142)
        at =
org.openejb.deployment.BMPContainerBuilder.buildIt(BMPContainerBuilder.ja=
va:111)
        at =
org.openejb.deployment.AbstractContainerBuilder.createConfiguration(Abstr=
actContainerBuilder.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.o= penejb.org/xml/ns/openejb-jar-2.1"

           &= nbsp;       xmlns:nam=3D"http://geroni= mo.apache.org/xml/ns/naming-1.1"=

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

=

           &= nbsp;       xmlns:sec=3D"http://gero= nimo.apache.org/xml/ns/security-1.1"<= o:p>

           &= nbsp;       xmlns:sys=3D"http://ge= ronimo.apache.org/xml/ns/deployment-1.1">=

    =

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

        <dep:moduleId>

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

        </dep:moduleId>

        <dep:dependencies>

            <dep:dependency>

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

                <dep:artif= actId>wlbx-ds</dep:artifactId>

            </dep:dependency>

           &= nbsp;     

            </dep:dependencies>

    </dep:environment>        &= nbsp;      

    =

 

    <enterprise-beans>

         <entity>

 

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

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

            <resource-ref>

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

           &= nbsp;   <resource-link>wlbx-ds</resource-link>

            </resource-ref>

       </entity>

 

 <entity>

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

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

            <resource-ref>

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

           &= nbsp;   <resource-link>wlbx-ds</resource-link>

            </resource-ref>

         </entity>

         <entity>

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

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

            <resource-ref>

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

           &= nbsp;   <resource-link>wlbx-ds</resource-link>

            </resource-ref>

 </entity>

    <entity>

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

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

            <resource-ref>

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

           &= nbsp;   <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>

         &= nbsp;  <ejb-name>UserEntity</ejb-name>

         &= nbsp;  <resource-ref>

         &= nbsp;     <resource-link>wlbx-ds</resource-link>

        = </session>

         &= nbsp;  <ejb-name>LockboxEntity</ejb-name>

         &= nbsp;  <resource-ref>

         &= nbsp;     <resource-link>wlbx-ds</resource-link>

        = </session>

         &= nbsp;  <ejb-name>ApplicationEntity</ejb-name>

         &= nbsp;  <resource-ref>

         &= nbsp;     <resource-link>wlbx-ds</resource-link>

        = </session>

         &= nbsp;  <ejb-name>ProfileEntity</ejb-name>

         &= nbsp;  <resource-ref>

         &= nbsp;     <resource-link>wlbx-ds</resource-link>

        = </session>

 <= /o:p>

**************** 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_01C72FC2.CE1373DC--