You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Justin Edelson (Assigned) (JIRA)" <ji...@apache.org> on 2012/03/20 18:39:39 UTC
[jira] [Assigned] (SLING-2432) java.lang.NoClassDefFoundError when
using Freemarker ScriptingEngine [patch included]
[ https://issues.apache.org/jira/browse/SLING-2432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Edelson reassigned SLING-2432:
-------------------------------------
Assignee: Justin Edelson
> java.lang.NoClassDefFoundError when using Freemarker ScriptingEngine [patch included]
> -------------------------------------------------------------------------------------
>
> Key: SLING-2432
> URL: https://issues.apache.org/jira/browse/SLING-2432
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Reporter: Sean Kleinjung
> Assignee: Justin Edelson
> Labels: freemarker, patch, scripting
> Fix For: Scripting Freemarker 2.0.0
>
> Attachments: Removed_Freemarker_script_engine_dependency_on_slf4j_.patch
>
>
> The most recent 2.0.0-SNAPSHOT of org.apache.sling.scripting.freemarker contains a direct dependency on org.slf4j.Logger and org.slf4j.LoggerFactory. This bundle explicitly does NOT import these packages, however, and so at runtime script execution will fail with a NoClassDefFoundError because the org.apache.sling.scripting.freemarker.FreemarkerScriptEngine class cannot be initialized. Freemarker provides a suitable logging facility that will degrade gracefully if slf4j is missing, but the aforementioned FreemarkerScriptEngine class does not utilize it.
> The attached patch removes the slf4j dependency, and resolves this issue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira