]
Adrian Brock closed JBAS-4972.
------------------------------
Resolution: Rejected
This is invalid use of JTA api by the Spring code.
You can't register a transaction synchronization unless the transaction is at status
ACTIVE.
This was my original "guess" on the forum thread:
"
5) I don't use Spring, but I'd **guess** from the error there really is no
*ACTIVE* transaction.
This could because the transaction is marked rollback or it has been already rolledback
(e.g. transaction timeout). You can't register a transaction synchronization like
Spring is trying to do if the transaction is not active.
"
and like I said there
"
4) It's a Spring error message -ask them
"
jboss 4.2.1 with spring 2.0.6 causes NoTransactionException
-----------------------------------------------------------
Key: JBAS-4972
URL:
http://jira.jboss.com/jira/browse/JBAS-4972
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Transaction Manager
Affects Versions: JBossAS-4.2.1.GA, JBossAS-4.2.2.GA
Reporter: Adrian Brock
Assigned To: Adrian Brock
Attachments: earmodule-1.0.ear, server.log.zip, springejb.zip
This issue was raised in the forums and the attachments sent to me private e-mail.
"
Hi Adrian,
In the topic
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084161
you were asking for more information or some code that reproduces the problem.
I created a small ear that contains an EJB, a spring bean and a JSP.
The JSP calls the EJB which calls the Spring bean.
I tested the ear with both jboss 4.2.1 and 4.2.2 and got the same error.
In order to simulate the error, please do the following:
- Install jboss 4.2.1 or 4.2.2
- Copy the earmodule-1.0.ear to
<jboss_home>\server\default\deploy\
- Copy spring.jar, from <springframework 2.0.6 distribution>\dist\ to
<jboss_home>\server\default\lib\
(I could not attach the jar to this email because your email server complains that the
zip is too big)
- Additionally add to <jboss_home>\server\default\conf\jboss-log4j.xml the
following in order to see how spring is using the transaction started by EJB
to enlist the spring bean (UserBo):
<category name="org.springframework.transaction">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
<priority value="DEBUG"/>
</category>
and if you want to see more details at console about spring transaction manager,
change the Threshold of CONSOLE appender to DEBUG.
- Start jboss
- To trigger the error, open in a browser the URL:
http://localhost:8080/test/
I attached the source and the ear to this email + the server log from jboss 4.2.2.
Like I said in the topic, this was not happening on jboss 4.0.4.
Could you please take a look and do a debug perhaps.
Thank you.
I look forward to hearing from you.
Best Regards,
Bucegi Omu
"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: