users@glassfish.java.net

Problem when calling Remote EJB Method from Seam container

From: <glassfish_at_javadesktop.org>
Date: Wed, 11 Mar 2009 08:41:46 PDT

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

Caused by: 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.
[Message sent by forum member 'dea' (dea)]

http://forums.java.net/jive/thread.jspa?messageID=336403