3 Replies Latest reply on Apr 26, 2008 9:54 AM by Richard Opalka

    Missing junit.jar lib in ant tests

    Andrew Dinn Master

      I posted about this a while back in response to the initial announcement. Heiko just responded to my post about this error with the advice that I should try running

      bash build.sh tests

      instead of

      ant tests

      I tried this but I get another problem because tools/ant/bin/ant unpacks without execute permission so the call to search() fails to find it. n.b. this is not a problem with the unpack -- the permissions in the zip file entry do not include execute.

        • 1. Re: Missing junit.jar lib in ant tests
          Richard Opalka Master

           

          "adinn" wrote:

          I tried this but I get another problem because tools/ant/bin/ant unpacks without execute permission so the call to search() fails to find it. n.b. this is not a problem with the unpack -- the permissions in the zip file entry do not include execute.


          Yes, after unpack of src or binary distribution, users have to chmod 755 these files:

          ./build.sh
          ./tools/ant/bin/ant
          ./tools/ant/bin/antRun


          • 2. Re: Missing junit.jar lib in ant tests
            takenori sato Newbie

            Hi,

            <target name="tests-init" depends="prepare,tests-classpath">
            
             <path id="ws.stack.classpath">
             ...
             </path>
            
             <path id="tests.extra.classpath">
             <pathelement location="${thirdparty.dir}/policy.jar"/>
             <pathelement location="${thirdparty.dir}/jaxws-tools.jar"/>
             <pathelement location="${thirdparty.dir}/wstx.jar"/>
             <pathelement location="${basedir}/tools/lib/junit.jar"/>
             </path>
            
             </target>


            There's no such a thing, tools/lib/junit.jar.
            By creating the folder and putting the junit jar file, the compiler problem was solved.

            Thanks,
            Takenori

            • 3. Re: Missing junit.jar lib in ant tests
              Richard Opalka Master

              You can also use ./build.sh(.bat) files instead of ant to run the tests ;)