-
1. Re: Building JTA from source
kconner May 9, 2007 4:50 PM (in response to vickyk)You need to build it from the level above, i.e. from trunk.
ant jta
will build the standalone JTA versionant jts
will build the standalone JTS versionant jbossjta
will build the JTA version with AS integrationant jbossjts
will build the JTS version with AS integration -
2. Re: Building JTA from source
vickyk May 13, 2007 12:32 AM (in response to 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 May 14, 2007 4:28 AM (in response to vickyk)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 May 26, 2007 6:07 AM (in response to 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 May 27, 2007 5:47 AM (in response to vickyk)"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 May 27, 2007 5:51 AM (in response to vickyk)"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 May 27, 2007 2:38 PM (in response to vickyk)"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 May 31, 2007 8:32 AM (in response to vickyk)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 Jun 5, 2007 6:41 AM (in response to 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 Jun 5, 2007 4:47 PM (in response to vickyk)"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.