Hi, We've run into a problem which is one of those things where you say to yourself, "This can't be a bug, because then everyone would be seeing it, but they aren't, so it must be something wrong with what we are doing. Aggg!"
There have been similar (but not identical) problems discussed on this list recently, and we've tried applying the advice from these discussions but no success yet. Specifically, we've run into an "EJBException: Invalid invocation.." error when we attempt to instantiate an EJB from a web servlet after redeploy of an EAR that contains *both* the EJB jar, and the web servlet WAR file. Other discussions of this exception seem to revolve around cases where the web application and the EJB are deployed separately. However, this is not the case with us. We deploy the EAR, and the servlet instantiates the EJB fine. Hot re-deploy the EAR, and the servlet fails with the exception noted below. Hmmmm. I'm guessing its unlikely that there's a problem with JBoss/Jetty where re-deploying an EAR containing and EJB and WAR files breaks the ability for the WAR to instantiate it sibling EJB (see "This can't be a bug" above), so perhaps we are doing something wrong. Any advice or appropriate forehead *wacks* appreciated! Dave Benjamin references: [1] 13Jan03 Re: [JBoss-user] "invalid invocation" exception thrown by EntityContainer$ContainerInterceptor http://www.mail-archive.com/[EMAIL PROTECTED]/msg24943.html [2] 06Feb03 [JBoss-user] Different behaviour when using two JVMs? http://www.mail-archive.com/[EMAIL PROTECTED]/msg25798.html [3] 10Jan03 - Re: [JBoss-user] Strange Exception: JMS -> MDB -> Session Bean http://www.mail-archive.com/[EMAIL PROTECTED]/msg24804.html details: version: JBoss-3.0.4 JDK: Sun JDK 1.4.1 OS: Windows 2000, Windows XP The inevitable log fragment: ... 07:55:02,288 INFO [SnifferServlet] ..agentName=Factorial 07:55:02,288 INFO [SnifferServlet] ..packageName=factorial 07:55:02,288 INFO [SnifferServlet] ..projectVersion= 07:55:02,492 ERROR [LogInterceptor] EJBException: javax.ejb.EJBException: Invalid invocation, check your deployment packaging, met hod=public abstract factorial.Factorial_EjbRemote factorial.Factorial_EjbRemoteH ome.create() throws java.rmi.RemoteException,javax.ejb.CreateException at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHom e(StatefulSessionContainer.java:732) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep tor.java:105) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo keHome(CachedConnectionInterceptor.java:215) at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(S tatefulSessionInstanceInterceptor.java:128) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte rceptor.java:111) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep torCMT.java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.ja va:52) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1 29) at org.jboss.ejb.StatefulSessionContainer.invokeHome(StatefulSessionCont ainer.java:368) at org.jboss.ejb.Container.invoke(Container.java:730) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav a:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor. java:77) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:8 0) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy35.create(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at net.agentis.ejb.common.AgentRemoteProxy.instantiateEJBObject(AgentRem oteProxy.java:329) at net.agentis.ejb.common.AgentRemoteProxy.getEJBObject(AgentRemoteProxy .java:405) at net.agentis.ejb.common.AgentRemoteProxy.getAgent(AgentRemoteProxy.jav a:191) at net.agentis.ejb.common.AgentRemoteProxy.construct(AgentRemoteProxy.ja va:141) at net.agentis.ejb.common.GenericProxy.<init>(GenericProxy.java:168) at net.agentis.ejb.common.GenericProxy.<init>(GenericProxy.java:179) at net.agentis.ejb.console.EJBProxyAgentFactory.createAgent(EJBProxyAgen tFactory.java:136) at net.agentis.aide.sniffer.rpc.SnifferServlet.createAgent(SnifferServle t.java:175) ... ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user