classcastException when trying to deploy

2007-01-03 Thread Kamalanathan Raman

Hi , iam new to Geronimo, can u help me out in figuring out why this
problem is occurring, when I try to deploy the application. What I have
done is, I have added 2 ejb jars as dependencies in Geronimo-web.xml .I
added these two ejb jars in the repository folder of geronimo 1.1. and
the EAR that iam trying to deploy also contains these two EJB jars may
be because of that it is showing this error or wat else. Any pointer in
this regard will be duly appreciated.







Deployer operation failed: java.lang.ClassCastException:
org.openejb.xbeans.ejbjar.impl.OpenejbSessionBeanTypeImpl

org.apache.geronimo.common.DeploymentException:
java.lang.ClassCastException:
org.openejb.xbeans.ejbjar.impl.OpenejbSessionBeanTypeImpl

  at
org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:383)

  at
org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)

  at
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invo
ke(generated)

  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.ClassCastException:
org.openejb.xbeans.ejbjar.impl.OpenejbSessionBeanTypeImpl

  at
org.openejb.deployment.EntityBuilder.buildBeans(EntityBuilder.java:106)

  at
org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuild
er.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(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(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(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(generated)

  at
org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)

  ... 10 more



 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***

Re: classcastException when trying to deploy

2007-01-03 Thread Kevan Miller


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

snip

Open-Ejb-jar for entity bean
You want these EntityBeans to be of type entity, not session...  
OpenEJB could be a bit more helpful, here... I'd suggest you open a  
Jira...


--kevan

snip


enterprise-beans

session

ejb-nameUserEntity/ejb-name

jndi-nameejb/UserEntity/jndi-name

resource-ref

   ref-namedatasource/wlbx-ds/ref-name

   resource-linkwlbx-ds/resource-link

/resource-ref

/session

session

ejb-nameLockboxEntity/ejb-name

jndi-nameejb/LockboxEntity/jndi-name

resource-ref

   ref-namedatasource/wlbx-ds/ref-name

   resource-linkwlbx-ds/resource-link

/resource-ref

/session

session

ejb-nameApplicationEntity/ejb-name

jndi-nameejb/ApplicationEntity/jndi-name

resource-ref

   ref-namedatasource/wlbx-ds/ref-name

   resource-linkwlbx-ds/resource-link

/resource-ref

/session

session

ejb-nameProfileEntity/ejb-name

jndi-nameejb/ProfileEntity/jndi-name

resource-ref

   ref-namedatasource/wlbx-ds/ref-name

   resource-linkwlbx-ds/resource-link

/resource-ref

/session

/enterprise-beans



/openejb-jar




RE: classcastException when trying to deploy

2007-01-03 Thread Kamalanathan Raman

/dep:environment   

   



enterprise-beans

 entity



ejb-nameUserEntity/ejb-name

jndi-nameejb/UserEntity/jndi-name

resource-ref

   ref-namedatasource/wlbx-ds/ref-name

   resource-linkwlbx-ds/resource-link

/resource-ref

   /entity



 entity

ejb-nameLockboxEntity/ejb-name

jndi-nameejb/LockboxEntity/jndi-name

resource-ref

   ref-namedatasource/wlbx-ds/ref-name

   resource-linkwlbx-ds/resource-link

/resource-ref

 /entity

 entity

ejb-nameApplicationEntity/ejb-name

jndi-nameejb/ApplicationEntity/jndi-name

resource-ref

   ref-namedatasource/wlbx-ds/ref-name

   resource-linkwlbx-ds/resource-link

/resource-ref

 /entity

entity

ejb-nameProfileEntity/ejb-name

jndi-nameejb/ProfileEntity/jndi-name

resource-ref

   ref-namedatasource/wlbx-ds/ref-name

   resource-linkwlbx-ds/resource-link

/resource-ref

 /entity

/enterprise-beans



/openejb-jar







From: Kevan Miller [mailto:[EMAIL PROTECTED]
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-nameUserEntity/ejb-name

resource-ref

   resource-linkwlbx-ds/resource-link

/session

ejb-nameLockboxEntity/ejb-name

resource-ref

   resource-linkwlbx-ds/resource-link

/session

ejb-nameApplicationEntity/ejb-name

resource-ref

   resource-linkwlbx-ds/resource-link

/session

ejb-nameProfileEntity/ejb-name

resource-ref

   resource-linkwlbx-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***

Re: classcastException when trying to deploy

2007-01-03 Thread Nicholas Irving
;


dep:moduleId

dep:artifactIdwlbxdao-rc/dep:artifactId

/dep:moduleId

dep:dependencies

dep:dependency

dep:groupIdconsole.dbpool/dep:groupId

dep:artifactIdwlbx-ds/dep:artifactId

/dep:dependency

 


/dep:dependencies

/dep:environment   

   

 


enterprise-beans

 entity

 


ejb-nameUserEntity/ejb-name

jndi-nameejb/UserEntity/jndi-name

resource-ref

   ref-namedatasource/wlbx-ds/ref-name

   resource-linkwlbx-ds/resource-link

/resource-ref

   /entity

 


 entity

ejb-nameLockboxEntity/ejb-name

jndi-nameejb/LockboxEntity/jndi-name

resource-ref

   ref-namedatasource/wlbx-ds/ref-name

   resource-linkwlbx-ds/resource-link

/resource-ref

 /entity

 entity

ejb-nameApplicationEntity/ejb-name

jndi-nameejb/ApplicationEntity/jndi-name

resource-ref

   ref-namedatasource/wlbx-ds/ref-name

   resource-linkwlbx-ds/resource-link

/resource-ref

 /entity

entity

ejb-nameProfileEntity/ejb-name

jndi-nameejb/ProfileEntity/jndi-name

resource-ref

   ref-namedatasource/wlbx-ds/ref-name

   resource-linkwlbx-ds/resource-link

/resource-ref

 /entity

/enterprise-beans

 


/openejb-jar

 

 




*From:* Kevan Miller [mailto:[EMAIL PROTECTED]
*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-nameUserEntity/ejb-name***

*resource-ref***

*   resource-linkwlbx-ds/resource-link***

*/session***

*ejb-nameLockboxEntity/ejb-name***

*resource-ref***

*   resource-linkwlbx-ds/resource-link***

*/session***

*ejb-nameApplicationEntity/ejb-name***

*resource-ref***

*   resource-linkwlbx-ds/resource-link***

*/session***

*ejb-nameProfileEntity/ejb-name***

*resource-ref***

*   resource-linkwlbx-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***