[
http://jira.jboss.com/jira/browse/JBAS-4993?page=comments#action_12388418 ]
Adrian Brock commented on JBAS-4993:
------------------------------------
The issue is the retrieval of the TransactionManager in the field.
e.g.
public class TransactionLocalUnitTestCase extends EJBTestCase
{
protected TransactionManager tm = TransactionManagerLocator.getInstance().locate();
// etc.
This means it tries to retrieve it on both the client side and the server side.
Instead, it should be only done on the server side in the setUp method.
e.g.
public class TransactionLocalUnitTestCase extends EJBTestCase
{
protected TransactionManager tm;
@Override
public void setUp()
{
tm = TransactionManagerLocator.getInstance().locate();
}
// etc.
org.jboss.tm.tests - unable to locate the transaction manager
-------------------------------------------------------------
Key: JBAS-4993
URL:
http://jira.jboss.com/jira/browse/JBAS-4993
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: Transaction Manager
Affects Versions: JBossAS-5.0.0.Beta3
Reporter: Shelly McGowan
Assigned To: Jonathan Halliday
org.jboss.test.tm.test.TransactionLocalUnitTestCase tests are failing due to:
Exception in constructor: testSimpleSetGet (java.lang.RuntimeException: Unable to locate
the transaction manager
at
org.jboss.tm.TransactionManagerLocator.locate(TransactionManagerLocator.java:105)
at
org.jboss.test.tm.test.TransactionLocalUnitTestCase.<init>(TransactionLocalUnitTestCase.java:36)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.jboss.test.JBossTestCase.getDeploySetup(JBossTestCase.java:354)
The same issue is seen in other tests:
org.jboss.test.PreFillPoolingUnitTestCase
org.jboss.test.PoolingUnitTestCase
org.jboss.test.tm.test.Simple*TransactionLocalStressTestCase(tests-standard-stress)
Referencing: JBAS-4516, JBAS-4690, and JBAS-4520
the work to remove JBossTM from jboss-head codebase has been completed and the
old TM interfaces are available in jboss-integration.jar.
The above JIRAs are resolved but is there something left to be done?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira