I am new to EJB in Jboss while deploying, I hava an error.
please tell me what to do?





19:31:37,758 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBos
s_4_2_1_GA date=200707131605)] Started in 2m:24s:758ms
19:36:02,939 INFO [EARDeployer] Init J2EE application: file:/D:/Program Files/J
ava Extras/jboss-4.2.1.GA/server/default/deploy/example.ear
19:36:10,510 INFO [EjbModule] Deploying test/MyTestSession
19:36:12,102 INFO [EjbModule] Deploying ejb/CalculatorSessionBean
19:36:13,945 INFO [ProxyFactory] Bound EJB Home 'test/MyTestSession' to jndi 'e
jb/test/MyTestSessionBean'
19:36:14,646 INFO [ProxyFactory] Bound EJB Home 'ejb/CalculatorSessionBean' to
jndi 'ejb/CalculatorSessionBean'
19:36:14,656 INFO [EJBDeployer] Deployed: file:/D:/Program Files/Java Extras/jb
oss-4.2.1.GA/server/default/tmp/deploy/tmp33864example.ear-contents/example.jar
19:36:15,557 INFO [TomcatDeployer] deploy, ctxPath=/example, warUrl=.../tmp/dep
loy/tmp33864example.ear-contents/example-exp.war/
19:36:16,459 ERROR [STDERR] java.lang.ClassCastException
19:36:16,459 ERROR [STDERR] at com.sun.corba.se.impl.javax.rmi.PortableRemot
eObject.narrow(PortableRemoteObject.java:229)
19:36:16,469 ERROR [STDERR] at javax.rmi.PortableRemoteObject.narrow(Portabl
eRemoteObject.java:137)
19:36:16,469 ERROR [STDERR] at test.session.SessionTestServlet.init(SessionT
estServlet.java:29)
19:36:16,469 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.load
Servlet(StandardWrapper.java:1161)
19:36:16,469 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:981)
19:36:16,479 ERROR [STDERR] at org.apache.catalina.core.StandardContext.load
OnStartup(StandardContext.java:4069)
19:36:16,479 ERROR [STDERR] at org.apache.catalina.core.StandardContext.star
t(StandardContext.java:4373)
19:36:16,489 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChi
ldInternal(ContainerBase.java:761)
19:36:16,499 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChi
ld(ContainerBase.java:741)
19:36:16,499 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChil
d(StandardHost.java:553)
19:36:16,529 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)
19:36:16,539 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N
ativeMethodAccessorImpl.java:39)
19:36:16,539 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
19:36:16,549 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
97)
19:36:16,549 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean
.invoke(BaseModelMBean.java:297)
19:36:16,559 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(
RawDynamicInvoker.java:164)
19:36:16,569 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
eanServerImpl.java:659)
19:36:16,569 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init
(StandardContext.java:5310)
19:36:16,579 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)
19:36:16,579 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N
ativeMethodAccessorImpl.java:39)
19:36:16,589 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
19:36:16,589 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
97)
19:36:16,599 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean
.invoke(BaseModelMBean.java:297)
19:36:16,619 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(
RawDynamicInvoker.java:164)
19:36:16,619 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
eanServerImpl.java:659)
19:36:16,629 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.p
erformDeployInternal(TomcatDeployer.java:301)
19:36:16,639 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.p
erformDeploy(TomcatDeployer.java:104)
19:36:16,639 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(Abstr
actWebDeployer.java:375)
19:36:16,649 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule
.java:83)
19:36:16,649 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModul
e.java:61)
19:36:16,659 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInt
ernalStart(ServiceMBeanSupport.java:289)
19:36:16,659 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInt
ernalLifecycle(ServiceMBeanSupport.java:245)
19:36:16,669 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(U
nknown Source)
19:36:16,679 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
19:36:16,679 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
97)
19:36:16,689 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.
invoke(ReflectedDispatcher.java:155)
19:36:16,689 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invoc
ation.java:94)
19:36:16,699 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocat
ion.java:86)
19:36:16,699 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invo
ke(AbstractMBeanInvoker.java:264)
19:36:16,709 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
eanServerImpl.java:659)
19:36:16,719 ERROR [STDERR] at org.jboss.system.ServiceController$ServicePro
xy.invoke(ServiceController.java:978)
19:36:16,719 ERROR [STDERR] at $Proxy0.start(Unknown Source)
19:36:16,729 ERROR [STDERR] at org.jboss.system.ServiceController.start(Serv
iceController.java:417)
19:36:16,729 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(U
nknown Source)
19:36:16,739 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
19:36:16,739 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
97)
19:36:16,749 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.
invoke(ReflectedDispatcher.java:155)
19:36:16,759 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invoc
ation.java:94)
19:36:16,759 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocat
ion.java:86)
19:36:16,769 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invo
ke(AbstractMBeanInvoker.java:264)
19:36:16,769 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
eanServerImpl.java:659)
19:36:16,779 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanP
roxyExt.java:210)
19:36:16,779 ERROR [STDERR] at $Proxy45.start(Unknown Source)
19:36:16,789 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(Abst
ractWebContainer.java:466)
19:36:16,789 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)
19:36:16,799 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N
ativeMethodAccessorImpl.java:39)
19:36:16,799 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
19:36:16,809 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
97)
19:36:16,819 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.
invoke(ReflectedDispatcher.java:155)
19:36:16,819 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invoc
ation.java:94)
19:36:16,829 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.
invoke(AbstractInterceptor.java:133)
19:36:16,829 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocat
ion.java:88)
19:36:16,839 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationI
nterceptor.invoke(ModelMBeanOperationInterceptor.j ava:142)
19:36:16,849 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.i
nvoke(DynamicInterceptor.java:97)
19:36:16,849 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSuppo
rt.invokeNext(InterceptorServiceMBeanSupport.java: 238)
19:36:16,859 ERROR [STDERR] at org.jboss.ws.integration.jboss42.DeployerInte
rceptor.start(DeployerInterceptor.java:93)
19:36:16,869 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSu
pport$XMBeanInterceptor.start(SubDeployerIntercept orSupport.java:188)
19:36:16,869 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.i
nvoke(SubDeployerInterceptor.java:95)
19:36:16,879 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocat
ion.java:88)
19:36:16,879 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invo
ke(AbstractMBeanInvoker.java:264)
19:36:16,889 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
eanServerImpl.java:659)
19:36:16,899 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanP
roxyExt.java:210)
19:36:16,899 ERROR [STDERR] at $Proxy46.start(Unknown Source)
19:36:16,899 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainD
eployer.java:1025)
19:36:16,909 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainD
eployer.java:1015)
19:36:16,919 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(Main
Deployer.java:819)
19:36:16,919 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(Main
Deployer.java:782)
19:36:16,929 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor19.invoke(
Unknown Source)
19:36:16,929 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
19:36:16,959 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
97)
19:36:16,969 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.
invoke(ReflectedDispatcher.java:155)
19:36:16,969 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invoc
ation.java:94)
19:36:16,979 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.
invoke(AbstractInterceptor.java:133)
19:36:16,989 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocat
ion.java:88)
19:36:16,999 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationI
nterceptor.invoke(ModelMBeanOperationInterceptor.j ava:142)
19:36:16,999 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocat
ion.java:88)
19:36:17,009 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invo
ke(AbstractMBeanInvoker.java:264)
19:36:17,009 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
eanServerImpl.java:659)
19:36:17,019 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanP
roxyExt.java:210)
19:36:17,019 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
19:36:17,029 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentSca
nner.deploy(URLDeploymentScanner.java:421)
19:36:17,029 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentSca
nner.scan(URLDeploymentScanner.java:634)
19:36:17,039 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeployme
ntScanner$ScannerThread.doScan(AbstractDeploymentS canner.java:263)
19:36:17,039 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeployme
ntScanner$ScannerThread.loop(AbstractDeploymentSca nner.java:274)
19:36:17,049 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeployme
ntScanner$ScannerThread.run(AbstractDeploymentScan ner.java:225)
19:36:17,049 ERROR [STDERR] Caused by: java.lang.ClassCastException: $Proxy61 ca
nnot be cast to org.omg.CORBA.Object
19:36:17,059 ERROR [STDERR] at com.sun.corba.se.impl.javax.rmi.PortableRemot
eObject.narrow(PortableRemoteObject.java:212)
19:36:17,079 ERROR [STDERR] ... 94 more
19:36:17,300 INFO [EARDeployer] Started J2EE application: file:/D:/Program File
s/Java Extras/jboss-4.2.1.GA/server/default/deploy/example.ear