how to add servlet to ringo startup

35 views
Skip to first unread message

xima gu

unread,
Mar 25, 2016, 6:20:20 AM3/25/16
to RingoJS
i used ringo shell startup project,but i found the servlet i add to web.xml is unuseable!
should i config jetty.xml? or add some args to ringo shell??

Philipp Naderer

unread,
Mar 25, 2016, 7:32:49 AM3/25/16
to rin...@googlegroups.com
Hi!

You can find an example web.xml here:

* <servlet-class>  should point to org.ringojs.jsgi.JsgiServlet
* The <init-param> ringo-home, module-path, app-module, and app-name correspond to Ringo's startup parameters

If you are using RingoJS 0.11 you can create a web application with the ringo-admin helper:

./bin/ringo-admin create -w ~/Desktop/example-webapp


Bye,
Philipp

On Fri, Mar 25, 2016 at 4:22 AM, xima gu <gux...@gmail.com> wrote:
i used ringo shell startup project,but i found the servlet i add to web.xml is unuseable!
should i config jetty.xml? or add some args to ringo shell??

--
You received this message because you are subscribed to the Google Groups "RingoJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ringojs+u...@googlegroups.com.
To post to this group, send email to rin...@googlegroups.com.
Visit this group at https://groups.google.com/group/ringojs.
For more options, visit https://groups.google.com/d/optout.

xima gu

unread,
Mar 28, 2016, 7:29:01 AM3/28/16
to RingoJS
thanks,i‘ve resolved it
what's my problem is i don't understand jetty.xml clearly,I just need to embed a new handler and must pay attendtion to order


在 2016年3月25日星期五 UTC+8下午7:32:49,Philipp Naderer / Botic写道:
Reply all
Reply to author
Forward
0 new messages