Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-897

java.lang.ClassFormatError: Illegal classname

    Details

    • Steps to Reproduce:
      Hide

      Deploy the war associated with the TCK directory in the stacktrace from the description to Glassfish 3.x. The server log will show the stacktrace.

      Show
      Deploy the war associated with the TCK directory in the stacktrace from the description to Glassfish 3.x. The server log will show the stacktrace.
    • Affects:
      Release Notes
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Seems to only happen JDK 1.6_25 and later. Therefore, use JDK 1.6_24 or earlier.

      Show
      Seems to only happen JDK 1.6_25 and later. Therefore, use JDK 1.6_24 or earlier.

      Description

      The CDI TCK passes all tests when run using Glassfish 3.x with Oracle's JDK
      1.6.0_24. However, when we change to use Oracle's JDK 1.6.0_25 patch, deployment of some of
      the test war files to the autodeploy directory of Glassfish results in the errors below. Talking with Pete Muir, it appears that the JDK has tightened something and is now exposing a bug in Weld.

      [#|2011-05-03T13:02:50.870-0400|SEVERE|glassfish3.2|javax.enterprise.system.to
      ols.admin.org.glassfish.deployment.admin|_ThreadID=17;_ThreadName=Thread-1;|Ex
      ception
      while loading the app : by java.lang.ClassFormatError: Illegal class
      name
      "org/jboss/jsr299/tck/tests/extensions/alternative/metadata/org$jboss$weld$bea
      n-org$jboss$jsr299$tck$tests$extensions$alternative$metadata$AlternativeMetada
      taTest-ManagedBean-org$jboss$jsr299$tck$tests$extensions$alternative$metadata$
      Grocery[@javax$enterprise$context$RequestScoped()@org$jboss$jsr299$tck$tests$e
      xtensions$alternative$metadata$Cheap()@org$jboss$jsr299$tck$tests$extensions$a
      lternative$metadata$GroceryInterceptorBinding()@org$jboss$jsr299$tck$tests$ext
      ensions$alternative$metadata$NamedStereotype()]{org$jboss$jsr299$tck$tests$ext
      ensions$alternative$metadata$Grocery$bread[@javax$enterprise$inject$Produces()
      ]$org$jboss$jsr299$tck$tests$extensions$alternative$metadata$Grocery$fruit[@ja
      vax$inject$Inject()@org$jboss$jsr299$tck$tests$extensions$alternative$metadata
      $Cheap()]$org$jboss$jsr299$tck$tests$extensions$alternative$meta
      data$Grocery$vegetables[@javax$inject$Inject()]$org$jboss$jsr299$tck$tests$ext
      ensions$alternative$metadata$Grocery$getMilk[@javax$enterprise$inject$Produces
      ()](
      org.jboss.weld.exceptions.WeldException: by java.lang.ClassFormatError:
      Illegal class name

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swd847 Stuart Douglas
                  Reporter:
                  kgrucci Kyle Grucci
                • Votes:
                  3 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: