0 Replies Latest reply on Mar 11, 2009 4:33 PM by Evgeny Denisov

    Problem when calling Remote EJB method

    Evgeny Denisov Newbie

      When Seam component inside simple WAR application (Glassfish V2.1) tries to call Remote EJB method following exception is thrown:



      java.lang.RuntimeException: Cannot export transaction having non-XA resource: 2-phase commit not possible.
              at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.checkTransactionExport(J2EETransactionManagerOpt.java:282)
              at com.sun.enterprise.iiop.ClientConnectionInterceptor.send_request(ClientConnectionInterceptor.java:101)
              at com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeClientInterceptorStartingPoint(InterceptorInvoker.java:271)
              at com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeClientPIStartingPoint(PIHandlerImpl.java:348)
              at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:284)
              at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
              at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:186)
              at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
              at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
              at com.problemator.ejb.ratings.__ProblematorRatingsRemote_Remote_DynamicStub.problemVotes(com/problemator/ejb/ratings/__ProblematorRatingsRemote_Remote_DynamicStub.java)
              at com.problemator.ejb.ratings._ProblematorRatingsRemote_Wrapper.problemVotes(com/problemator/ejb/ratings/_ProblematorRatingsRemote_Wrapper.java)
              at com.problemator.problem.Main.getVotes(Main.java:127)




      This occurs only when Seam's transaction is active - e.g. when performing JSF action or within JSF application phase.