6 Replies Latest reply on Jul 5, 2012 12:54 AM by Tushar Sharma

    JBOSS EAP-5.1: javax.ejb.EJBException: Invalid invocation, check your deployment packaging

    Tushar Sharma Newbie

      Hi All,

       

      I had a work around to upgrade my Application from Jboss 3 to Jboss 5.1. In this process all EJB's are migrated to EJB2.X from EJB1.X. The Jboss server startup seems to be fine but when my application try to invoke the EJB functions I got this error for each EJB:

       

      javax.ejb.EJBException: Invalid invocation, check your deployment packaging,method=public abstract com.logistics.oypa.ejb.session.shipmentReport.ShipmentReportMgr com.logistics.oypa.ejb.session.shipmentReport.ShipmentReportMgrHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException

       

      The Stack Trace is here:

       

      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:172)

          at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:187)

          at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:97)

          at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)

          at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)

          at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)

          at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)

          at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:230)

          at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205)

          at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:99)

          at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.java:88)

          at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)

          at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)

          at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:639)

          at org.jboss.ejb.Container.invoke(Container.java:1109)

          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:597)

          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

          at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)

          at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)

          at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)

          at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)

          at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)

          at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)

          at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)

          at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)

          at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)

          at $Proxy344.create(Unknown Source)

       

      The exception occurs while creating the interface :

      public interface ShipmentReportMgrHome extends javax.ejb.EJBHome

      {

         ShipmentReportMgr create() throws javax.ejb.CreateException,java.rmi.RemoteException;

      }