Re: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-11 Thread Filip Hanik - Dev Lists
you'd write it yourself for example, configure CATALINA_HOME, CATALINA_BASE, TOMCAT_USER and CATALINA_PID and to start you would do start() { isrunning if [ $? -eq 0 ]; then echo "Tomcat is already running: PID=$PID" return 1 fi if [ -f $CATALINA_BASE/b

Re: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-10 Thread Dave Pawson
2009/2/10 Mark Thomas : > The main use of jsvc is to bind to port <1025 (usually 80 and 443) but run as > a > non-privileged user. If you aren't listening on a port <1025 then you probably > don't need it. It didn't work for me Mark! I run jsvc as root. But yes, I'm listening on 8080. the other

Re: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-10 Thread Mark Thomas
Dave Pawson wrote: > 2009/2/10 Filip Hanik - Dev Lists : >> What benefit do you get from running it with JSVC, vs just writing a simple >> script into /etc/init.d/ to manage it yourself? > > It was offered. I went to the trouble of amending it to make it work. > I do manage it myself? How would an

Re: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-10 Thread michel
uestions. - Original Message - From: "Dave Pawson" To: "Tomcat Users List" Sent: Tuesday, February 10, 2009 6:39 AM Subject: Re: Simple Tomcat 6, servlet tutorial. First draft for comment 2009/2/10 Filip Hanik - Dev Lists : What benefit do you get from running it

Re: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-10 Thread Dave Pawson
2009/2/10 Filip Hanik - Dev Lists : > What benefit do you get from running it with JSVC, vs just writing a simple > script into /etc/init.d/ to manage it yourself? It was offered. I went to the trouble of amending it to make it work. I do manage it myself? How would another script in init.d help?

Re: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-09 Thread Filip Hanik - Dev Lists
What benefit do you get from running it with JSVC, vs just writing a simple script into /etc/init.d/ to manage it yourself? Filip Dave Pawson wrote: http://www.dpawson.co.uk/tomcat Any feedback/improvements appreciated. Particularly any errors. Meant as a simple example of getting a first se

Re: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-08 Thread Dave Pawson
2009/2/8 Caldarale, Charles R : > Looks pretty good. Some nits to pick: np > > Under "Compile the restlet example code", you include catalina.jar and > tomcat-juli.jar; neither of these should be necessary to compile a servlet. > If they are necessary, there's something wrong with the servlet

RE: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-08 Thread Caldarale, Charles R
> From: Dave Pawson [mailto:dave.paw...@gmail.com] > Subject: Simple Tomcat 6, servlet tutorial. First draft for comment > > http://www.dpawson.co.uk/tomcat Looks pretty good. Some nits to pick: Under "Compile the restlet example code", you include catalina.jar and tomca

Re: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-08 Thread Dave Pawson
Done. Thanks Michel 2009/2/8 michel : > Dave, > > I would suggest that section headings can be a bit clearer, as in the > following: ... -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk - To unsubscribe, e

Re: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-08 Thread michel
09 7:45 AM Subject: Simple Tomcat 6, servlet tutorial. First draft for comment http://www.dpawson.co.uk/tomcat Any feedback/improvements appreciated. Particularly any errors. Meant as a simple example of getting a first servlet working, based on help I received from this list. regards -- D

Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-08 Thread Dave Pawson
http://www.dpawson.co.uk/tomcat Any feedback/improvements appreciated. Particularly any errors. Meant as a simple example of getting a first servlet working, based on help I received from this list. regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk ---