You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Jakub Herkel (Jira)" <ji...@apache.org> on 2022/03/14 07:12:00 UTC

[jira] [Closed] (SM-5022) Rhino:1.7.14_1 - Missing RhinoScriptEngineFactory class

     [ https://issues.apache.org/jira/browse/SM-5022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakub Herkel closed SM-5022.
----------------------------

> Rhino:1.7.14_1 - Missing RhinoScriptEngineFactory class
> -------------------------------------------------------
>
>                 Key: SM-5022
>                 URL: https://issues.apache.org/jira/browse/SM-5022
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: bundles
>    Affects Versions: bundles-2022.01
>            Reporter: Jakub Herkel
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: bundles-2022.02
>
>
> I tried to migrate from rhino 1.7.13 to the servicemix version
> 1.7.14_1 but I had some problem with it. I could see exception:
> Exception caught while executing command
> java.util.concurrent.ExecutionException:
> java.lang.NoClassDefFoundError:
> org/mozilla/javascript/engine/RhinoScriptEngineFactory
> Caused by: java.lang.ClassNotFoundException:
> org.mozilla.javascript.engine.RhinoScriptEngineFactory not found by
> org.apache.servicemix.bundles.rhino [220]
>     at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1565)
> ~[?:?]
>     at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:78)
> ~[?:?]
> Our internal library uses
> org.mozilla.javascript.engine.RhinoScriptEngineFactory. Before with
> rhino 1.7.13 I used wrap protocol for preparing of osgi bundle:
> <bundle>mvn:org.mozilla/rhino/${org.mozilla.rhino.version}</bundle>
> <bundle>wrap:mvn:org.mozilla/rhino-engine/${org.mozilla.rhino.version}$overwrite=merge&amp;Export-Package=org.mozilla.javascript.engine</bundle>
> But now I can see that servicemix rhino bundle exports this package:
> org.mozilla.javascript.engine;version=1.7.14, <-- original it is part
> of rhino-engine.jar
> So I checked a content of bundle and there isn't any
> RhinoScriptEngineFactory.class.
> Can it be forgotten during repackaging of original rhino libraries?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)