[
https://issues.apache.org/jira/browse/SLING-8576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16883607#comment-16883607
]
Hans-Peter Stoerr commented on SLING-8576:
------------------------------------------
If someone else is affected: a temporary workaround is to include
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.scripting.core</artifactId>
<version>2.0.50</version>
<scope>test</scope>
</dependency>
in the projects where the tests break.
> 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
> Priority: Major
>
> 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)