8 Replies Latest reply: May 8, 2012 8:01 AM by Tom Jenkinson RSS

    Standalone configuration of JBoss TS

    ksreen Newbie

      Hi,

       

             I would like to use the latest 4.16.4 JBoss JTS with JacORB as a standalone configuration. Can you please let me know to configure the same.

       

      Regards

      Kamala

        • 1. Re: Standalone configuration of JBoss TS
          Tom Jenkinson Master

          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 Newbie

            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
              Tom Jenkinson Master

              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
                Mark Little Master

                Check out the ORB Portability Guide in the distribution (source).

                • 5. Re: Standalone configuration of JBoss TS
                  ksreen Newbie

                  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 Newbie

                    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
                      Tom Jenkinson Master

                      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