1 Reply Latest reply on Nov 4, 2008 2:57 AM by Prabhudatt Rana

    java.lang.ClassCastException while deploying ejb jar

    Prabhudatt Rana Newbie

      Hi,
      I have created a sample EJB2.0 application for jboss. it seems it conv



      2008-11-04 13:25:49,228 DEBUG [org.jboss.ejb3.interceptor.EJB3InterceptorsFactory] Bound interceptors for joinpoint: public java.lang.String com.test.HelloBean.sayHello() - [Lorg.jboss.ejb3.interceptor.InterceptorInfo;@152e7a4
      2008-11-04 13:25:49,244 INFO [org.jboss.ejb3.EJBContainer] STARTED EJB: com.test.HelloBean ejbName: HelloBean
      2008-11-04 13:25:49,306 DEBUG [org.jboss.ejb3.stateless.BaseStatelessProxyFactory] Binding proxy for HelloBean in JNDI at HelloBean
      2008-11-04 13:25:49,322 INFO [org.jboss.ejb3.EJBContainer] STOPPED EJB: com.test.HelloBean ejbName: HelloBean
      2008-11-04 13:25:49,322 DEBUG [org.jboss.ejb3.stateless.StatelessDelegateWrapper] Starting failed jboss.j2ee:jar=sampleEJB_NC.jar,name=HelloBean,service=EJB3
      java.lang.ClassCastException: $Proxy61
      at org.jboss.util.naming.Util.createSubcontext(Util.java:69)
      at org.jboss.util.naming.Util.rebind(Util.java:125)
      at org.jboss.util.naming.Util.rebind(Util.java:113)
      at org.jboss.ejb3.stateless.StatelessRemoteProxyFactory.start(StatelessRemoteProxyFactory.java:128)
      at org.jboss.ejb3.ProxyDeployer.start(ProxyDeployer.java:83)
      at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:157)
      at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:102)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)