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

java.lang.ClassFormatError: Illegal classname

XMLWordPrintable

    • 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.
    • Release Notes
    • Workaround Exists
    • 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.

      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

            sdouglas1@redhat.com Stuart Douglas
            kgrucci Kyle Grucci (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: