-
1. Re: Standalone configuration of JBoss TS
tomjenkinson May 3, 2012 5:47 AM (in response to ksreen)Hi Kamala,
Does it not work "out of the box"?
What exactly do you need it to do? Are you wanting to run the recovery manager? Are you wanting to bind the JTS into the JacORB name service?
Thanks for your interest in JBoss Transactions!
Tom
-
2. Re: Standalone configuration of JBoss TS
ksreen May 3, 2012 6:20 AM (in response to tomjenkinson)Hi Tom,
When I try to run the start-transaction-service.bat script, I get the following error.
"java.lang.NoClassDefFoundError: Could not initialize class com.arjuna.ats.arjuna
.logging.tsLogger"
I would also want to know how to bind to a JacORB name service. If these questions are very basic, can you please point me to the appropriate documentation.
Regards
Kamala
-
3. Re: Standalone configuration of JBoss TS
tomjenkinson May 3, 2012 6:28 AM (in response to ksreen)As to the first question, what do you have in your classpath? Also, NoClassDefFoundErrors are usually errors *after* the initial cause, is there anything further up the logs to show a different error?
As to the second question, you need to edit the jbossts-properties.xml to replace the word CONFIGURATION_FILE with NAME_SERVICE - not sure where that is documented but there you go. Also, if you are running on anything other than the defaults you will want to look at <INSTALL_DIR>/jacorb/etc/jacorb.properties so set OAIAddr and OAPort
-
4. Re: Standalone configuration of JBoss TS
marklittle May 3, 2012 6:47 AM (in response to ksreen)Check out the ORB Portability Guide in the distribution (source).
-
5. Re: Standalone configuration of JBoss TS
ksreen May 7, 2012 7:20 AM (in response to marklittle)Hi,
I am having trouble with starting both the transaction server and recovery manager. Both throw a ClassNotFoundException for org/sl4j/LoggerFactory.
Also, I had to manually update the Jboss.logger in classpath.
My aim is to run the arjuna tm in a standalone mode using the jacorb and have applications bind to the tm using jndi and use the tm.
Given below is the stack trace.
----------------------------------------------------------------------------------
May 7, 2012 4:37:10 PM com.arjuna.ats.internal.arjuna.recovery.RecActivatorLoade
r startRecoveryActivators
INFO: ARJUNA012324: Start RecoveryActivators
May 7, 2012 4:37:10 PM com.arjuna.ats.internal.jts.orbspecific.jacorb.recoveryco
ordinators.JacOrbRCServiceInit initORBandOA
INFO: ARJUNA022086: Starting RecoveryServer ORB on port 4711 and address
May 7, 2012 4:37:10 PM com.arjuna.orbportability.internal.utils.InitLoader creat
eInstance
INFO: ARJUNA021027: Loading PreInitLoader class - com.arjuna.ats.internal.jts.co
ntext.ContextPropagationManager
Warning: got exception 'java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory'
on startup, will retry in 5 seconds in the hope it is transient.
May 7, 2012 4:37:15 PM com.arjuna.ats.internal.arjuna.recovery.RecActivatorLoade
r startRecoveryActivators
INFO: ARJUNA012324: Start RecoveryActivators
May 7, 2012 4:37:15 PM com.arjuna.ats.internal.jts.orbspecific.jacorb.recoveryco
ordinators.JacOrbRCServiceInit initORBandOA
INFO: ARJUNA022086: Starting RecoveryServer ORB on port 4711 and address
May 7, 2012 4:37:15 PM com.arjuna.orbportability.internal.utils.InitLoader creat
eInstance
INFO: ARJUNA021027: Loading PreInitLoader class - com.arjuna.ats.internal.jts.co
ntext.ContextPropagationManager
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.jacorb.config.JacORBConfiguration.getLogger(JacORBConfiguration.j
ava:603)
at org.jacorb.config.JacORBConfiguration.<init>(JacORBConfiguration.java
:130)
at org.jacorb.config.JacORBConfiguration.getConfiguration(JacORBConfigur
ation.java:111)
at org.jacorb.orb.ORB.set_parameters(ORB.java:1527)
at org.omg.CORBA.ORB.init(ORB.java:337)
at com.arjuna.orbportability.internal.orbspecific.orb.implementations.OR
BBase.init(ORBBase.java:77)
at com.arjuna.orbportability.orb.core.ORB.init(ORB.java:90)
at com.arjuna.orbportability.ORB.initORB(ORB.java:186)
at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.J
acOrbRCServiceInit.initORBandOA(JacOrbRCServiceInit.java:150)
at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.J
acOrbRCServiceInit.startRCservice(JacOrbRCServiceInit.java:181)
at com.arjuna.ats.internal.jts.orbspecific.recovery.RecoveryEnablement.s
tartRCservice(RecoveryEnablement.java:127)
at com.arjuna.ats.internal.arjuna.recovery.RecActivatorLoader.startRecov
eryActivators(RecActivatorLoader.java:66)
at com.arjuna.ats.internal.arjuna.recovery.RecoveryManagerImple.<init>(R
ecoveryManagerImple.java:103)
at com.arjuna.ats.arjuna.recovery.RecoveryManager.<init>(RecoveryManager
.java:456)
at com.arjuna.ats.arjuna.recovery.RecoveryManager.manager(RecoveryManage
r.java:128)
at com.arjuna.ats.arjuna.recovery.RecoveryManager.manager(RecoveryManage
r.java:109)
at com.arjuna.ats.arjuna.recovery.RecoveryManager.main(RecoveryManager.j
ava:427)
----------------------------------------------------------------------------------
-
6. Re: Standalone configuration of JBoss TS
ksreen May 7, 2012 7:46 AM (in response to ksreen)Hi,
Solved by adding the sl4j-api-1.5.6.jar present in the jacorb folder in the classpath. I had to update the set-env.bat script so that the it would add the sl4j jars present under jacorb/lib folder instead of the logkit-1.2.jar.
Modifications to the setup-env.bat file:
---------------------------------------------------------------------------------------------------------------------------------------------------
set JACORB_CLASSPATH=%JACORB_CLASSPATH%;%JACORB_HOME%\lib\slf4j-jdk14-1.5.6.jar
set JACORB_CLASSPATH=%JACORB_CLASSPATH%;%JACORB_HOME%\lib\slf4j-api-1.5.6.jar
---------------------------------------------------------------------------------------------------------------------------------------------------
Thanks and Regards
Kamala
-
7. Re: Standalone configuration of JBoss TS
tomjenkinson May 8, 2012 5:49 AM (in response to ksreen)Thanks for the report Kamala, I will fix this, but may I ask you to raise a Jira if you would are able: https://issues.jboss.org/browse/JBTM
Thanks again!Tom
-
8. Re: Standalone configuration of JBoss TS
tomjenkinson May 8, 2012 8:01 AM (in response to tomjenkinson)Done - thanks for the report!!: https://issues.jboss.org/browse/JBTM-1160