看看这篇文章吧。
http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html^_^
http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html^_^
解决方案 »
- 有经验者请进:关于上传word文件分页显示的问题。
- shark1.1版中的web服务问题
- JSP入门应该看些什么书?
- 急! 问一个问题,在先等。望大虾指教
- 在applet中如何调用 本地COM组件?
- 关于打印优化的问题!!多谢, 急
- 关于<jsp:setProperty />的中文问题
- 本人受朋友委托:寻找一开发小组/或个人(jsp/asp )
- 为什么用getNodeValue()不能返回该Node的值
- (鸡毛信)哎呀,JBBC真是麻烦,烦死我了!
- 用location.href='../servlet1'重定向jsp,为什么在servlet1中用request.getHeader("Referer")取出的值为null?
- 请问如何让jsp产生任何异常时都跳转同一个error page
Copy the mod_jk-2.0.42.dll to the C:\Windows\system32 directory Copy and paste the following at the end of your httpd.conf file:###########################################################
## JSP Support
## Copied from Tomcat auto-configuration file
## + added JkMount /*.jsp ajp13
## + removed Virtual Host <IfModule !mod_jk.c>
LoadModule jk_module C:/Windows/system32/mod_jk-2.0.42.dll
</IfModule> JkWorkersFile "C:/tomcat/conf/workers.properties"
JkLogFile "C:/tomcat/logs/mod_jk.log" JkLogLevel info JkMount /manager ajp13
JkMount /manager/* ajp13 JkMount /examples ajp13
JkMount /examples/* ajp13 JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13 JkMount /webdav ajp13
JkMount /webdav/* ajp13 JkMount /*.jsp ajp13 Create a new file named workers.properties in the C:\tomcat\conf directory. Copy and paste the following into workers.properties: workers.tomcat_home=C:/tomcat
workers.java_home=C:/jdk
ps=\ worker.list=ajp13, ajp14
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server$(ps)lib$(ps)catalina.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps)jvm.dll
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr Add the following to C:\tomcat\conf\server.xml after the <Server port="8005" ...> declaration. <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="c:/WINDOWS/system32/mod_jk-2.0.42.dll" jkDebug="info"
workersConfig="C:/tomcat/conf/workers.properties"
jkLog="C:/tomcat/logs/mod_jk.log"/> Add the following lines after the <Service name="Tomcat-Standalone"> declaration in the server.xml file. <!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/> Finally in the server.xml file, after any <Host name="localhost" …> declarations, add a listener: <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" /> NOTE: Always start Tomcat first and then start Apache. If you have to bounce Tomcat, remember to take down Apache first and restart it after Tomcat restarts. Test the mod_jk configuration
Open http://localhost/index.jsp in a web browser. You should see the Tomcat test page. ^_^