2 Replies Latest reply on Jan 30, 2007 5:09 PM by kpiis

    problem with test invocation of session bean

    kpiis

      Hello dear all!
      I have a lot of problems with ejb3 - I really need your help guys.
      My development ENV is: JDK 1.5.0_09-b01 for windows, JBOSS AS of 2 versions: 4.0.4 GA and 4.0.5 from jems-installer-1.2.0.CR1.jar (for being on the self side I installed RC9 patch on my version of 4.0.5 as described on the forum)

      Today I complete my test with both versions of my AS's. The test consists such parts:
      web.war with servlet

      public class TestServlet extends HttpServlet {

      protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException {
      //REMOTE
      try{
      InitialContext inc = new InitialContext();
      Object put = inc.lookup("TestSessImpl/remote");
      TestSessionRem oo = (TestSessionRem)PortableRemoteObject.narrow(put,TestSessionRem.class);
      oo.dummy();

      TestEntity testentity = new TestEntity();
      testentity.setContent("sdfsdf");
      oo.saveTestEntity(testentity);
      }catch(Exception ex){
      ex.printStackTrace();
      }
      //REMOTE
      try{
      InitialContext inc = new InitialContext();
      Object put = inc.lookup("TestSessImpl/remote");
      TestSessionRem oo = (TestSessionRem)PortableRemoteObject.narrow(put,TestSessionRem.class);
      oo.dummy();

      TestEntity testentity = new TestEntity();
      testentity.setContent("sdfsdf");
      oo.saveTestEntityOut(testentity);
      }catch(Exception ex){
      ex.printStackTrace();
      }
      //LOCAL
      try{
      InitialContext inc = new InitialContext();
      Object put = inc.lookup("TestSessImpl/local");
      TestSession oo = (TestSession)(put);
      oo.dummy();

      TestEntity testentity = new TestEntity();
      testentity.setContent("sdfsdf");
      oo.saveTestEntity(testentity);
      }catch(Exception ex){
      ex.printStackTrace();
      }
      try{
      InitialContext inc = new InitialContext();
      Object put = inc.lookup("TestSessImpl/local");
      TestSession oo = (TestSession)(put);
      oo.dummy();

      TestEntity testentity = new TestEntity();
      testentity.setContent("sdfsdf");
      oo.saveTestEntityOut(testentity);
      }catch(Exception ex){
      ex.printStackTrace();
      }
      }
      }

      and separate aaa.jar with EJB POJO and session bean:

      there are local and remote interfaces
      @Local
      public interface TestSession {
      public TestEntity saveTestEntity(TestEntity entity);
      public void dummy();
      public Boolean saveTestEntityOut(TestEntity entity);
      }

      @Remote
      public interface TestSessionRem {
      public TestEntity saveTestEntity(TestEntity entity);
      public void dummy();
      public Boolean saveTestEntityOut(TestEntity entity);
      }

      Implementation

      @Stateless
      @Remote(TestSessionRem.class)
      @Local(TestSession.class)
      @TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRES_NEW)
      public class TestSessImpl implements TestSession, TestSessionRem{
      @PersistenceUnit(unitName="hotel")
      private EntityManagerFactory entityFactory;
      private EntityManager entityManager;

      @PostConstruct
      public void aaa(){
      System.out.println("POST CONSTRUCT");
      }

      public TestEntity saveTestEntity(TestEntity entity) {
      try{
      EntityManager manager = entityFactory.createEntityManager();
      manager.persist(entity);
      }catch(Exception ex){
      System.out.println(ex.getMessage());
      }
      return entity;
      }

      public void dummy() {
      System.out.print("DUMMY FUNCTION");
      }

      public Boolean saveTestEntityOut(TestEntity entity) {

      try{
      EntityManager manager = entityFactory.createEntityManager();
      manager.persist(entity);
      }catch(Exception ex){
      System.out.println(ex.getMessage());
      }
      return true;
      }

      }

      I include aaa.jar in lib directory of web.war

      Preconditions: all temp dir's are cleared and servers start without any exceptions on the same JDK, deployment archives are processing without exceptions.

      So I deploy both jars and run servlet on 4.0.4 GA and getting such results

      2007-01-07 22:57:21,092 INFO [STDOUT] POST CONSTRUCT
      2007-01-07 22:57:21,092 INFO [STDOUT] DUMMY FUNCTION
      2007-01-07 22:58:15,811 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000
      2007-01-07 23:01:16,483 ERROR [STDERR] java.lang.reflect.UndeclaredThrowableException
      2007-01-07 23:01:16,483 ERROR [STDERR] at $Proxy110.saveTestEntity(Unknown Source)
      2007-01-07 23:01:16,483 ERROR [STDERR] at testserv.TestServlet.doPost(TestServlet.java:36)
      2007-01-07 23:01:16,483 ERROR [STDERR] at testserv.TestServlet.doGet(TestServlet.java:23)
      2007-01-07 23:01:16,483 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      2007-01-07 23:01:16,483 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2007-01-07 23:01:16,499 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2007-01-07 23:01:16,499 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:01:16,499 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2007-01-07 23:01:16,499 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2007-01-07 23:01:16,499 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:01:16,499 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      2007-01-07 23:01:16,499 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      2007-01-07 23:01:16,514 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      2007-01-07 23:01:16,514 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      2007-01-07 23:01:16,514 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      2007-01-07 23:01:16,514 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      2007-01-07 23:01:16,514 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      2007-01-07 23:01:16,514 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      2007-01-07 23:01:16,514 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      2007-01-07 23:01:16,530 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      2007-01-07 23:01:16,530 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      2007-01-07 23:01:16,530 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      2007-01-07 23:01:16,530 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      2007-01-07 23:01:16,530 ERROR [STDERR] Caused by: java.io.NotSerializableException: com.hms.core.entity.common.TestEntity
      2007-01-07 23:01:16,530 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
      2007-01-07 23:01:16,530 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
      2007-01-07 23:01:16,530 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
      2007-01-07 23:01:16,530 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      2007-01-07 23:01:16,530 ERROR [STDERR] at java.rmi.MarshalledObject.(MarshalledObject.java:92)
      2007-01-07 23:01:16,530 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.writeExternal(MethodInvocation.java:318)
      2007-01-07 23:01:16,545 ERROR [STDERR] at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
      2007-01-07 23:01:16,545 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:275)
      2007-01-07 23:01:16,545 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerOutput.writeObject(DataContainer.java:386)
      2007-01-07 23:01:16,545 ERROR [STDERR] at org.jboss.serial.io.MarshalledObjectForLocalCalls.(MarshalledObjectForLocalCalls.java:38)
      2007-01-07 23:01:16,545 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:53)
      2007-01-07 23:01:16,545 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:16,545 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
      2007-01-07 23:01:16,561 ERROR [STDERR] ... 23 more
      2007-01-07 23:01:23,124 INFO [STDOUT] DUMMY FUNCTION
      2007-01-07 23:01:27,639 ERROR [STDERR] java.lang.reflect.UndeclaredThrowableException
      2007-01-07 23:01:27,639 ERROR [STDERR] at $Proxy110.saveTestEntityOut(Unknown Source)
      2007-01-07 23:01:27,639 ERROR [STDERR] at testserv.TestServlet.doPost(TestServlet.java:49)
      2007-01-07 23:01:27,639 ERROR [STDERR] at testserv.TestServlet.doGet(TestServlet.java:23)
      2007-01-07 23:01:27,639 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      2007-01-07 23:01:27,639 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2007-01-07 23:01:27,639 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2007-01-07 23:01:27,639 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:01:27,639 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2007-01-07 23:01:27,655 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2007-01-07 23:01:27,655 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:01:27,655 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      2007-01-07 23:01:27,655 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      2007-01-07 23:01:27,655 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      2007-01-07 23:01:27,655 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      2007-01-07 23:01:27,655 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      2007-01-07 23:01:27,655 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      2007-01-07 23:01:27,655 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      2007-01-07 23:01:27,655 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      2007-01-07 23:01:27,670 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      2007-01-07 23:01:27,670 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      2007-01-07 23:01:27,670 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      2007-01-07 23:01:27,670 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      2007-01-07 23:01:27,670 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      2007-01-07 23:01:27,686 ERROR [STDERR] Caused by: java.io.NotSerializableException: com.hms.core.entity.common.TestEntity
      2007-01-07 23:01:27,686 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
      2007-01-07 23:01:27,686 ERROR [STDERR] at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
      2007-01-07 23:01:27,686 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
      2007-01-07 23:01:27,686 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      2007-01-07 23:01:27,686 ERROR [STDERR] at java.rmi.MarshalledObject.(MarshalledObject.java:92)
      2007-01-07 23:01:27,686 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.writeExternal(MethodInvocation.java:318)
      2007-01-07 23:01:27,686 ERROR [STDERR] at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
      2007-01-07 23:01:27,686 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:275)
      2007-01-07 23:01:27,702 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerOutput.writeObject(DataContainer.java:386)
      2007-01-07 23:01:27,702 ERROR [STDERR] at org.jboss.serial.io.MarshalledObjectForLocalCalls.(MarshalledObjectForLocalCalls.java:38)
      2007-01-07 23:01:27,702 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:53)
      2007-01-07 23:01:27,702 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:27,702 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
      2007-01-07 23:01:27,702 ERROR [STDERR] ... 23 more
      2007-01-07 23:01:32,889 INFO [STDOUT] DUMMY FUNCTION
      2007-01-07 23:01:40,764 ERROR [STDERR] javax.ejb.EJBException: java.lang.IllegalArgumentException: Wrong target. class com.hms.core.business.entitymanagers.interfaces.TestSessImpl for public com.hms.core.entity.common.TestEntity com.hms.core.business.entitymanagers.interfaces.TestSessImpl.saveTestEntity(com.hms.core.entity.common.TestEntity)
      2007-01-07 23:01:40,764 ERROR [STDERR] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
      2007-01-07 23:01:40,780 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
      2007-01-07 23:01:40,780 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275)
      2007-01-07 23:01:40,780 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:40,780 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
      2007-01-07 23:01:40,780 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:40,780 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
      2007-01-07 23:01:40,780 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:40,780 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
      2007-01-07 23:01:40,780 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:40,780 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
      2007-01-07 23:01:40,795 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:40,795 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      2007-01-07 23:01:40,795 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:40,795 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
      2007-01-07 23:01:40,795 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
      2007-01-07 23:01:40,795 ERROR [STDERR] at $Proxy111.saveTestEntity(Unknown Source)
      2007-01-07 23:01:40,795 ERROR [STDERR] at testserv.TestServlet.doPost(TestServlet.java:62)
      2007-01-07 23:01:40,795 ERROR [STDERR] at testserv.TestServlet.doGet(TestServlet.java:23)
      2007-01-07 23:01:40,795 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      2007-01-07 23:01:40,795 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2007-01-07 23:01:40,795 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2007-01-07 23:01:40,811 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:01:40,811 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2007-01-07 23:01:40,811 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2007-01-07 23:01:40,811 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:01:40,811 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      2007-01-07 23:01:40,811 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      2007-01-07 23:01:40,811 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      2007-01-07 23:01:40,811 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      2007-01-07 23:01:40,811 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      2007-01-07 23:01:40,811 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      2007-01-07 23:01:40,827 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      2007-01-07 23:01:40,827 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      2007-01-07 23:01:40,827 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      2007-01-07 23:01:40,827 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      2007-01-07 23:01:40,827 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      2007-01-07 23:01:40,827 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      2007-01-07 23:01:40,827 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      2007-01-07 23:01:40,827 ERROR [STDERR] Caused by: java.lang.IllegalArgumentException: Wrong target. class com.hms.core.business.entitymanagers.interfaces.TestSessImpl for public com.hms.core.entity.common.TestEntity com.hms.core.business.entitymanagers.interfaces.TestSessImpl.saveTestEntity(com.hms.core.entity.common.TestEntity)
      2007-01-07 23:01:40,827 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.handleErrors(MethodInvocation.java:141)
      2007-01-07 23:01:40,827 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:116)
      2007-01-07 23:01:40,842 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
      2007-01-07 23:01:40,842 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      2007-01-07 23:01:40,842 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:40,842 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      2007-01-07 23:01:40,842 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:40,842 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
      2007-01-07 23:01:40,858 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:40,858 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
      2007-01-07 23:01:40,858 ERROR [STDERR] ... 37 more
      2007-01-07 23:01:43,389 INFO [STDOUT] POST CONSTRUCT
      2007-01-07 23:01:43,389 INFO [STDOUT] DUMMY FUNCTION
      2007-01-07 23:01:48,124 ERROR [STDERR] javax.ejb.EJBException: java.lang.IllegalArgumentException: Wrong target. class com.hms.core.business.entitymanagers.interfaces.TestSessImpl for public java.lang.Boolean com.hms.core.business.entitymanagers.interfaces.TestSessImpl.saveTestEntityOut(com.hms.core.entity.common.TestEntity)
      2007-01-07 23:01:48,124 ERROR [STDERR] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
      2007-01-07 23:01:48,139 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
      2007-01-07 23:01:48,139 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275)
      2007-01-07 23:01:48,139 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:48,139 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
      2007-01-07 23:01:48,139 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:48,139 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
      2007-01-07 23:01:48,139 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:48,139 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
      2007-01-07 23:01:48,139 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:48,139 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
      2007-01-07 23:01:48,155 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:48,155 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      2007-01-07 23:01:48,155 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:48,155 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
      2007-01-07 23:01:48,155 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
      2007-01-07 23:01:48,155 ERROR [STDERR] at $Proxy111.saveTestEntityOut(Unknown Source)
      2007-01-07 23:01:48,155 ERROR [STDERR] at testserv.TestServlet.doPost(TestServlet.java:74)
      2007-01-07 23:01:48,155 ERROR [STDERR] at testserv.TestServlet.doGet(TestServlet.java:23)
      2007-01-07 23:01:48,155 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      2007-01-07 23:01:48,155 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2007-01-07 23:01:48,170 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2007-01-07 23:01:48,170 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:01:48,170 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2007-01-07 23:01:48,170 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2007-01-07 23:01:48,170 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:01:48,170 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      2007-01-07 23:01:48,170 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      2007-01-07 23:01:48,186 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      2007-01-07 23:01:48,186 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      2007-01-07 23:01:48,186 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      2007-01-07 23:01:48,186 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      2007-01-07 23:01:48,186 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      2007-01-07 23:01:48,186 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      2007-01-07 23:01:48,186 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      2007-01-07 23:01:48,186 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      2007-01-07 23:01:48,186 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      2007-01-07 23:01:48,202 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      2007-01-07 23:01:48,202 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      2007-01-07 23:01:48,202 ERROR [STDERR] Caused by: java.lang.IllegalArgumentException: Wrong target. class com.hms.core.business.entitymanagers.interfaces.TestSessImpl for public java.lang.Boolean com.hms.core.business.entitymanagers.interfaces.TestSessImpl.saveTestEntityOut(com.hms.core.entity.common.TestEntity)
      2007-01-07 23:01:48,202 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.handleErrors(MethodInvocation.java:141)
      2007-01-07 23:01:48,202 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:116)
      2007-01-07 23:01:48,202 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
      2007-01-07 23:01:48,202 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      2007-01-07 23:01:48,202 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:48,202 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      2007-01-07 23:01:48,217 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:48,217 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
      2007-01-07 23:01:48,217 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      2007-01-07 23:01:48,217 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
      2007-01-07 23:01:48,217 ERROR [STDERR] ... 37 more
      2007-01-07 23:05:45,811 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000

      On 4.0.5

      In this case I really don't know how and why this error is provoked

      2007-01-07 23:20:11,436 ERROR [STDERR] java.lang.ClassCastException
      2007-01-07 23:20:11,452 ERROR [STDERR] at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
      2007-01-07 23:20:11,452 ERROR [STDERR] at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
      2007-01-07 23:20:11,452 ERROR [STDERR] at testserv.TestServlet.doPost(TestServlet.java:31)
      2007-01-07 23:20:11,452 ERROR [STDERR] at testserv.TestServlet.doGet(TestServlet.java:23)
      2007-01-07 23:20:11,452 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      2007-01-07 23:20:11,452 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      2007-01-07 23:20:11,452 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      2007-01-07 23:20:11,452 ERROR [STDERR] Caused by: java.lang.ClassCastException: $Proxy94
      2007-01-07 23:20:11,452 ERROR [STDERR] at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
      2007-01-07 23:20:11,452 ERROR [STDERR] ... 24 more
      2007-01-07 23:20:11,452 ERROR [STDERR] java.lang.ClassCastException
      2007-01-07 23:20:11,452 ERROR [STDERR] at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
      2007-01-07 23:20:11,452 ERROR [STDERR] at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
      2007-01-07 23:20:11,452 ERROR [STDERR] at testserv.TestServlet.doPost(TestServlet.java:44)
      2007-01-07 23:20:11,452 ERROR [STDERR] at testserv.TestServlet.doGet(TestServlet.java:23)
      2007-01-07 23:20:11,452 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      2007-01-07 23:20:11,452 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      2007-01-07 23:20:11,452 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      2007-01-07 23:20:11,467 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      2007-01-07 23:20:11,467 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      2007-01-07 23:20:11,467 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      2007-01-07 23:20:11,467 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      2007-01-07 23:20:11,467 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      2007-01-07 23:20:11,467 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      2007-01-07 23:20:11,467 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      2007-01-07 23:20:11,467 ERROR [STDERR] Caused by: java.lang.ClassCastException: $Proxy94
      2007-01-07 23:20:11,467 ERROR [STDERR] at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
      2007-01-07 23:20:11,467 ERROR [STDERR] ... 24 more
      2007-01-07 23:20:11,467 ERROR [STDERR] java.lang.ClassCastException: $Proxy95
      2007-01-07 23:20:11,467 ERROR [STDERR] at testserv.TestServlet.doPost(TestServlet.java:57)
      2007-01-07 23:20:11,467 ERROR [STDERR] at testserv.TestServlet.doGet(TestServlet.java:23)
      2007-01-07 23:20:11,467 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      2007-01-07 23:20:11,467 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2007-01-07 23:20:11,467 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2007-01-07 23:20:11,467 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      2007-01-07 23:20:11,483 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      2007-01-07 23:20:11,483 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      2007-01-07 23:20:11,499 ERROR [STDERR] java.lang.ClassCastException: $Proxy95
      2007-01-07 23:20:11,499 ERROR [STDERR] at testserv.TestServlet.doPost(TestServlet.java:69)
      2007-01-07 23:20:11,499 ERROR [STDERR] at testserv.TestServlet.doGet(TestServlet.java:23)
      2007-01-07 23:20:11,499 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      2007-01-07 23:20:11,499 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      2007-01-07 23:20:11,499 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      2007-01-07 23:20:11,499 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)


      And at the last point I tried to run this test on JBOSS AS 5 beta but I got such error during deployment of EJB and WAR arch

      2007-01-07 23:25:39,170 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}

      jboss.j2ee:jar=web.war,name=HotelManagerBean,service=EJB3
      -> {Described:** UNRESOLVED AbstractDemandMetaData$DemandDependencyItem@12fe80{name=jboss.j2ee:jar=web.war,name=HotelManagerBean,service=EJB3 dependsOn=null whenRequired=Described resolved=false demand=persistence.units:unitName=hotel} **}

      jboss.j2ee:jar=web.war,name=TestSessImpl,service=EJB3
      -> {Described:** UNRESOLVED AbstractDemandMetaData$DemandDependencyItem@188faa{name=jboss.j2ee:jar=web.war,name=TestSessImpl,service=EJB3 dependsOn=null whenRequired=Described resolved=false demand=persistence.units:unitName=hotel} **}


      *** CONTEXTS IN ERROR: Name -> Error

      -> ** UNRESOLVED AbstractDemandMetaData$DemandDependencyItem@188faa{name=jboss.j2ee:jar=web.war,name=TestSessImpl,service=EJB3 dependsOn=null whenRequired=Described resolved=false demand=persistence.units:unitName=hotel} **


      Guys, I don't know what I have to do with all this stuff. Reading of topics didnt provide for me any usefull information about such cases.

      I assume that I have to do another test only with local interface and single ear archive, and make special references in jboss ear descriptor on EJB.
      But all what I have now is wasting of time.



        • 1. Re: problem with test invocation of session bean

          ok.

          I will try to help you, but i am not sure that I can. :))

          try to change your code

          public class TestSessImpl implements TestSession, TestSessionRem{
          @PersistenceUnit(unitName="hotel")
          private EntityManagerFactory entityFactory;
          private EntityManager entityManager;
          


          to

          public class TestSessImpl implements TestSession, TestSessionRem{
          @PersistenceContext
          private EntityManager entityManager;
          


          and

          public TestEntity saveTestEntity(TestEntity entity) {
          try{
          EntityManager manager = entityFactory.createEntityManager();
          manager.persist(entity);
          }catch(Exception ex){
          System.out.println(ex.getMessage());
          }
          return entity;
          }


          to

          public TestEntity saveTestEntity(TestEntity entity) {
           return manager.persist(entity);
          }


          If it doesn't help let me know...

          P.S. I am sorry for my english

          • 2. Re: problem with test invocation of session bean
            kpiis

            Sorry for delay with answer.
            I have solved my problems with new jems GA installer.
            Current functions are working fine now.
            But I still have a lot of questions (maybe someone has answers for my stupid questions :))
            1. I deploy my app separately in 2 arch - jar with ejb3 components and war with servlets components. There are not any classes of EJB3 jar in war archive (in lib dir or WEB-INF/classes). But when I execute servlet method which invoke or operate with EJB3 POJO or EJB3 Session beans - all is fine!!! I looked in runtime in POJONAME.class.getProtectionDomain().getCodeSource().getLocation(); - and saw that it is loaded for JAR file!
            How it can be? I always thought that each module has it's own classloader.

            to dmitryak - thank you for help - now I use provided snippet in my code.