Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6857

Missing junit.jar lib when compiling JBossWS native 2.0.1 SP2_CP09 with Ant 1.7.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • TBD EAP 4
    • 4.3.0.GA_CP09
    • Web Services
    • None
    • Ant 1.7.1, jdk16_u22, Fedora14 x86_64

    • Workaround Exists
    • Hide

      Possible workaround:
      1) copy JUnit jar to $ANT_HOME/lib
      2) specify JUnit jar with -lib switch

      Show
      Possible workaround: 1) copy JUnit jar to $ANT_HOME/lib 2) specify JUnit jar with -lib switch
    • NEW

      I've got JBossWS Native 2.0.1 SP2_CP09 and invoked ant tests-main. Build failed on test compilation, Ant probably can not locate JUnit on classpath, see error output from javac task:

      tests-compile:
      [mkdir] Created dir: /home/bbelovic/WORK/soa-ws-43/src/output/tests/classes
      [javac] Compiling 122 source files to /home/bbelovic/WORK/soa-ws-43/src/output/tests/classes
      [javac] Compiling 196 source files to /home/bbelovic/WORK/soa-ws-43/src/output/tests/classes
      [javac] /home/bbelovic/WORK/soa-ws-43/src/src/test-framework/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousDispatchTestCase.java:42: package junit.framework does not exist
      [javac] import junit.framework.Test;
      [javac] ^
      [javac] /home/bbelovic/WORK/soa-ws-43/src/src/test-framework/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousDispatchTestCase.java:56: cannot access junit.framework.TestCase
      [javac] class file for junit.framework.TestCase not found
      [javac] public class AsynchronousDispatchTestCase extends JBossWSTest
      [javac] ^
      [javac] /home/bbelovic/WORK/soa-ws-43/src/src/test-framework/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousDispatchTestCase.java:64: cannot find symbol
      [javac] symbol : class Test
      [javac] location: class org.jboss.test.ws.jaxws.samples.asynchronous.AsynchronousDispatchTestCase
      [javac] public static Test suite()
      [javac] ^
      [javac] /home/bbelovic/WORK/soa-ws-43/src/src/test-framework/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.java:36: package junit.framework does not exist
      [javac] import junit.framework.Test;
      [javac] ^
      [javac] /home/bbelovic/WORK/soa-ws-43/src/src/test-framework/java/org/jboss/test/ws/jaxws/samples/asynchronous/AsynchronousProxyTestCase.java:53: cannot find symbol
      [javac] symbol : class Test
      [javac] location: class org.jboss.test.ws.jaxws.samples.asynchronous.AsynchronousProxyTestCase
      [javac] public static Test suite()
      [javac] ^
      [javac] /home/bbelovic/WORK/soa-ws-43/src/src/test-framework/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java:48: cannot find symbol
      [javac] symbol : class Test
      [javac] location: class org.jboss.test.ws.jaxws.samples.context.WebServiceContextEJBTestCase
      [javac] public static Test suite()
      [javac] ^
      [javac] /home/bbelovic/WORK/soa-ws-43/src/src/test-framework/java/org/jboss/test/ws/jaxws/samples/context/WebServiceContextJSETestCase.java:48: cannot find symbol
      [javac] symbol : class Test
      [javac] location: class org.jboss.test.ws.jaxws.samples.context.WebServiceContextJSETestCase
      [javac] public static Test suite()
      [javac] ^

              rhn-support-asoldano Alessio Soldano
              bbelovic_jira Boris Belovic (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: