tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SandroMendes <mendes_san...@hotmail.com>
Subject Proxy cannot be cast to javax.ejb.EJBHome
Date Tue, 07 Apr 2009 09:48:04 GMT

Hi,

I've run into another problem while trying to deploy a simple ejb on tomcat
6 with the openejb plugin. I keep getting the following error:

2009-04-07 11:46:44,323 - INFO  - Found ejb module EjbModule in war
/PSDonkey
2009-04-07 11:46:49,300 - INFO  - Configuring enterprise application:
/home/sandro/PSApp/webapps/PSDonkey
2009-04-07 11:46:49,468 - INFO  - Configuring PersistenceUnit(name=cmp)
2009-04-07 11:46:49,469 - INFO  - Adjusting cmp <jta-data-source> to 'My
DataSource'
2009-04-07 11:46:49,479 - INFO  - Adjusting cmp <non-jta-data-source> to 'My
Unmanaged DataSource'
2009-04-07 11:46:51,882 - INFO  - Enterprise application
"/home/sandro/PSApp/webapps/PSDonkey" loaded.
2009-04-07 11:46:51,882 - INFO  - Assembling app:
/home/sandro/PSApp/webapps/PSDonkey
2009-04-07 11:46:51,950 - INFO  - PersistenceUnit(name=cmp,
provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
2009-04-07 11:46:53,575 - INFO  - Undeploying app:
/home/sandro/PSApp/webapps/PSDonkey
2009-04-07 11:46:53,599 - ERROR - Unable to deploy collapsed ear in war
/PSDonkey: Exception: Creating application failed:
/home/sandro/PSApp/webapps/PSDonkey: $Proxy43 cannot be cast to
javax.ejb.EJBHome
org.apache.openejb.OpenEJBException: Creating application failed:
/home/sandro/PSApp/webapps/PSDonkey: $Proxy43 cannot be cast to
javax.ejb.EJBHome
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:650)
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:447)
	at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.start(TomcatWebAppBuilder.java:241)
	at
org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:58)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassCastException: $Proxy43 cannot be cast to
javax.ejb.EJBHome
	at
org.apache.openejb.core.CoreDeploymentInfo.getEJBHome(CoreDeploymentInfo.java:495)
	at
org.apache.openejb.assembler.classic.JndiBuilder.bind(JndiBuilder.java:274)
	at
org.apache.openejb.assembler.classic.JndiBuilder.build(JndiBuilder.java:75)
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:548)
	... 19 more

Any ideas?

Regards,
Sandro
-- 
View this message in context: http://www.nabble.com/Proxy-cannot-be-cast-to-javax.ejb.EJBHome-tp22925766p22925766.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message