TransactionManager failed to deploy
eduarm76 May 10, 2010 5:50 AMWhile following the steps of the 2 min. deploymnet guide is not possible to initiate the JBoss instance after configuring the transanction manager (ant jts).
This issue was identified by Michael Musgrove as a posible "TransactionManager that failed to deploy"
Here is the (extended) output of the relevant steps:
1) $ ant -v jts
Apache Ant version 1.7.1 compiled on June 27 2008
Buildfile: build.xml
Detected Java version: 1.5 in: /dvl/web/webroot/blacktie/jdk1.5.0_16/jre
Detected OS: Linux
parsing buildfile /dvl/web/webroot/blacktie/jboss-5.1.0.GA/docs/examples/transactions/build.xml with URI = file:/dvl/web/webroot/blacktie/jboss-5.1.0.GA/docs/examples/transactions/build.xml
Project base dir set to: /dvl/web/webroot/blacktie/jboss-5.1.0.GA/docs/examples/transactions
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
Build sequence for target(s) `jts' is [jts]
Complete build sequence is [jts, usage, modify-jts-config-files, tools, xts, ]jts:
[move] Moving 1 file to /dvl/web/webroot/blacktie/jboss-5.1.0.GA/server/all/conf
[move] Attempting to rename: /dvl/web/webroot/blacktie/jboss-5.1.0.GA/server/all/conf/jbossts-properties.xml to /dvl/web/webroot/blacktie/jboss-5.1.0.GA/server/all/conf/jbossts-properties-old-for-jta.xml
[copy] Copying 1 file to /dvl/web/webroot/blacktie/jboss-5.1.0.GA/server/all/conf
[copy] Copying /dvl/web/webroot/blacktie/jboss-5.1.0.GA/docs/examples/transactions/jbossts-properties.xml to /dvl/web/webroot/blacktie/jboss-5.1.0.GA/server/all/conf/jbossts-properties.xml
[echo] Transaction service configuration file installed.
Project base dir set to: /dvl/web/webroot/blacktie/jboss-5.1.0.GA/docs/examples/transactions
[antcall] calling target(s) [modify-jts-config-files] in build file /dvl/web/webroot/blacktie/jboss-5.1.0.GA/docs/examples/transactions/build.xml
parsing buildfile /dvl/web/webroot/blacktie/jboss-5.1.0.GA/docs/examples/transactions/build.xml with URI = file:/dvl/web/webroot/blacktie/jboss-5.1.0.GA/docs/examples/transactions/build.xml
Project base dir set to: /dvl/web/webroot/blacktie/jboss-5.1.0.GA/docs/examples/transactions
Override ignored for property "target.server.dir"
Build sequence for target(s) `modify-jts-config-files' is [modify-jts-config-files]
Complete build sequence is [modify-jts-config-files, jts, usage, tools, xts, ]
[antcall] Entering /dvl/web/webroot/blacktie/jboss-5.1.0.GA/docs/examples/transactions/build.xml...
Build sequence for target(s) `modify-jts-config-files' is [modify-jts-config-files]
Complete build sequence is [modify-jts-config-files, jts, usage, tools, xts, ]modify-jts-config-files:
[replaceregexp] Replacing pattern '<property\s+name=.com\.arjuna\.ats\.arjuna\.recovery\.recoveryExtension\d+.\s*value=.com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.\s*/>' with '' in '/dvl/web/webroot/blacktie/jboss-5.1.0.GA/server/all/conf/jbossts-properties.xml'.
[replaceregexp] File has changed; saving the updated file
[replaceregexp] Replacing pattern 'com.arjuna.ats.jbossatx.jta.TransactionManagerService' with 'com.arjuna.ats.jbossatx.jts.TransactionManagerService' in '/dvl/web/webroot/blacktie/jboss-5.1.0.GA/server/all/deploy/transaction-jboss-beans.xml' by line.
[replaceregexp] File has changed; saving the updated file
[replaceregexp] Replacing pattern '</bean>' with ' <start><parameter><inject bean="jboss:service=CorbaORB" property="ORB"/></parameter></start>
[replaceregexp]
[replaceregexp] </bean>' in '/dvl/web/webroot/blacktie/jboss-5.1.0.GA/server/all/deploy/transaction-jboss-beans.xml'.
[replaceregexp] File has changed; saving the updated file
[replaceregexp] Replacing pattern 'jacorb.poa.thread_pool_max\s*=\s*\d+' with 'jacorb.poa.thread_pool_max=32' in '/dvl/web/webroot/blacktie/jboss-5.1.0.GA/server/all/conf/jacorb.properties'.
[replaceregexp] File has changed; saving the updated file
[replaceregexp] Replacing pattern 'org.jboss.tm.iiop.TxServerClientInterceptorInitializer' with 'com.arjuna.ats.jts.orbspecific.jacorb.interceptors.interposition.InterpositionORBInitializerImpl' in '/dvl/web/webroot/blacktie/jboss-5.1.0.GA/server/all/deploy/iiop-service.xml'.
[replaceregexp] File has changed; saving the updated file
[replaceregexp] Replacing pattern 'org.jboss.tm.iiop.TxServerInterceptorInitializer' with 'com.arjuna.ats.jbossatx.jts.InboundTransactionCurrentInitializer' in '/dvl/web/webroot/blacktie/jboss-5.1.0.GA/server/all/deploy/iiop-service.xml'.
[replaceregexp] File has changed; saving the updated file
[antcall] Exiting /dvl/web/webroot/blacktie/jboss-5.1.0.GA/docs/examples/transactions/build.xml.
[echo] JBossAS config files updated to run JTS in config ../../../server/allBUILD SUCCESSFUL
Total time: 0 seconds
2) Edit <JBOSS_HOME>/server/all/conf/jbossts-properties.xml to change the CONFIGURATION_FILE to NAME_SERVICE
$grep NAME_SERVICE server/all/conf/jbossts-properties.xml
<property name="com.arjuna.orbportability.bindMechanism" value="NAME_SERVICE"/>
3)From this point on, I cannot start the jboss instance. Here is the list of errors message found in the log files:
./run.sh -c all -b XXX.XXX.XXX.XXX -Djboss.service.binding.set=ports-03
09:32:58,935 FATAL [TransactionManagerService] Problem encountered while trying to register transaction manager with ORB!
09:32:58,935 FATAL [TransactionManagerService] Failed to initialize recovery manager
java.lang.Exception: Problem encountered while trying to register transaction manager with ORB! org.omg.CORBA.TRANSIENT: Re
tries exceeded, couldn't reconnect to 127.0.0.1:3528 vmcid: 0x0 minor code: 0 completed: No
at com.arjuna.ats.jbossatx.jts.TransactionManagerService.start(TransactionManagerService.java:281)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControl
lerContextAction.java:241)
and later inf the same log:
DEPLOYMENTS IN ERROR:
Deployment "interface javax.transaction.TransactionManager" is in error due to the following reason(s): ** NOT FOUND Depends on 'interface javax.transaction.TransactionManager' **
Deployment "jboss.jca:service=CachedConnectionManager" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:service=CachedConnectionManager' **
Deployment "TransactionManager" is in error due to the following reason(s): **ERROR**, java.lang.Exception: Problem encountered while trying to register transaction manager with ORB! org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 127.0.0.1:3528 vmcid: 0x0 minor code: 0 completed: No
Deployment "jboss.web:service=WebServer" is in error due to the following reason(s): Configured
Deployment "<UNKNOWN DefaultUserTransactionprovider>" is in error due to the following reason(s): ** UNRESOLVED Demands 'TransactionManager' **
Deployment "jboss.jca:service=WorkManager" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **
Deployment "jboss:service=TransactionManager" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss:service=TransactionManager' **
Deployment "jboss:service=invoker,type=unified" is in error due to the following reason(s): Configured
My environment is exactly the same as in the example:
$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_16-b02, mixed mode)java version "1.6.0_10"
$ant -version
Apache Ant version 1.7.1 compiled on June 27 2008
$mvn -version
Maven version: 2.0.9
jboss-5.1.0.GA
Any ideas?
-
output.log.zip 5.6 KB