Using Nashorn in Apache Tomcat

Simon Besenbäck simon.besenbaeck at gmail.com
Mon Oct 3 16:46:08 UTC 2022


Hi Tristan!

Thank you so much for your answer.
Unfortunately I am absolutely new to this topic. Where do I have to add the
dependencies and do I have to download them somewhere or add them as text
into a particular file?

Ps. I hope it was correct to answer to the nashorn mailing list.

Thanks!
Simon

<ttarrant at redhat.com> schrieb am Mo., 3. Okt. 2022, 15:18:

> You will also need to add all the other dependencies too:
>
> org.ow2.asm:asm:7.3.1
> org.ow2.asm:asm-commons:7.3.1
> org.ow2.asm:asm-tree:7.3.1
> org.ow2.asm:asm-util:7.3.1
>
> Tristan
>
> On 03/10/22 15:04, Simon Besenbäck <simon.besenbaeck at gmail.com> wrote:
> > Hi!
> >
> > I am using Apache 10.0.23 on Windows 10. I want to use Nashorn for
> > developing JSP's within the Eclipse IDE. Therefore I use OpenJDK 19 and
> > added the jakarta.ScriptTagLibs.jar to the lib directory. I added
> > script-jsr223.tld to the META-INF Folder. As far as I know I should be
> > able to use nashorn if I add the nashorn-core-15.4.jar (downloaded here:
> >
> https://search.maven.org/artifact/org.openjdk.nashorn/nashorn-core/15.4/jar
> <
> https://search.maven.org/artifact/org.openjdk.nashorn/nashorn-core/15.4/jar>)
> to the lib directory, but for me it doesn´t work. I either get the Page
> without the elements generated by nashorn or I get an Internal Server Error.
> >
> > However, I also tried Rhino, by adding rhino-engine-1.7.14.jar and
> > rhino-runtime-1.7.14.jar to the lib directory and it works. Though, if I
> > try it by only adding the rhino-1.7.14.jar to the lib directory it won't
> > work either. (Downloaded here:
> > https://github.com/mozilla/rhino/releases/tag/Rhino1_7_14_Release
> > <https://github.com/mozilla/rhino/releases/tag/Rhino1_7_14_Release>)
> >
> > I would be very thankful for any tipps as I really do not know how to
> > get nashorn working.
> >
> > Thanks.
> >
> > Simon
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/nashorn-dev/attachments/20221003/a7525010/attachment.htm>


More information about the nashorn-dev mailing list