3 Replies Latest reply on Jul 8, 2007 6:46 PM by ellenzhao

    seam2.0beta : tests fail with jdk1.6

    koenhandekyn

      just want to share that on my machine there seams to be an issue with running the tests with jdk1.6. it's probably a jboss embedded issue much more than seam.

        • 1. Re: seam2.0beta : tests fail with jdk1.6
          koenhandekyn

          the error starts like this, the key messag being that it doesn't find the native String class: Class not found: [Ljava.lang.String;


          test:
           [testng] [Parser] Running:
           [testng] C:\workspace\upbox\test-build\ExampleActionTest.xml
           [testng]
           [testng] WARN 04-07 15:02:49,313 [org.jboss.mx.loading.UnifiedLoaderRepository3.addClassLoader()
          :675] Tried to add n
          on-URLClassLoader. Ignored
           [testng] ERROR 04-07 15:02:49,488 [org.jboss.dependency.plugins.AbstractController.incrementState
          ():456] Error instal
          
          ling to Instantiated: name=DeploymentFilter state=Described
           [testng] java.lang.IllegalStateException: Class not found: [Ljava.lang.String;
           [testng] at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:174)
           [testng] at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:125)
           [testng] at org.jboss.metadata.spi.signature.Signature.getParametersTypes(Signature.java:292)
          
           [testng] at org.jboss.metadata.plugins.loader.reflection.AnnotatedElementMetaDataLoader.getCo
          mponentMetaDataRetri
          eval(AnnotatedElementMetaDataLoader.java:138)
           [testng] at org.jboss.metadata.plugins.context.AbstractMetaDataContext.getComponentMetaDataRe
          trieval(AbstractMeta
          DataContext.java:280)



          • 2. Re: seam2.0beta : tests fail with jdk1.6
            alexg79

            This is a JBoss bug. Class loading was done in the wrong manner, relying on an unintended side effect of the class loading mechanism, and when the behavior changed in Java 6, it broke a lot of software. What you see there is a failed attempt at loading the class for String[], not String. JBoss AS 5.0 is supposed to be free of these issues once it's finished.

            • 3. Re: seam2.0beta : tests fail with jdk1.6
              ellenzhao

              http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111930

              You can download my patch, compile it (that class requires no other dependency than the jdk), swap out the same class in the jboss-embedded-all.jar.


              Regards,
              Ellen