[整合] Apache 2.0.54 + Tomcat 5.5.12 完全配置(原创)



QUOTE:
原帖由 counters 于 2005-12-21 13:25 发表
楼主啊,我是Fedora Core 4的系统
apache: httpd-2.0.55 rpm包安装,并安装了 httpd-devel包
tomcat: 5.0.28直接解压缩的tar.gz的包

安装jk 1.2.15的时候出现也是按楼主的步骤,在make的时候出现错误:
lib ...

如果make通不过,并无mod_jk2.so产生,则需安装新版libtool。

redhat ADS 3自带的libtool是
[root@test apache2]# libtool --version
ltmain.sh (GNU libtool) 1.4.3 (1.922.2.111 2002/10/23 02:54:36
这个版本的libtool编译最新的
jakarta-tomcat-connectors-jk2-2.0.4-src
是不会成功的


QUOTE:
原帖由 enet_java 于 2005-12-20 16:23 发表
这个整合成功以后你能够成功解析.shtml的后缀文件吗?

不能
那你有没有经过努力,成功呀?期待...


QUOTE:
原帖由 jeffyan 于 2005-12-23 09:31 发表



如果make通不过,并无mod_jk2.so产生,则需安装新版libtool。

redhat ADS 3自带的libtool是
[root@test apache2]# libtool --version
ltmain.sh (GNU libtool) 1.4.3 (1.922.2.111 2002/10/23 02:5 ...

最后发现不是libtool的事儿,Fedora Core 4的libtool是1.5.16。

是apache的rpm包的问题,我降级到2.0.54就可以了


QUOTE:
原帖由 counters 于 2005-12-23 10:47 发表



最后发现不是libtool的事儿,Fedora Core 4的libtool是1.5.16。

是apache的rpm包的问题,我降级到2.0.54就可以了

呵呵   apache最好不要用rpm包安装
楼主的这个应该是最简单的了,不过我还是有点不明白。

我现在装的是这样的:
我的JAVA环境成功了,但是没有搞定整合。
我的现在访问http://localhost:8080没问题,但是如果有个JAVA的站点,比中test,用http://localhost/test/index.jsp,就不能访问,而非得用http://localhost:8080/test/index.jsp这样才能访问,这就是没有整合好。一般正常情况下,装好,整合好,就应该是不带8080指定端口也能正常访问;而我现在就是在这个问题上比较湖涂了。

按理说应该是你的第3步里的,在httpd.conf里增加以下内容:
3.改httpd.conf文件
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "/www/conf/workers.properties"
JkLogFile "/var/log/mod_jk2.log"
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkRequestLogFormat "%w %V %T"
JkLogLevel debug  # Set the jk log level [debug/error/info]
JkMount /*.jsp worker1  #worker1仅仅是一个标示符
#JkMount /helloapp/* worker1

最后两句,包括你注释掉的那句,这个是不是就是所有访问的jsp都跳转到worker1?是否这样理解?
真的很新,很实用
我make的时候出现如下错误

QUOTE:
Making all in common
make[1]: Entering directory `/home/jyf/jk/jk/native/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jyf/jk/jk/native/common'
Making all in apache-2.0
make[1]: Entering directory `/home/jyf/jk/jk/native/apache-2.0'
/usr/local/apr-httpd//build-1/libtool --silent --mode=compile gcc -I/usr/local/apache2/include -g -O2 -DUSE_APACHE_MD5 -I ../common  -I /home/java/include -I /home/java/include/unix -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -g -O2 -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c mod_jk.c
mod_jk.c:70:24: apu_compat.h: No such file or directory
mod_jk.c: In function `jk_worker_property':
mod_jk.c:836: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `request_log_transaction':
mod_jk.c:962: warning: assignment makes pointer from integer without a cast
mod_jk.c:963: warning: assignment makes pointer from integer without a cast
mod_jk.c:971: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `log_worker_name':
mod_jk.c:1009: warning: return makes pointer from integer without a cast
mod_jk.c: In function `log_request_duration':
mod_jk.c:1015: warning: return makes pointer from integer without a cast
mod_jk.c: In function `log_request_line':
mod_jk.c:1028: warning: pointer/integer type mismatch in conditional expression
mod_jk.c: In function `log_request_query':
mod_jk.c:1069: warning: pointer/integer type mismatch in conditional expression
mod_jk.c: In function `parse_request_log_misc_string':
mod_jk.c:1174: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `parse_request_log_item':
mod_jk.c:1236: warning: return makes pointer from integer without a cast
mod_jk.c: In function `parse_request_log_string':
mod_jk.c:1246: warning: initialization makes pointer from integer without a cast
mod_jk.c: In function `jk_set_request_log_format':
mod_jk.c:1291: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `jk_set_https_indicator':
mod_jk.c:1336: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `jk_set_certs_indicator':
mod_jk.c:1355: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `jk_set_cipher_indicator':
mod_jk.c:1374: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `jk_set_session_indicator':
mod_jk.c:1393: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `jk_set_key_size_indicator':
mod_jk.c:1412: warning: assignment makes pointer from integer without a cast
mod_jk.c: In function `jk_set_options':
mod_jk.c:1471: warning: return makes pointer from integer without a cast
mod_jk.c: At top level:
mod_jk.c:1573: warning: initialization from incompatible pointer type
mod_jk.c:1581: warning: initialization from incompatible pointer type
mod_jk.c: In function `jk_translate':
mod_jk.c:2292: warning: assignment makes pointer from integer without a cast
mod_jk.c:2298: warning: assignment makes pointer from integer without a cast
mod_jk.c:2315: warning: assignment makes pointer from integer without a cast
mod_jk.c:2320: warning: assignment makes pointer from integer without a cast
mod_jk.c:2327: warning: initialization makes pointer from integer without a cast
mod_jk.c: In function `jk_map_to_storage':
mod_jk.c:2396: invalid type argument of `unary *'
make[1]: *** [mod_jk.lo] 错误 1
make[1]: Leaving directory `/home/jyf/jk/jk/native/apache-2.0'
make: *** [all-recursive] 错误 1

P.S. 我的libtool是

QUOTE:
libtool --version
ltmain.sh (GNU libtool) 1.5.6 (1.1220.2.95 2004/04/11 05:50:42)

Copyright (C) 2003  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

请高手帮我看看是什么原因,谢谢

没人看到?help!!
请问为什么我用http://192.169.0.67:8080/访问时,小老虎和APACHE的图片可显示出来,但我用http://192.169.0.67/index.jsp时就无法显示啊?
而且网页中的链接都无法访问,我改了权限也不成啊.