[jboss-jira] [JBoss JIRA] (WFLY-2936) "Only session and message-driven beans with bean-managed transaction demarcation are allowed to access UserTransaction" error in migrated seam 2.2.2 application
Scott Marlow (JIRA)
issues at jboss.org
Mon Feb 24 13:43:47 EST 2014
[ https://issues.jboss.org/browse/WFLY-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12947544#comment-12947544 ]
Scott Marlow commented on WFLY-2936:
------------------------------------
I saw this error on another jira recently (WFLY-2960). From the attached server.log, you can see the exception comes from a check in [AllowedMethodsInformation|https://github.com/wildfly/wildfly/blob/master/ejb3/src/main/java/org/jboss/as/ejb3/component/allowedmethods/AllowedMethodsInformation.java#L137] that (like the message indicates), the application attempted to access the UserTransaction from a container managed transaction.
The attempt to look up the UT, is coming from Seam org.jboss.seam.transaction.Transaction.getUserTransaction() which isn't going to work from CMT beans in WildFly 8.0.
The AllowedMethodsInformation.realCheckPermission() check is doing what it was intended to do. Can we relax the UserTransaction part of the check to not throw an error?
> "Only session and message-driven beans with bean-managed transaction demarcation are allowed to access UserTransaction" error in migrated seam 2.2.2 application
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-2936
> URL: https://issues.jboss.org/browse/WFLY-2936
> Project: WildFly
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Affects Versions: 8.0.0.Final
> Environment: Windows 7 64bit
> Java 1.7.0_51
> WildFly 8.0.0.Final
> JBoss Seam 2.2.2.Final
> Reporter: Dimitris Keramidas
> Assignee: Eduardo Martins
> Attachments: Auth.java, Authenticator.java, components.xml, jboss-deployment-structure.xml, server.log
>
>
> The error is fired when attempting to call a transaction-enabled EJB method, from a seam component. Specifically the authentication component.
> In order to get to this position, the project's deployment descriptors had to be migrated. Furthermore, mojarra version 1.2_15 was deployed to WildFly, as described by this link: https://community.jboss.org/wiki/DesignOfWildFlyMulti-JSFFeature
> Please see attached logs and descriptors.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list