×

Loading...

install steps

本文发表在 rolia.net 枫下论坛After the Tomcat can work as a standalone server, I make the following changes

1.modify the tomcat.conf ,which is as following
###############################################################################
# Apache JServ Configuration File #
###############################################################################

# Note: this file should be appended or included into your httpd.conf

# Tell Apache on win32 to load the Apache JServ communication module
# LoadModule jserv_module modules/ApacheModuleJServ.dll

# Tell Apache on Unix to load the Apache JServ communication module
# For shared object builds only!!!
# @LOAD_OR_NOT@LoadModule jserv_module @LIBEXECDIR@/mod_jserv.so
LoadModule jserv_module libexec/mod_jserv.so

<IfModule mod_jserv.c>
# Do not edit!
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice


### Change if you run tomcat on a different host
#ApJServDefaultHost localhost
#ApJServDefaultPort 8007


#################### All jsp files will go to tomcat ####################
#ApJServMount default /root

#AddType text/jsp .jsp
#AddHandler jserv-servlet .jsp

############################## Context mapping - all requests go to tomcat

ApJServMount /examples ajpv12://localhost:8007/root


############################## Context mapping - you need to "deploy"
# ( copy or ln -s ) the context into htdocs
##

# ApJservMount /CONTEXT/servlet /root
# <Location /CONTEXT/WEB-INF/ >
# AllowOverride None
# deny from all
# </Location>
</IfModule>

2. append the following to the file " httpd.conf " ,which is in the directory "Apache/conf":

Include d:\jspenv\tomcat\jakarta-tomcat\conf\tomcat-apache.conf

3.copy the ApacheModuleJserv.dll to the directory :"Apache/modules "

4.copy d:\jspenv\tomcat\jakarta-tomcat\webapps\examples\*.* to $Apache_home/htdocs/examples

4.Startup Tomcat

5.startup Apache

6.browse those HTML in the directory "
$Apache_home/htdocs/examples",OK

7.Try to exec some jsp or servlets , ERROR.

Thanks for ur kind help更多精彩文章及讨论,请光临枫下论坛 rolia.net
Sign in and Reply Report

Replies, comments and Discussions: