Re: Run servlets on Nashorn written in server-side JavaScript

2021-02-22 Thread leo
On 18 Feb 2021, at 5:50, Woonsan Ko wrote: [...] I found one example: https://stackoverflow.com/questions/27710407/reuse-nashorn-scriptengine-in-servlet As a servlet implementation may embed a Jython engine to execute a python script, it will end up embedding a JS engine in a servlet to execut

Re: Run servlets on Nashorn written in server-side JavaScript

2021-02-22 Thread leo
On 18 Feb 2021, at 3:15, André Warnier wrote: On 17.02.2021 14:59, Christopher Schultz wrote: […] On the face of it, it looks much simpler to set up a local Nodejs server, and proxy the corresponding requests from Tomcat to it. Regarding why a servlet _in_ Tomcat and not a proxy: The produc

Re: Run servlets on Nashorn written in server-side JavaScript

2021-02-22 Thread leo
Chris, On 18 Feb 2021, at 0:59, Christopher Schultz wrote: Weird; I never saw the OP on the list, only Rony's reply. Weird indeed. I just posted to users@tomcat.apache.org, but maybe because it was my first post it was held back for a while? Usually if you want to use server-side JavaScrip

Re: Run servlets on Nashorn written in server-side JavaScript

2021-02-22 Thread leo
Hi there First apologise that I reply so late and thank you all for chiming in! :-) Rony, 18:58, Rony G. Flatscher (Apache) wrote: why would you want to do that if you could do the same with Java? What is the motivation, the use case for you? Use case is a project where I want to increas

Re: Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-22 Thread aghart...@gmail.com
Hi Mark, Ok, all clear, thanks. Since the servlet is used by several projects, I force it to be loaded via web.xml Thanks again, Agharta Il 22/02/21 12:02, Mark Thomas ha scritto: On 19/02/2021 09:45, aghart...@gmail.com wrote: Hi Mark, I'm sorry to bother you, do you need more informati

Re: Tomcat 9 jar containing @webservlet annotation not loaded if inside tomcat/lib

2021-02-22 Thread Mark Thomas
On 19/02/2021 09:45, aghart...@gmail.com wrote: > Hi Mark, > > I'm sorry to bother you, do you need more information about that? (see > email below, my mistake about reply recipient) Please see section 8.1 of the Servlet specification. In a web application, classes using annotations will have t