Richard,
I wrote this up for someone else. I hope it's helpful for you. (Note the
small change in what you put into http.conf -- Include
.../tomcat-apache.conf.
tomcat-apache.conf is generated by Jakarta-tomcat when it starts up. Once
it's created, take a look. You'll see the Jserv module being loaded:
LoadModule jserv_module modules/ApacheModuleJServ.dll
is the first line of tomcat-apache.conf on my NT box.
This answer was written for a Linux user (Just change the paths for
Windows).
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).
--
Ken Kress [EMAIL PROTECTED]
Osprey Partners LLC 610.240.7289
----- Original Message -----
From: "Richard Liu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 08, 2000 9:29 PM
Subject: Re: Apache module for Tomcat
> Hi, every one,
>
> I have developed a web application using Tomcat standalone web server.
> Because tomcat is only a small server, I am doing the same thing,
> integrating Apache and tomcat. I follow "Tomcat+Apache HOWTO". Now I can
> run Apache and Tomcat well separately. They said I have to do:
>
> * Edit /path/to/apache-1.3.9/conf/httpd.conf and add the
> following line at the end:
>
> Include /path/to/tomcat3.0/etc/tomcat.conf
>
> * For Win32 users, comment out the line containing
> libexec/mod_jserv.so
> and uncomment out the line containing
> modules/ApacheModuleJServ.dll.
>
> I have problem doing this. First, once I added the above mentioned
include
> statement into the httpd.conf. The apache does not work properly.
Secondly,
> I could not find any line containing either "libexec/mod_jserv.so " or
> "modules/ApacheModuleJServ.dll.".
>
> Can any one help me with this. Any comments will be highly appreciated.
>
> Laowu Luo, have you got you apache and tomcat work? If yes, would please
> share your experience with me. Thanks.
>
> Richard
>
___________________________________________________________________________
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