Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1042

Implementations of GeneralValidator throw NoClassDefFoundError when resteasy-cdi is not on the classpath

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.8.Final
    • 3.0.7.Final
    • None
    • None
    • Hide

      Add resteasy-cdi to the classpath.

      Show
      Add resteasy-cdi to the classpath.

      In GeneralValidatorImpl in resteasy-validation-provider-11 and resteasy-hibernatevalidator-provider, then is a test

      try

      { cdiActive = ResteasyCdiExtension.isCDIActive(); }

      catch (Exception e)

      { // Intentionally empty. In case ResteasyCdiExtension is not on the classpath. }

      to avoid depending on resteasy-cdi. But NoClassDefFoundError is an Error, and doesn't get caught.

              rsigal@redhat.com Ronald Sigal
              rsigal@redhat.com Ronald Sigal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: