I created https://issues.apache.org/jira/browse/SM-5022

best regards

Jakub

On Sun, Feb 6, 2022 at 9:12 PM JB Onofré <j...@nanthrax.net> wrote:
>
> Hi Jakub
>
> That’s possible I forgot to wrap an artifact and include a package.
>
> Can you please create a Jira I will fix for next monthly release ?
>
> By the way, I’m working on new way to create/install bundles on the fly.
> I will share some details soon.
>
> Regards
> JB
>
> > Le 6 févr. 2022 à 18:41, Jakub Herkel <jher...@gmail.com> a écrit :
> >
> > 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