Rajesh,

The documentation is getting better and better. When I made the switch about
four months back, there wasn't much information about getting Jakarta-Tomcat
working with Apache. If you follow the documentation, you should be OK.

In case it helps, here's what worked for me:

o Jakarta-Tomcat creates a context with examples of JSPs and servlets. The
structure and naming conventions for this are set in the Sun Servlet/JSP
APIs, so it will be with us for a while and is worth learning.
o The examples directory is at $TOMCATHOME/webapps/examples
  E.g., /odin/src/jakarta-tomcat/webapps/examples

o Within it are directories: images, jsp, META-INF, servlets, WEB-INF
o cd $TOMCATHOME/webapps; cp -a examples $YOURPROJECTNAME
  E.g., cp -a /odin/src/jakarta-tomcat/webapps/examples \
              /odin/src/jakarta-tomcat/webapps/kenslab

o Edit $TOMCATHOME/conf/server.xml
  - make a copy of the Context path (2 lines) dealing with /examples
  - Within those two lines, change every occurrence of "examples"
    to $YOURPROJECTNAME
  E.g., vi /odin/src/jakarta-tomcat/conf/server.xml
        copy Context path="/examples"... /Context
    and change every occurence of "examples" to "kenslab"
o Add the following to your apache httpd.conf file:
  Include $TOMCATHOME/conf/tomcat-apache.conf
  E.g., Include "D:/jakarta-tomcat/conf/tomcat-apache.conf"
  Don't worry if tomcat-apache.conf doesn't exist, it gets created from
  server.xml when you start up Jakarta-Tomcat
o Kill Apache
o Startup Jakarta-Tomcat using the startup script $TOMCATHOME/bin/startup.sh
o Start up Apache
o Browse to http://localhost/$YOURCONTEXT (E.g., http://localhost/kenslab)
o It should look just like http://localhost/examples
o Remove all the files from the subdirectories in $YOURPROJECTNAME
   and replace with your files (use Jakarta-Ant).

Good luck!

  Ken.




--
Ken Kress                               [EMAIL PROTECTED]
Osprey Partners LLC                                  610.240.7289


----- Original Message -----
From: "Rajesh Nair" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 07, 2000 11:26 AM
Subject: Re: Linux-based servlet engines/web servers


> Ken and Brevsville,
>
> I Appreciate your inputs. I am looking into the Tomcat/Apache combo..
> Ken , I may have to get back to you if and when I run into the "pain" zone
> you are talking about.
> Could you elaborate what kind of problems they were , Configuring problems
> I am thinking??
>
> Regards..
>
>
> At 08:04 AM 06/07/2000 -0400, Ken Kress wrote:
> >Rajesh,
> >
> >I was using JServ on Apache, but switched to Jakarta-Tomcat. After a
little
> >pain, I love it. Spend the time to learn the Jakarta-Ant program and
> >developing will be sweet. Tomcat isn't much different from JServ to set
up;
> >add one statement to your httpd.conf for Apache and add one or two
> >statements to your Tomcat server.xml file. I've got it running at work
(NT)
> >and at home (Linux) and everything is portable except the build file
which
> >has OS specific paths. So I keep two versions.
> >
> >The dynamic reloading works for JSPs, but fails for beans ... I don't
know
> >why. But a simple shell or batch file will stop and restart Tomcat and
> >Apache (my experience is you have to restart both). I haven't had a
server
> >crash yet (couple months), so my experience has been excellent. (We're
still
> >in development, not production.)
> >
> >Tomcat supports the latest Servlets (2.2) and JSP (1.1) ; it's the
> >reference implementation. I'm still waiting for the Blackdown port of jdk
> >1.3; Tomcat works with Blackdown JDK 1.2.2 RC4 (RH6.2) and NT JDK 1.2.2.
> >
> >   Ken.
> >
> >--
> >Ken Kress                               [EMAIL PROTECTED]
> >Osprey Partners LLC                                  610.240.7289
> >
> >
> >----- Original Message -----
> >From: "Rajesh Nair" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, June 06, 2000 12:32 PM
> >Subject: Linux-based servlet engines/web servers
> >
> >
> >> I have used the JWS from Sun on Windows. I would like to however get my
> >> servlets onto
> >> my linux machine and am not sure which servlet engine/ server I should
> >use.
> >> There is Tomcat / Apache  - What are the pluses /minuses of this
> >> configuration?
> >> Apache/ Jserv - How is this different from Tomcat/Apache??
> >> There is JWS for Solaris with a Linux patch - ?? Any plus points to
this??
> >> There is servletexec - ?? pluses and minuses
> >> Which of the above implement the latest version of jsdk??
> >>
> >> I would I guess prefer an open source product which would incline me
> >> towards Apache /Tomcat or Apache /Jserv?? But I would also prefer an
> >> integrated product where I don't have to cross-configure the servlet
> >engine
> >> and the web server. I wonder if that is asking to much for the linux
> >> environment??
> >>
> >> The thing I liked about JWS on Windows was how easy it was to configure
> >and
> >> maintain.
> >> I am sure that I missed out some.. Please enlighten..
> >>
> >> Regards,
> >>
> >>
> >>
> >>
> >>
> >>
> >> Rajesh Nair
> >> [EMAIL PROTECTED]
> >> Ph: 913 599 7201
> >>
> >> ----------
> >> R&D
> >> Informix Software
> >>
> >>
>
>___________________________________________________________________________
> >> 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
> >
>
>
> Rajesh Nair
> [EMAIL PROTECTED]
> Ph: 913 599 7201
>
> ----------
> R&D
> Informix Software
>
>
___________________________________________________________________________
> 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

Reply via email to