[
https://issues.apache.org/jira/browse/SLING-2151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13076107#comment-13076107
]
Róbert Csákány commented on SLING-2151:
---------------------------------------
Thanks for answers. I understand the side effects of the version upgrade.
I've tried the other way to downgraded commons-log back to 1.5.2 of slf4j, I've
recompiled and deployed. My problem was a lot of bundle crashed with same error
as freemarker. Maybe I'm wrong, but it seems to me that bundles required 1.6.1
version be provided in commons-log - or I made a mistake.
Justin: My problemis the freemarker is not fallback to LOG4J. I don't
undersatand why when it's in Ignored-Package.
The bigger problem is when freemarker crash, all other script engines as well.
When I remove freemarker bundle everything works well.
The error message:
01.08.2011 21:54:35.725 *INFO* [FelixDispatchQueue]
org.apache.sling.scripting.freemarker BundleEvent STARTED
01.08.2011 21:54:35.725 *ERROR* [FelixDispatchQueue]
org.apache.sling.scripting.core FrameworkEvent ERROR
(java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory) java.lang.NoClas
sDefFoundError: org/slf4j/LoggerFactory
at
org.apache.sling.scripting.freemarker.FreemarkerScriptEngine.<clinit>(FreemarkerScriptEngine.java:42)
at
org.apache.sling.scripting.freemarker.FreemarkerScriptEngineFactory.getScriptEngine(FreemarkerScriptEngineFactory.java:107)
at
javax.script.ScriptEngineManager.getEngineByExtension(ScriptEngineManager.java:256)
at
org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.refreshScriptEngineManager(ScriptEngineManagerFactory.java:123)
at
org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.bundleChanged(ScriptEngineManagerFactory.java:187)
at
org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
at
org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
at
org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
at
org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory not found
by org.apache.sling.scripting.freemarker [99]
at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 11 more
> Parent POM defines sl4j 1.5.2 while the org.apache.sling.commons.log exports
> 1.6.1
> ----------------------------------------------------------------------------------
>
> Key: SLING-2151
> URL: https://issues.apache.org/jira/browse/SLING-2151
> Project: Sling
> Issue Type: Bug
> Components: General
> Affects Versions: Parent 10
> Reporter: Róbert Csákány
>
> This causes problems in bundles - for example scripting.freemarker.
> (LoggerFactory class not found). I've updated in Parent POM in my machine to
> 1.6.1 and it seems OK.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira