4 Replies Latest reply on Jul 11, 2013 10:08 AM by tomjenkinson

    How do I run it with JDBC?

    maxxi1

      Hi, I looked into the JDBC spec and it says that there is support for distributed transactions. I looked it up and downloaded jbossts-full-4.17.4.Final

       

      I set NARAYANA_HOME to "C:\jbossts-full-4.17.4.Final"

      But when I try to run "start-transaction-service.bat", it just gives me an error:

       

      Error: Could not find or load main class com.arjuna.ats.jts.TransactionServer

       

      I read that JBoss is a good implementation of JTA, can you help me get it up and running? Is it even possible on my local development machine? I suppose I'm not really "distributed" and I don't even know what "narayana" means.

      There's also a "services" folder which has more .bat files like for example: transactionserverservice.bat and InstallTransactionServerService-NT.bat, but I ran them all and I'm still getting the above error with the class not found.

        • 1. Re: How do I run it with JDBC?
          mmusgrov

          The readme instructions are wrong. To start the JTS version of the transaction manager:

           

          . ./jts-setup-env.sh

          export CLASSPATH=$CLASSPATH:$NARAYANA_HOME/lib/jts/jbossjts-jacorb.jar

          ./bin/start-transaction-service.sh

           

          similarly if you are running on Windows.

           

          When we fix the readme we will also include updated instructions on running the JTA version.

          1 of 1 people found this helpful
          • 2. Re: How do I run it with JDBC?
            maxxi1

            Now I'm getting this, very weird cmdline formatting: (it's really that long)

             

            C:\jbossts-full-4.17.4.Final\bin>start-transaction-service.bat

            C:\jbossts-full-4.17.4.Final\bin>rem

            C:\jbossts-full-4.17.4.Final\bin>rem JBoss, Home of Professional Open Source

            C:\jbossts-full-4.17.4.Final\bin>rem Copyright 2006, Red Hat Middleware LLC, and

            individual contributors

            C:\jbossts-full-4.17.4.Final\bin>rem as indicated by the @author tags.

            C:\jbossts-full-4.17.4.Final\bin>rem See the copyright.txt in the distribution f

            or a

            C:\jbossts-full-4.17.4.Final\bin>rem full listing of individual contributors.

            C:\jbossts-full-4.17.4.Final\bin>rem This copyrighted material is made available

            to anyone wishing to use,

            C:\jbossts-full-4.17.4.Final\bin>rem modify, copy, or redistribute it subject to

            the terms and conditions

            C:\jbossts-full-4.17.4.Final\bin>rem of the GNU Lesser General Public License, v

            . 2.1.

            C:\jbossts-full-4.17.4.Final\bin>rem This program is distributed in the hope tha

            t it will be useful, but WITHOUT A

            C:\jbossts-full-4.17.4.Final\bin>rem WARRANTY; without even the implied warranty

            of MERCHANTABILITY or FITNESS FOR A

            C:\jbossts-full-4.17.4.Final\bin>rem PARTICULAR PURPOSE.  See the GNU Lesser Gen

            eral Public License for more details.

            C:\jbossts-full-4.17.4.Final\bin>rem You should have received a copy of the GNU

            Lesser General Public License,

            C:\jbossts-full-4.17.4.Final\bin>rem v.2.1 along with this distribution; if not,

            write to the Free Software

            C:\jbossts-full-4.17.4.Final\bin>rem Foundation, Inc., 51 Franklin Street, Fifth

            Floor, Boston,

            C:\jbossts-full-4.17.4.Final\bin>rem MA  02110-1301, USA.

            C:\jbossts-full-4.17.4.Final\bin>rem

            C:\jbossts-full-4.17.4.Final\bin>rem (C) 2005-2006,

            C:\jbossts-full-4.17.4.Final\bin>rem @author JBoss Inc.

            C:\jbossts-full-4.17.4.Final\bin>rem

            log4j:WARN No appenders could be found for logger (org.jboss.logging).

            log4j:WARN Please initialize the log4j system properly.

            Initialisation of TransactionServer failed: org.omg.CORBA.INITIALIZE: can't inst

            antiate default ORB implementation org.jacorb.orb.ORB  vmcid: 0x0  minor code: 0

              completed: No

            TransactionServer caught exception org.omg.CORBA.INITIALIZE: can't instantiate d

            efault ORB implementation org.jacorb.orb.ORB  vmcid: 0x0  minor code: 0  complet

            ed: No

            JBossTS OTS Server shutdown

            • 3. Re: How do I run it with JDBC?
              tomjenkinson

              I think you have executed jta-setup-env.bat rather than jts-setup-env.bat

              • 4. Re: How do I run it with JDBC?
                tomjenkinson

                Just to let you know, this is now resolved here: https://issues.jboss.org/browse/JBTM-1708