各位大哥,我在RedHat Linux 8.0上配置Tomcat4.1.12和Apache1.3.27时,碰到了一个问题。
首先,我可以确认单独的Tomcat4.1.12和Apache1.3.27都已经成功安装,并且能够通过浏览器正确访问。
现在,我想把Tomcat4.1.12和Apache1.3.27j结合起来,也就是通过下载的mod_webapp.so做中间桥梁。
为了达到加载MOD_WEBAPP connector这个目的,我已经更改了Tomcat的目录下server.xml文件,去掉了注释。重启了Tomcat服务。
然后,转到Apache配置文件httpd.conf,在最后增加了:
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
最后,当我通过./apachectl configtest试图验证配置文件的正确性的时候,系统提示:
[Sun Mar 23 18:13:29 2003] [warn] Loaded DSO libexec/mod_webapp.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
[Sun Mar 23 18:13:29 2003] [warn] module mod_webapp.c is already added, skipping
Syntax error on line 1318 of /usr/local/apache/etc/httpd.conf:
Invalid command 'WebAppDeploy', perhaps mis-spelled or defined by a module not included in the server configuration
Sun Mar 23 18:13:29 2003] [warn] Loaded DSO libexec/mod_webapp.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)