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?

best regards

Jakub

Reply via email to