Hans-Peter Stoerr created SLING-8576:
----------------------------------------

             Summary: NoClassDefFoundError for ScriptEngineManagerFactory
                 Key: SLING-8576
                 URL: https://issues.apache.org/jira/browse/SLING-8576
             Project: Sling
          Issue Type: Bug
          Components: Testing
    Affects Versions: Testing Sling Mock 2.3.14
            Reporter: Hans-Peter Stoerr


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!



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to