there are three players involved in Tomcat + Apache. the silent 3rd is
JServ-client-side. tomcat.conf replaces jserv.conf. server.xml sorta
replaces jserv.properties and your context/WEB-INF/web.xml (and the default
tomcat/etc/web.xml) sorta replaces zone.properties. i say "sorta" because
all the functionality isn't (or doesn't seem to be) there in the Tomcat
versions (the biggest one (for me anyway) being setting the classpath for a
context). also, AFAICT, Tomcat requires that you add /servlet/ to your
servlet URLs, but doesn't require this for JSPs, which are mapped from the
root of the context (which is mapped through ApJServMount, just like in
JServ). so you'll want to replace "Include conf/jserv.conf" with "Include
/tomcat/etc/tomcat.conf" and remove "LoadModule jserv_module
libexec/mod_jserv.so" from your httpd.conf file because, as you noticed,
this will be done in tomcat.conf (which is a better place for it, IMHO).
you still need the client-side JServ module to forward requests to Apache on
port 80 to Tomcat's AJPv12 handler on port 8007 (it also has handlers for
AJP11 and AJP23, but i wasn't able to get JServ 1.0 (AJP11) to connect to
Tomcat. in fact the only mod_jserv that i've gotten to work with Tomcat is
the mod_jserv.so on the Tomcat binary distribution page. even the latest
JServ (1.1 final) caused problems with Tomcat (lost sessions completely)).
IMHO Tomcat KICKS A** as a servlet/jsp engine, once you get through the
configuration pains. it's missing a couple pieces of functionality which
are significant to me (i don't assume that my clients have cookies turned
on, which means i can't maintain sessions because encodeURL() isn't done),
but over-all it's pretty darn kewl.
as for extracting the JSP-processing parts out of Tomcat and trying to use
them from with JServ-server i would advise against it for two reasons: (1)
questionable stability because you're taking objects which were written for
one (the most current) servlet/jsp environment and moving them into another
and (2) your returns for the effort are questionable because at some point i
would expect development on the JServ-server project to stop in favor of
Tomcat (when Sun and the Apache team work together really good things should
come out of it).
btw, you could, in theory, run Tomcat without Apache since it has an http
server built-in which you can hit through port 8080. of course it doesn't
have a lot of the configurability of Apache, but for testing servlets and
JSPs it's a life saver.
hope this all helps (in some way). :)
.....................ron.
-----Original Message-----
From: Gopalankutty, Ravi Kumar (CTS) <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Saturday, February 05, 2000 9:23 AM
Subject: Re: JServ vs. TomCat
Hi Ron,
Can I run TomCat alone with my Apache and still expect it to provide the
full functionality of JServ. I am asking this 'coz the tomcat.conf file has
fewer directives to setup when compared to the Jserv.properties file. Also
it seems to be calling the same dll file to load the servlet engine. So
can't we export the directives to handle .jsp requests,namely the AddType
and Addhandler directives into the JServ properties (mod_jserv.properties)
file and expect JServ to handle JSP requests as well.
Tell me if Iam wrong.
TIA,
Ravi
-----Original Message-----
From: Ron Reynolds [SMTP:[EMAIL PROTECTED]]
Sent: Saturday, February 05, 2000 12:50 PM
To: [EMAIL PROTECTED]
Subject: Re: JServ vs. TomCat
Tomcat is a newer version of the Servlet engine and it has built-in
jsp
support. JServ is a little older and doesn't have jsp support
(GNUJSP or
JRun is your best bet if you don't want to use Tomcat - JRun's a
snap
(completely replaces JServ on both the Apache and Servlet engine
sides), but
i never got GNUJSP to play nice).
Tomcat's a little harder to set up (IMHO), but it's the standard so
in the
long run (i hope) it's worth it. you'll still need JServ on the
Apache side
to forward requests to the Tomcat engine, but Tomcat replaces the
JServ
servlet engine on port 8007/8008.
one other thing - i've only been able to get Tomcat to work with the
mod_jserv.so on the Tomcat site. the newest JServ broke sessions
completely
in Tomcat. once you have Tomcat set up you place your jsps into
your
servlet context (aka, web-app) at which point JServ forwards the
request to
Tomcat which compiles the jsp, generates a servlet and calls its
service()
method. I've written up a few pages on setting up various
components with
Apache, including JServ and Tomcat. in fact tonight i'm writing up
the
steps to add mod_ssl to a named-based virtual host apache install.
fun,
fun, fun! :)
..............ron.
-----Original Message-----
From: Sesheeka Selvaratnam <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, February 04, 2000 10:59 PM
Subject: JServ vs. TomCat
>Both of these are Servlet engines that support jsp. Is one better
than the
>other?
>
>Also can someone tell me, after i install apache/jserv i should be
able to
>start creating .jsp files on my web server correct or is there
something
>else i would have to do before this?
>
>Thanks.
> - Sesheeka
>
>---
>Sesheeka Selvaratnam, i-Net+
>519-747-5222 ext 279
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives:
http://archives.java.sun.com/archives/servlet-interest.html
>Resources:
http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
of the message "signoff SERVLET-INTEREST".
Archives:
http://archives.java.sun.com/archives/servlet-interest.html
Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html