10 Replies Latest reply on Jun 5, 2007 4:47 PM by marklittle

    Building JTA from source

    vickyk

      I tried to build the ArjunaJTA module using the ant script but could not do it . I get the following error

      C:\JEMS\Transaction\16June2006\trunk\ArjunaJTA>ant
      Buildfile: build.xml
      
      com.hp.mwlabs.ts.product.init:
       [echo] Initialising product JBossJTA
       [echo] Source ID = unknown
       [echo] Version = unknown
       [echo] Builder = JBoss Inc. [Vicky] (Windows XP 5.1)
       [echo] Date = 2007/May/09 23:10
       [echo] Notes =
      
      BUILD FAILED
      C:\JEMS\Transaction\16June2006\trunk\ArjunaJTA\build.xml:92: C:\JEMS\Transaction
      \16June2006\trunk\ArjunaJTA${buildsystem.dir}\build\lib not found.
      
      Total time: 0 seconds


      Can I build the ArjunaJTS only ?

        • 1. Re: Building JTA from source
          kconner

          You need to build it from the level above, i.e. from trunk.

          ant jta

          will build the standalone JTA version
          ant jts

          will build the standalone JTS version
          ant jbossjta

          will build the JTA version with AS integration
          ant jbossjts

          will build the JTS version with AS integration


          • 2. Re: Building JTA from source
            vickyk

            I tried to build the "ant jta" which I checked out from
            http://anonsvn.labs.jboss.com/labs/jbosstm/trunk
            I got the following error

            [java] BUILD FAILED
             [java] C:\svn\jbosstm\build.xml:160: The following error occurred while exe
            cuting this line:
             [java] C:\svn\jbosstm\common\build.xml:232: Test com.hp.mwtests.commonloggi
            ng.testlevels.TestLevels failed
            
             [java] Total time: 22 seconds


            This indicates com.hp.mwtests.commonlogging.testlevels.TestLevels has failed .



            • 3. Re: Building JTA from source
              jhalliday

              Are you building on Windows by any chance? I have a suspicion that test is invalid on Windows but I'll need to set up a suitable environment before I can prove it. Just comment it out in the ant script for now.

              • 4. Re: Building JTA from source
                vickyk

                Yes I am running this on windows .
                I have commented the following line

                <!-- fileset dir="${com.hp.mwlabs.ts.common.tests.src}" includes="**/TestLevels.java"/ -->

                Now I am getting the another error , here it goes
                [java] C:\svn\jbosstm\ArjunaJTA\build.xml:301: The following error occurred
                 while executing this line:
                 [java] C:\svn\jbosstm\ArjunaJTA\jta\build.xml:172: Compile failed; see the
                compiler error output for details.
                
                 [java] Total time: 1 minute 13 seconds
                 [java] [javac] C:\svn\jbosstm\ArjunaJTA\jta\classes\com\arjuna\ats\inte
                rnal\jta\recovery\arjunacore\XARecoveryModule.java:638: warning: com.arjuna.ats.
                jta.recovery.XAConnectionRecovery in com.arjuna.ats.jta.recovery has been deprec
                ated
                 [java] [javac] XAConnec
                tionRecovery ri = (XAConnectionRecovery) _xaRecoverers
                 [java] [javac]
                 ^
                 [java] [javac] 1 error
                 [java] [javac] 5 warnings
                
                BUILD FAILED
                C:\svn\jbosstm\build.xml:78: The following error occurred while executing this l
                ine:
                C:\svn\jbosstm\build.xml:47: Java returned: 1
                
                Total time: 1 minute 14 seconds
                C:\svn\jbosstm>

                Can you please verify this on the Window's . Also I wanted to run the single unit test case how do I go ahead with that , do we have this in wiki ?
                If I need to run the following single test how do I go ahead with it
                com.hp.mwtests.ts.jta.basic.JTATest ?


                • 5. Re: Building JTA from source
                  marklittle

                   

                  "vickyk" wrote:
                  Now I am getting the another error , here it goes
                  [java] C:\svn\jbosstm\ArjunaJTA\build.xml:301: The following error occurred
                   while executing this line:
                   [java] C:\svn\jbosstm\ArjunaJTA\jta\build.xml:172: Compile failed; see the
                  compiler error output for details.
                  
                   [java] Total time: 1 minute 13 seconds
                   [java] [javac] C:\svn\jbosstm\ArjunaJTA\jta\classes\com\arjuna\ats\inte
                  rnal\jta\recovery\arjunacore\XARecoveryModule.java:638: warning: com.arjuna.ats.
                  jta.recovery.XAConnectionRecovery in com.arjuna.ats.jta.recovery has been deprec
                  ated
                   [java] [javac] XAConnec
                  tionRecovery ri = (XAConnectionRecovery) _xaRecoverers
                   [java] [javac]
                   ^
                   [java] [javac] 1 error
                   [java] [javac] 5 warnings
                  
                  BUILD FAILED
                  C:\svn\jbosstm\build.xml:78: The following error occurred while executing this l
                  ine:
                  C:\svn\jbosstm\build.xml:47: Java returned: 1
                  
                  Total time: 1 minute 14 seconds
                  C:\svn\jbosstm>

                  Can you please verify this on the Window's .


                  I don't have access to a Sun JDK at the moment, only JRockit, and the system builds fine with that on XP SP2.

                  • 6. Re: Building JTA from source
                    marklittle

                     

                    "vickyk" wrote:
                    Also I wanted to run the single unit test case how do I go ahead with that , do we have this in wiki ?
                    If I need to run the following single test how do I go ahead with it
                    com.hp.mwtests.ts.jta.basic.JTATest ?


                    You need to make sure you have the DTF jar in your classpath (TestingFramework.jar) and then just invoke through the command line.

                    • 7. Re: Building JTA from source
                      marklittle

                       

                      "jhalliday" wrote:
                      Are you building on Windows by any chance? I have a suspicion that test is invalid on Windows but I'll need to set up a suitable environment before I can prove it. Just comment it out in the ant script for now.


                      I took a quick look at this and there's definitely a few things wrong with the test on Windows. Obviously it should pass as it does on Un*x. I've created a JIRA http://jira.jboss.com/jira/browse/JBTM-222.

                      • 8. Re: Building JTA from source
                        jhalliday

                        I've tweaked the regexp to accout for windows style line endings. It now passes on windows and unix.

                        • 9. Re: Building JTA from source
                          vickyk

                          Yes it is getting build now ...
                          I wanted to know how to run the individual test case , I am interested in running the ArjunaJTA\jta\tests\classes\com\hp\mwtests\ts\jta\basic\JTATest.java through the ant command .
                          Can I do that ?

                          • 10. Re: Building JTA from source
                            marklittle

                             

                            "vickyk" wrote:
                            Yes it is getting build now ...
                            I wanted to know how to run the individual test case , I am interested in running the ArjunaJTA\jta\tests\classes\com\hp\mwtests\ts\jta\basic\JTATest.java through the ant command .
                            Can I do that ?


                            No. These (unit) tests were run by a separate unit testing component that ran from the DTF. That's not in place at the moment. Just run it from the command line. Typically the -help option will give you something from each test if there are any runtime options.