[jboss-jira] [JBoss JIRA] Created: (JBAS-6968) org.jboss.test.spring.test.SpringClusterTestCase failing with IBM JDK 1.5

Martin Malina (JIRA) jira-events at lists.jboss.org
Fri May 22 10:09:58 EDT 2009


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

                 Key: JBAS-6968
                 URL: https://jira.jboss.org/jira/browse/JBAS-6968
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Test Suite
    Affects Versions: JBossAS-5.1.0.CR1
         Environment: IBM JDK 1.5 & 1.6
            Reporter: Martin Malina
            Assignee: Shelly McGowan
         Attachments: spring-server.log

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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list