Weld
  1. Weld
  2. WELD-897

java.lang.ClassFormatError: Illegal classname

    Details

    • 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.
    • 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.
    • Similar Issues:
      Show 7 results 

      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

        Issue Links

          Activity

          Hide
          Jozef Hartinger
          added a comment -

          I am not able to reproduce with Weld 1.1.1.Final so this issue is probably out of date.

          Show
          Jozef Hartinger
          added a comment - I am not able to reproduce with Weld 1.1.1.Final so this issue is probably out of date.
          Hide
          Ales Justin
          added a comment -

          I already applied Stuart's patch in my jiras1 branch,
          and GF team confirmed it works for them.

          Show
          Ales Justin
          added a comment - I already applied Stuart's patch in my jiras1 branch, and GF team confirmed it works for them.
          Show
          Ales Justin
          added a comment - https://github.com/weld/core/commit/35f993be22c65ce7cd798d6780a7c040c37b33bb Right?

            People

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

              Dates

              • Created:
                Updated:
                Resolved: