Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8576

NoClassDefFoundError for ScriptEngineManagerFactory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Testing Sling Mock 2.3.14
    • Fix Version/s: Testing Sling Mock 2.3.18
    • Component/s: Testing
    • Labels:
      None

      Description

      When been upgrading our dependencies to the versions used in Sling Starter 11, namely upgrading org.apache.sling.scripting.core to version 2.0.54, our tests stopped working even when using the latest version org.apache.sling.testing.sling-mock.core:2.3.14 with the following exception:

      java.lang.NoClassDefFoundError: org/apache/sling/scripting/core/impl/ScriptEngineManagerFactory

      at org.apache.sling.testing.mock.sling.context.SlingContextImpl.registerDefaultServices(SlingContextImpl.java:153)
      at org.apache.sling.testing.mock.sling.context.SlingContextImpl.setUp(SlingContextImpl.java:129)
      ...
      Caused by: java.lang.ClassNotFoundException: org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory

      The problem here is that the class org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory exists in the sling.scripting.core:2.0.36 , which is used as a dependency of sling-mock.core, but does not exist anymore in sling-scripting.core:2.0.54. It would be nice if that could be fixed!

        Attachments

          Activity

            People

            • Assignee:
              sseifert Stefan Seifert
              Reporter:
              hanspeterstoerr Hans-Peter Stoerr
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: