Application Server 3  4  5 and 6
  1. Application Server 3 4 5 and 6
  2. JBAS-6968

org.jboss.test.spring.test.SpringClusterTestCase failing with IBM JDK 1.5

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: JBossAS-5.1.0.CR1
    • Fix Version/s: 6.0.0.M1
    • Component/s: Test Suite
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Environment:
      IBM JDK 1.5 & 1.6
    • Similar Issues:
      Show 10 results 

      Description

      org.jboss.test.spring.test.SpringClusterTestCase is failing with this message:
      testStandalone Failure N/A
      junit.framework.AssertionFailedError
      at org.jboss.test.spring.test.SpringClusterTestCase.testStandalone(SpringClusterTestCase.java:43)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)

      In the server log you can see:
      ...
      DEPLOYMENTS IN ERROR:
      Deployment "vfszip:/home/brq/mmalina/jbossqa/ibm/jboss-5.1.0.CR1-src/testsuite/output/lib/spring-cluster-pojos.jar/" is in error due to the following reason(s): java.lang.ClassNotFoundException: net.jcip.annotations.ThreadSafe
      ...

      Which shows that it is again the same problem with net.jcip.annotations.ThreadSafe missing in IBM JDK as discussed here JBAS-6934 and JBAS-6428.

      Solution: Ensure that jcip-annotations.jar gets copied to server/springdeployer/lib/ when the config is created.
      A. Add jcip-annotations.jar to server/default/lib (it is 2.6 KB) - springdeployer is created out of default
      B. Change testsuite/build.xml to make ant copy jcip-annotations.jar from server/all/lib/ to server/springdeployer/lib/ - don't know how to do that easily

      A. seems easier to do.

        Activity

        Hide
        Shelly McGowan
        added a comment -

        The fix has been commited to the JBPAPP_5_0 branch, rev 90367. Need to commit to Branch_5_x and trunk.

        Show
        Shelly McGowan
        added a comment - The fix has been commited to the JBPAPP_5_0 branch, rev 90367. Need to commit to Branch_5_x and trunk.

          People

          • Assignee:
            Shelly McGowan
            Reporter:
            Martin Malina
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: