8 Replies Latest reply on Aug 23, 2004 8:49 AM by javierpaniza

    Invalid invocation calling ejb from war in JBoss 3.2.4

    javierpaniza Newbie

      Hi,

      we are using jboss3.2.2 and we want migrate to jboss3.2.4.

      But the code that run perfect in jboss3.2.2 not run in 3.2.4.

      The problem is when from jsp or servlet I try to call a method from
      a ejb; then throw:
      avax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract puntocom.xava.xtab.ejb.EntidadTabRemote puntocom.xava.xtab.ejb.EntidadTabHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException

      We have one .ear with some ejb jar and one .war with de web part,
      for develop this is practic.

      I try to configure jboss-service.xml of tomcat, changing
      Java2ClassLoadingCompliance
      LenientEjbLink
      UseJBossWebLoader

      with every posible value, but not run.

      And the ear and the war run perfect in the jboss3.2.2

      Any idea about this?

      Thank you in advance

      Javier Paniza


        • 1. Re: Invalid invocation calling ejb from war in JBoss 3.2.4
          Alexey Loubyansky Master

          Can you post the stacktrace? Does the bean have matching ejbCreate method in the bean impl class?

          • 2. Re: Invalid invocation calling ejb from war in JBoss 3.2.4
            javierpaniza Newbie

            Hi Alexey,

            yes, I have a ejbCreate. In my home interface I have;

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

            and, in my bean class I have:

            public void ejbCreate() throws CreateException {
            }

            But this code run well from 1999 in WebSphere, Jonas and JBoss 2.4.x and 3.2.2.

            The stacktrace:

            javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract puntocom.xava.xtab.ejb.EntidadTabRemote puntocom.xava.xtab.ejb.EntidadTabHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
            at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(StatelessSessionContainer.java:632)
            at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(CachedConnectionInterceptor.java:205)
            at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(StatelessSessionInstanceInterceptor.java:51)
            at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Lorg.jboss.invocation.Invocation;Z)Ljava.lang.Object;(AbstractTxInterceptor.java:88)
            at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(TxInterceptorCMT.java:315)
            at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(TxInterceptorCMT.java:128)
            at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(SecurityInterceptor.java:94)
            at org.jboss.ejb.plugins.LogInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(LogInterceptor.java:120)
            at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(ProxyFactoryFinderInterceptor.java:93)
            at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(StatelessSessionContainer.java:319)
            at org.jboss.ejb.Container.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(Container.java:743)
            at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(Invocation.java:61)
            at org.jboss.mx.server.Invocation.dispatch()Ljava.lang.Object;(Invocation.java:53)
            at org.jboss.mx.server.Invocation.invoke()Ljava.lang.Object;(Invocation.java:86)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;)Ljava.lang.Object;(AbstractMBeanInvoker.java:185)
            at org.jboss.mx.server.MBeanServerImpl.invoke(Ljavax.management.ObjectName;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;)Ljava.lang.Object;(MBeanServerImpl.java:473)
            at org.jboss.invocation.local.LocalInvoker.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(LocalInvoker.java:97)
            at org.jboss.invocation.InvokerInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(InvokerInterceptor.java:90)
            at org.jboss.proxy.TransactionInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(TransactionInterceptor.java:46)
            at org.jboss.proxy.SecurityInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(SecurityInterceptor.java:53)
            at org.jboss.proxy.ejb.HomeInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(HomeInterceptor.java:173)
            at org.jboss.proxy.ClientContainer.invoke(Ljava.lang.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(ClientContainer.java:85)
            at $Proxy226.create()Lpuntocom.xava.xtab.ejb.EntidadTabRemote;(Unknown Source)
            at puntocom.xava.xtab.ejb.EntidadTab.getRemote(Ljava.lang.String;)Lpuntocom.xava.xtab.ejb.EntidadTabRemote;(EntidadTab.java:549)
            at puntocom.xava.xtab.ejb.EntidadTab.getTamañoResultado()I(EntidadTab.java:581)
            at puntocom.negocio.tab.TableModelBean.getTamañoTotal()I(TableModelBean.java:302)
            at puntocom.negocio.tab.XTableModelDecoratorBase.getTamañoTotal()I(XTableModelDecoratorBase.java:86)
            08:43:23,495 INFO [STDOUT] java.rmi.ServerException: EJBException:; nested exception is:
            javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract puntocom.xava.xtab.ejb.EntidadTabRemote puntocom.xava.xtab.ejb.EntidadTabHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
            08:43:23,496 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.handleException(Ljava.lang.Throwable;Lorg.jboss.invocation.Invocation;)Ljava.lang.Exception;(LogInterceptor.java:347)
            08:43:23,497 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(LogInterceptor.java:124)
            08:43:23,497 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(ProxyFactoryFinderInterceptor.java:93)
            08:43:23,497 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(StatelessSessionContainer.java:319)
            08:43:23,497 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(Container.java:743)
            08:43:23,498 INFO [STDOUT] at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            08:43:23,498 INFO [STDOUT] at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            08:43:23,498 INFO [STDOUT] at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            08:43:23,498 INFO [STDOUT] at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
            08:43:23,498 INFO [STDOUT] at org.jboss.mx.server.ReflectedDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ReflectedDispatcher.java:60)
            08:43:23,499 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(Invocation.java:61)
            08:43:23,499 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch()Ljava.lang.Object;(Invocation.java:53)
            08:43:23,499 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke()Ljava.lang.Object;(Invocation.java:86)
            08:43:23,499 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;)Ljava.lang.Object;(AbstractMBeanInvoker.java:185)
            08:43:23,499 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(Ljavax.management.ObjectName;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;)Ljava.lang.Object;(MBeanServerImpl.java:473)
            08:43:23,500 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(LocalInvoker.java:97)
            08:43:23,500 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(InvokerInterceptor.java:90)
            08:43:23,500 INFO [STDOUT] at org.jboss.proxy.TransactionInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(TransactionInterceptor.java:46)
            08:43:23,500 INFO [STDOUT] at org.jboss.proxy.SecurityInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(SecurityInterceptor.java:53)
            08:43:23,501 INFO [STDOUT] at org.jboss.proxy.ejb.HomeInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(HomeInterceptor.java:173)
            08:43:23,501 INFO [STDOUT] at org.jboss.proxy.ClientContainer.invoke(Ljava.lang.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(ClientContainer.java:85)
            08:43:23,501 INFO [STDOUT] at $Proxy226.create()Lpuntocom.xava.xtab.ejb.EntidadTabRemote;(Unknown Source)
            08:43:23,501 INFO [STDOUT] at puntocom.xava.xtab.ejb.EntidadTab.getRemote(Ljava.lang.String;)Lpuntocom.xava.xtab.ejb.EntidadTabRemote;(EntidadTab.java:549)
            08:43:23,501 INFO [STDOUT] at puntocom.xava.xtab.ejb.EntidadTab.getTamañoResultado()I(EntidadTab.java:581)
            08:43:23,501 INFO [STDOUT] at puntocom.negocio.tab.TableModelBean.getTamañoTotal()I(TableModelBean.java:302)
            08:43:23,502 INFO [STDOUT] at puntocom.negocio.tab.XTableModelDecoratorBase.getTamañoTotal()I(XTableModelDecoratorBase.java:86)
            08:43:23,502 INFO [STDOUT] at puntocom.xava.xtab.Tab.getTamañoTotal()I(Tab.java:427)
            08:43:23,502 INFO [STDOUT] at org.apache.jsp.xava.lista_jsp._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(lista_jsp.java:242)
            08:43:23,502 INFO [STDOUT] at org.apache.jasper.runtime.HttpJspBase.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpJspBase.java:94)
            08:43:23,502 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:810)
            08:43:23,503 INFO [STDOUT] at org.apache.jasper.servlet.JspServletWrapper.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Z)V(JspServletWrapper.java:324)
            08:43:23,503 INFO [STDOUT] at org.apache.jasper.servlet.JspServlet.serviceJspFile(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Ljava.lang.String;Ljava.lang.Throwable;Z)V(JspServlet.java:292)
            08:43:23,506 INFO [STDOUT] Caused by: javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract puntocom.xava.xtab.ejb.EntidadTabRemote puntocom.xava.xtab.ejb.EntidadTabHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
            08:43:23,506 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(StatelessSessionContainer.java:632)
            08:43:23,506 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(CachedConnectionInterceptor.java:205)
            08:43:23,507 INFO [STDOUT] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(StatelessSessionInstanceInterceptor.java:51)
            08:43:23,507 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Lorg.jboss.invocation.Invocation;Z)Ljava.lang.Object;(AbstractTxInterceptor.java:88)
            08:43:23,507 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(TxInterceptorCMT.java:315)
            08:43:23,507 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(TxInterceptorCMT.java:128)
            08:43:23,507 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(SecurityInterceptor.java:94)
            08:43:23,508 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(LogInterceptor.java:120)
            08:43:23,508 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(ProxyFactoryFinderInterceptor.java:93)
            08:43:23,508 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(StatelessSessionContainer.java:319)
            08:43:23,508 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(Container.java:743)
            08:43:23,508 INFO [STDOUT] at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            08:43:23,509 INFO [STDOUT] at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            08:43:23,509 INFO [STDOUT] at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            08:43:23,509 INFO [STDOUT] at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
            08:43:23,509 INFO [STDOUT] at org.jboss.mx.server.ReflectedDispatcher.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(ReflectedDispatcher.java:60)
            08:43:23,509 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch([Ljava.lang.Object;)Ljava.lang.Object;(Invocation.java:61)
            08:43:23,510 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch()Ljava.lang.Object;(Invocation.java:53)
            08:43:23,510 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke()Ljava.lang.Object;(Invocation.java:86)
            08:43:23,510 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;)Ljava.lang.Object;(AbstractMBeanInvoker.java:185)
            08:43:23,510 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(Ljavax.management.ObjectName;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;)Ljava.lang.Object;(MBeanServerImpl.java:473)
            08:43:23,511 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(LocalInvoker.java:97)
            08:43:23,511 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(InvokerInterceptor.java:90)
            08:43:23,511 INFO [STDOUT] at org.jboss.proxy.TransactionInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(TransactionInterceptor.java:46)
            08:43:23,511 INFO [STDOUT] at org.jboss.proxy.SecurityInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(SecurityInterceptor.java:53)
            08:43:23,511 INFO [STDOUT] at org.jboss.proxy.ejb.HomeInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(HomeInterceptor.java:173)
            08:43:23,512 INFO [STDOUT] at org.jboss.proxy.ClientContainer.invoke(Ljava.lang.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(ClientContainer.java:85)
            08:43:23,512 INFO [STDOUT] at $Proxy226.create()Lpuntocom.xava.xtab.ejb.EntidadTabRemote;(Unknown Source)
            08:43:23,512 INFO [STDOUT] at puntocom.xava.xtab.ejb.EntidadTab.getRemote(Ljava.lang.String;)Lpuntocom.xava.xtab.ejb.EntidadTabRemote;(EntidadTab.java:549)
            08:43:23,512 INFO [STDOUT] at puntocom.xava.xtab.ejb.EntidadTab.getTamañoResultado()I(EntidadTab.java:581)
            08:43:23,512 INFO [STDOUT] at puntocom.negocio.tab.TableModelBean.getTamañoTotal()I(TableModelBean.java:302)
            08:43:23,512 INFO [STDOUT] at puntocom.negocio.tab.XTableModelDecoratorBase.getTamañoTotal()I(XTableModelDecoratorBase.java:86)
            08:43:23,513 INFO [STDOUT] java.rmi.RemoteException: Imposible obtener el objeto remoto para gestionar datos tabulares
            08:43:23,513 INFO [STDOUT] at puntocom.xava.xtab.ejb.EntidadTab.getRemote(Ljava.lang.String;)Lpuntocom.xava.xtab.ejb.EntidadTabRemote;(EntidadTab.java:556)
            08:43:23,514 INFO [STDOUT] at puntocom.xava.xtab.ejb.EntidadTab.getTamañoResultado()I(EntidadTab.java:581)
            08:43:23,514 INFO [STDOUT] at puntocom.negocio.tab.TableModelBean.getTamañoTotal()I(TableModelBean.java:302)
            08:43:23,514 INFO [STDOUT] at puntocom.negocio.tab.XTableModelDecoratorBase.getTamañoTotal()I(XTableModelDecoratorBase.java:86)
            08:43:23,514 INFO [STDOUT] at puntocom.xava.xtab.Tab.getTamañoTotal()I(Tab.java:427)
            08:43:23,514 INFO [STDOUT] at org.apache.jsp.xava.lista_jsp._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(lista_jsp.java:242)
            08:43:23,515 INFO [STDOUT] at org.apache.jasper.runtime.HttpJspBase.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpJspBase.java:94)
            08:43:23,515 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:810)
            08:43:23,515 INFO [STDOUT] at org.apache.jasper.servlet.JspServletWrapper.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Z)V(JspServletWrapper.java:324)
            08:43:23,515 INFO [STDOUT] at org.apache.jasper.servlet.JspServlet.serviceJspFile(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Ljava.lang.String;Ljava.lang.Throwable;Z)V(JspServlet.java:292)
            08:43:23,515 INFO [STDOUT] at org.apache.jasper.servlet.JspServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(JspServlet.java:236)
            08:43:23,516 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:810)
            08:43:23,516 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ApplicationFilterChain.java:237)
            08:43:23,516 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ApplicationFilterChain.java:157)
            08:43:23,516 INFO [STDOUT] at org.apache.catalina.core.ApplicationDispatcher.invoke(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ApplicationDispatcher.java:703)
            08:43:23,517 INFO [STDOUT] at org.apache.catalina.core.ApplicationDispatcher.doInclude(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ApplicationDispatcher.java:589)
            08:43:23,517 INFO [STDOUT] at org.apache.catalina.core.ApplicationDispatcher.include(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ApplicationDispatcher.java:499)
            08:43:23,517 INFO [STDOUT] at org.apache.jasper.runtime.JspRuntimeLibrary.include(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljava.lang.String;Ljavax.servlet.jsp.JspWriter;Z)V(JspRuntimeLibrary.java:966)
            08:43:23,517 INFO [STDOUT] at org.apache.jsp.xava.modulo_jsp._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(modulo_jsp.java:231)
            08:43:23,518 INFO [STDOUT] at org.apache.jasper.runtime.HttpJspBase.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(HttpJspBase.java:94)
            08:43:23,518 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:810)
            08:43:23,518 INFO [STDOUT] at org.apache.jasper.servlet.JspServletWrapper.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Z)V(JspServletWrapper.java:324)
            08:43:23,519 INFO [STDOUT] at org.apache.jasper.servlet.JspServlet.serviceJspFile(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Ljava.lang.String;Ljava.lang.Throwable;Z)V(JspServlet.java:292)
            08:43:23,520 INFO [STDOUT] at org.apache.jasper.servlet.JspServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(JspServlet.java:236)
            08:43:23,520 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(HttpServlet.java:810)
            08:43:23,520 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ApplicationFilterChain.java:237)
            08:43:23,520 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ApplicationFilterChain.java:157)
            08:43:23,521 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(Lorg.apache.catalina.Request;Lorg.apache.catalina.Response;Lorg.apache.catalina.ValveContext;)V(StandardWrapperValve.java:214)
            08:43:23,521 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(Lorg.apache.catalina.Request;Lorg.apache.catalina.Response;)V(StandardValveContext.java:104)
            08:43:23,521 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(Lorg.apache.catalina.Request;Lorg.apache.catalina.Response;)V(StandardPipeline.java:520)
            08:43:23,521 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invokeInternal(Lorg.apache.catalina.Wrapper;Lorg.apache.catalina.Request;Lorg.apache.catalina.Response;)V(StandardContextValve.java:198)
            08:43:23,522 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(Lorg.apache.catalina.Request;Lorg.apache.catalina.Response;Lorg.apache.catalina.ValveContext;)V(StandardContextValve.java:152)
            08:43:23,522 INFO [STDOUT] Imposible obtener el tamaño total de una tab


            Thank you in advance

            Javier Paniza

            • 3. Re: Invalid invocation calling ejb from war in JBoss 3.2.4
              Alexey Loubyansky Master

              If you enable DEBUG logging level for org.jboss.ejb.StatelessSessionContainer, can you see
              log.debug("Mapping "+m.getName());
              for the create method?
              Does the EntidadTabRemote extend other interfaces that define create() method? What is the JVM version?

              • 4. Re: Invalid invocation calling ejb from war in JBoss 3.2.4
                javierpaniza Newbie

                Hi Alexey,

                I put in log4j.xml





                and the trace is the same,
                and





                ant the trace is the same too.

                The EntidadTabRemote extends javax.ejb.EJBObject.

                The JVM is a JRockit 1.4.2_04 from BEA. 32 bits for linux.

                Maybe a classloader problem?
                The same .war and .ear run fine in 3.2.2

                Thank you

                Javier Paniza

                • 5. Re: Invalid invocation calling ejb from war in JBoss 3.2.4
                  Alexey Loubyansky Master

                  In log4j.xml add this

                   <category name="org.jboss.ejb.StatelessSessionContainer">
                   <priority value="DEBUG"/>
                   </category>
                  


                  And watch the deployment, not the exception stacktrace. You should see a DEBUG message 'Mapping create'. Is it there?

                  • 6. Re: Invalid invocation calling ejb from war in JBoss 3.2.4
                    javierpaniza Newbie

                    Hi Alexey,

                    yes the Mapping create is here,
                    look:

                    2004-07-29 08:37:33,416 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:jndiName=XavaPruebas/ejb/xava/pruebas/EntidadTab,service=EJB
                    2004-07-29 08:37:33,416 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.create: []
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Creating jboss.j2ee:jndiName=XavaPruebas/ejb/xava/pruebas/EntidadTab,service=EJB
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Mapped Container method remove HASH -1842617161
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Mapped Container method isIdentical HASH 285457048
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Mapped Container method getPrimaryKey HASH -131865408
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Mapped Container method getHandle HASH 1182305581
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Mapped Container method getEJBHome HASH -993218923
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Mapped getTamañoResultado 1730253969to public int puntocom.xava.xtab.ejb.EntidadTabBean.getTamañoResultado(puntocom.negocio.tab.ITabProvider)
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Mapped siguienteTrozo -1057819860to public puntocom.negocio.tab.TrozoVector puntocom.xava.xtab.ejb.EntidadTabBean.siguienteTrozo(puntocom.negocio.tab.ITabProvider,java.lang.String,java.util.List,java.util.Collection,java.util.Map,java.util.Collection)
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Mapping remove
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Mapping remove
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Mapping getHomeHandle
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Mapping getEJBMetaData
                    2004-07-29 08:37:33,417 DEBUG [org.jboss.ejb.StatelessSessionContainer] Mapping create

                    Any idea?
                    Thanks

                    • 7. Re: Invalid invocation calling ejb from war in JBoss 3.2.4
                      javierpaniza Newbie

                      Hi Alexey,

                      I think that the problem is about classloader, but i don't know the solution.
                      If put my ear in one directory within deploy, and I put my war inside
                      ear directory, and I configure jboss-service.xml for tomcat as this:

                       <attribute name="Java2ClassLoadingCompliance">false</attribute>
                       <attribute name="UseJBossWebLoader">true</attribute>
                      


                      And the appliction run fine.

                      But this solution is very bad, because for developing, we need deploy the .war
                      a lot of times while the .ear is more stable. Deploy every time the .ear
                      is very slow (in some project about 10 minuts).

                      We need that this run as 3.2.2: one ear file and one war file, and call for the .war to the
                      EJBs in the .ear.

                      Do you know how configure the 3.2.4 to run like 3.2.2?

                      Thank you in advance.

                      Javier Paniza


                      • 8. SOLUTION TO: Invalid invocation calling ejb from war in JBos
                        javierpaniza Newbie

                        Hi,

                        I found a solution myself, a good solution for the problem.

                        Simply put the jar jboss-client.jar in WEB-INF/lib of the war,
                        and everything works.

                        This is not necessary in jboss3.2.2, but is it in jboss3.2.4 and 3.2.5

                        Javier Paniza