[
https://issues.apache.org/jira/browse/SLING-1499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12868792#action_12868792
]
Mike Moulton commented on SLING-1499:
-------------------------------------
In looking into the JRuby exception (java.lang.NoClassDefFoundError:
org/jruby/internal/runtime/methods/JavaMethod$JavaMethodZero) I found that
servicemix has a default feature called 'servicemix-scripting' that installs
the following bundles providing javax.script.ScriptEngineFactory's:
<bundle>mvn:com.google.code.scriptengines/scriptengines-groovy/1.1</bundle>
<bundle>mvn:com.google.code.scriptengines/scriptengines-javascript/1.1</bundle>
<bundle>mvn:com.google.code.scriptengines/scriptengines-jruby/1.1</bundle>
When sling installs the ScriptEngineManagerFactory in scripting.core is finding
these and having a classloading problem with the jruby implementation. The same
feature installs a servicemix packaged JRuby 1.1.2 impl that does contain the
org/jruby/internal/runtime/methods/JavaMethod$JavaMethodZero class that is
being complained about. Given this there appears to be a classloader scope
issue.
Removing the servicemix-scripting feature from the install list resolves the
exception and allows the scripting core to startup properly. This does however
remove the ability to use jruby, groovy or javascript within servicemix itself.
I'm going to dig further to see if I can find the root of the problem, although
I'm not very familiar with sling's scripting code so it may take some time. Any
direction is appreciated.
> Many exceptions thrown when installing sling 'feature' in ServiceMix 4.2
> ------------------------------------------------------------------------
>
> Key: SLING-1499
> URL: https://issues.apache.org/jira/browse/SLING-1499
> Project: Sling
> Issue Type: Bug
> Components: Launchpad
> Reporter: Mike Moulton
> Attachments: smx-4.2-sling-feature-install.log.zip
>
>
> I'm trying to install the trunk of Sling (r937546) in ServiceMix 4.2 using:
> features:addUrl
> mvn:org.apache.sling/org.apache.sling.launchpad/6-SNAPSHOT/xml/features
> features:install sling
> Note: I already have http and webconsole installed.
> When I install the sling feature I get quite a few exceptions. I have
> attached the complete servicemix.log from the time the feature was installed
> to when it completed. This task is to track the cleanup of these exceptions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.