1 Reply Latest reply on Mar 31, 2003 1:10 PM by hlakshman

    Invalid invocation, check your deployment packaging

    hlakshman Newbie

      I divided my J2EE application EAR file into two ear files EAR1 and EAR2
      one ear file contains only web container specific files (WAR files) and common files
      and another EAR file containing EJBs and common files. I also package
      jboss-app.xml with each EAR file to enable EAR specific loader repository so as to read
      EAR specific properties (read by common classes). When I try to
      access EJB (deployed in EAR2 ) from EAR1,I get the following stack trace.
      ====================
      2003-03-31 09:08:34,706 ERROR [STDERR] java.lang.reflect.InvocationTargetException:
      2003-03-31 09:08:34,706 ERROR [STDERR] java.rmi.ServerException: Invalid invocation, check your deployment packaging, method=public abstract com.wakesoft.sample.petstore.ejb.service.BusinessProcessGatewayRemote com.wakesoft.sample.petstore.ejb.service.BusinessProcessGatewayHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException; nested exception is:
      javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.wakesoft.sample.petstore.ejb.service.BusinessProcessGatewayRemote com.wakesoft.sample.petstore.ejb.service.BusinessProcessGatewayHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
      2003-03-31 09:08:34,706 ERROR [STDERR] javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.wakesoft.sample.petstore.ejb.service.BusinessProcessGatewayRemote com.wakesoft.sample.petstore.ejb.service.BusinessProcessGatewayHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
      2003-03-31 09:08:34,706 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:597)
      2003-03-31 09:08:34,706 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:206)
      2003-03-31 09:08:34,706 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:57)
      2003-03-31 09:08:34,706 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98)
      2003-03-31 09:08:34,706 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)
      2003-03-31 09:08:34,716 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)
      2003-03-31 09:08:34,716 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:104)
      2003-03-31 09:08:34,716 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
      2003-03-31 09:08:34,716 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:300)
      2003-03-31 09:08:34,756 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:726)
      2003-03-31 09:08:34,846 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      2003-03-31 09:08:34,846 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
      2003-03-31 09:08:34,846 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
      2003-03-31 09:08:34,846 ERROR [STDERR] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
      2003-03-31 09:08:34,846 ERROR [STDERR] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
      2003-03-31 09:08:34,846 ERROR [STDERR] at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
      2003-03-31 09:08:34,846 ERROR [STDERR] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      2003-03-31 09:08:34,846 ERROR [STDERR] at $Proxy71.create(Unknown Source)
      2003-03-31 09:08:34,846 ERROR [STDERR] at java.lang.reflect.Method.invoke(Native Method)
      2003-03-31 09:08:34,846 ERROR [STDERR] at reefwork.bp.step.EJBConnectorStep.doProcess(Unknown Source)
      2003-03-31 09:08:34,846 ERROR [STDERR] at reefwork.bp.adapter.FrmwkBusinessProcessAdapter.process(Unknown Source)
      2003-03-31 09:08:34,856 ERROR [STDERR] at reefwork.bp.adapter.FrmwkWebBusinessProcessAdapter.process(Unknown Source)
      2003-03-31 09:08:34,856 ERROR [STDERR] at reefwork.bp.BusinessProcessManager.a(Unknown Source)
      2003-03-31 09:08:34,856 ERROR [STDERR] at reefwork.bp.BusinessProcessManager.process(Unknown Source)
      2003-03-31 09:08:34,856 ERROR [STDERR] at reefwork.navigation.adapter.FrmwkNavigationAdapter.int(Unknown Source)
      2003-03-31 09:08:34,856 ERROR [STDERR] at reefwork.navigation.adapter.FrmwkNavigationAdapter.new(Unknown Source)
      2003-03-31 09:08:34,856 ERROR [STDERR] at reefwork.navigation.adapter.FrmwkNavigationAdapter.process(Unknown Source)
      2003-03-31 09:08:34,856 ERROR [STDERR] at reefwork.navigation.NavigationManager.a(Unknown Source)
      2003-03-31 09:08:34,856 ERROR [STDERR] at reefwork.navigation.NavigationManager.processRequest(Unknown Source)
      2003-03-31 09:08:34,856 ERROR [STDERR] at com.wakesoft.sample.petstore.servlet.ControllerServlet.doWork(Unknown Source)
      2003-03-31 09:08:34,856 ERROR [STDERR] at com.wakesoft.sample.petstore.servlet.BaseHttpServlet.onProcess(Unknown Source)
      2003-03-31 09:08:34,856 ERROR [STDERR] at reefwork.servlet.FrmwkBaseHttpServlet.service(Unknown Source)
      2003-03-31 09:08:34,856 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      2003-03-31 09:08:34,856 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371)
      2003-03-31 09:08:34,856 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:607)
      2003-03-31 09:08:34,866 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1387)
      2003-03-31 09:08:34,866 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpContext.java:1326)
      2003-03-31 09:08:34,866 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServer.java:757)
      2003-03-31 09:08:34,866 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:527)
      2003-03-31 09:08:34,866 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(HttpConnection.java:742)
      2003-03-31 09:08:34,866 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915)
      2003-03-31 09:08:34,866 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpConnection.java:757)
      2003-03-31 09:08:34,866 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:151)
      2003-03-31 09:08:34,866 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
      2003-03-31 09:08:34,886 ERROR [STDERR] at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
      2003-03-31 09:08:35,107 ERROR [STDERR] at java.lang.Thread.run(Thread.java:479)
      ==================

      Please note that if I do not package jboss-app.xml with both the EAR files, the application works fine

      Please let me know if I am missing something

      Thanks