Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5283

sts: NoClassDefFoundError in LoggerListener

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.7
    • 2.7.7, 3.0.0-milestone1
    • STS
    • None
    • Unknown

    Description

      LoggerListener has an optional dependency to the servlet spec 3.0.
      This spec defines javax.servlet.http in version 2.6.
      So the import in sts-core uses version [2.6,3).

      Karaf 2.3.x only offers the servlet spec 2.5 jar which exports the package as 2.5.

      So the optional import is not found and so we get the error.

      Inside LoggerListener we only check for NPE and for Exception. As this is an Error it completely breaks the execution.

      Attachments

        Activity

          People

            cschneider Christian Schneider
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: