8 Replies Latest reply on Aug 13, 2012 7:35 AM by tcendrowski

    The JBoss Transactions JTA 4.2.3.SP7 compile problem

    tcendrowski

      Hi.

       

      I've downloaded it from first link from there:

       

      http://www.jboss.org/jbosstm/downloads/4-2-3-SP7

       

      I would like to compile it using ant, but I get many errors about lacking libraries etc, files etc. Why this package doesn't include all needed files? I've wasted much time looking for them, but completing all of them isn't as simple as it should be. Does anybody have simple tutorial how to build it with ant? What I have to download, form where, what to include, import etc. Thanks in advance. (I know about compiled jar files in second link, but I need to compile it by myself.)

       

      Greets.

        • 1. Re: The JBoss Transactions JTA 4.2.3.SP7 compile problem
          tcendrowski

          I think that there is something wrong with classpath, because .jar libraries are in packet, but when ant script is running packages from .jar files aren't provided. Code which sets classpath in build.xml is quite hard to undestand because of many variables and links between them so I think that someone who was involved in creating JBoss Transactions could help quite easily in this case.

          • 2. Re: The JBoss Transactions JTA 4.2.3.SP7 compile problem
            jhalliday

            export JAVA_HOME=/usr/local/jdk1.5.0_19

            export ANT_HOME=/usr/loca/apache-ant-1.7.1

            export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH

            cd JBOSSTS_4_2_3_SP7

            ant jta

            ...

              [java] BUILD SUCCESSFUL

              [java] Total time: 36 seconds

             

            Not all that hard really.

            • 3. Re: The JBoss Transactions JTA 4.2.3.SP7 compile problem
              tcendrowski

              Under Windows it's not working. This is my (not entire) output:

               

              http://pastebin.com/e7yQt3u0

               

              Then I've collected lacking files but then I got errors about functions in this files so I gave up. It's log before I suplemmented those files.

              • 4. Re: The JBoss Transactions JTA 4.2.3.SP7 compile problem
                jhalliday

                Well your bug reporting skills are gradually improving. At least you managed to mention the O/S this time. Still no mention of the version of java or ant though, nor of the environment settings, nor of the ant target you're running. Or the modifications you made (what files, where). So still not much hope I'll be able to reproduce and diagnose the problem. /sigh.

                • 5. Re: The JBoss Transactions JTA 4.2.3.SP7 compile problem
                  tcendrowski

                  jdk1.5.0_17, Ant 1.8.2, JAVA_HOME, ANT_HOME and PATH are set, I got the same kind of errors on every taget. This log was from ant jta. At first I'd like to compile ant jbossjta. I didn't make any modifications.

                  • 6. Re: The JBoss Transactions JTA 4.2.3.SP7 compile problem
                    jhalliday

                    > Ant 1.8.2

                     

                    That's known to contaminate the build path with its own libs - the older build scripts don't have the necessary params to isolate things fully.  Fall back to 1.7.x

                     

                    > This log was from ant jta.

                     

                    which I just demonstrated does come with all the bits you need, so it's likely just a path composition problem.

                     

                    > At first I'd like to compile ant jbossjta

                     

                    yet you make no mention of the value of JBOSS_HOME, which may be just a tad relevant to an integration build.

                     

                    > I didn't make any modifications.

                     

                    so the whole thing about having collected lacking files was just a red herring to distract me? :-)

                    • 7. Re: The JBoss Transactions JTA 4.2.3.SP7 compile problem
                      tcendrowski

                      JBOSS_HOME was set properly (jboss version 4.2.3), without it script wouldn't even start. The exact situation is that files aren't lacking, ant just can't find them in .jars and it's main problem. So I've tried to add manually this files to buildsystem/classes, but what happened next is described few posts higher.. So packages are in libs, but I receive messages that this packages doesn't exist etc. because ant can't find them. This problem occurs after starting script without any changes. For now I have wait to monday to check if it will work. Thanks for answers.

                      • 8. Re: The JBoss Transactions JTA 4.2.3.SP7 compile problem
                        tcendrowski

                        Build with ant 1.7.0. is successful, .jar files are generated, but I still get few messages about lacking packages, i.e. "package com.arjuna.orbportability does not exist". "

                        D:\clean\JBOSSTS_4_2_3_SP7\atsintegration\classes\com\arjuna\ats\internal\jbossatx\jts\PropagationContextWrapper.java:82: cannot find symbol

                        symbol  : class PropagationContext

                        location: class com.arjuna.ats.internal.jbossatx.jts.PropagationContextWrapper

                                 public PropagationContextWrapper(PropagationContext tpc)" etc.

                         

                        Should I worry about this?