日期:2014-05-17  浏览次数:20886 次

apache2.2.14 ,Tomcat6.0.18 整合 JK问题
httpd.exe: Syntax error on line 512 of F:/php/XAMPP/xampp/apache/conf/httpd.conf: Cannot load F:/php/XAMPP/xampp/apache/modules/mod_jk_1.2.6_2.0.50.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xb3\xcc\xd0\xf2\xa1\xa3  
httpd.exe: Syntax error on line 513 of F:/php/XAMPP/xampp/apache/conf/httpd.conf: Cannot load F:/php/XAMPP/xampp/apache/modules/mod_jk_1.2.5_1.3.27.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3  
httpd.exe: Syntax error on line 513 of F:/php/XAMPP/xampp/apache/conf/httpd.conf: Cannot load F:/php/XAMPP/xampp/apache/modules/mod_jk_1.2.5_1.3.27.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3  
httpd.exe: Syntax error on line 513 of F:/php/XAMPP/xampp/apache/conf/httpd.conf: Cannot load F:/php/XAMPP/xampp/apache/modules/mod_jk_1.2.5_1.3.27.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3  
httpd.exe: Syntax error on line 513 of F:/php/XAMPP/xampp/apache/conf/httpd.conf: Cannot load F:/php/XAMPP/xampp/apache/modules/mod_jk_1.2.5_1.3.27.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3  
httpd.exe: Syntax error on line 513 of F:/php/XAMPP/xampp/apache/conf/httpd.conf: Cannot load F:/php/XAMPP/xampp/apache/modules/mod_jk_1.3.27.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3  
httpd.exe: Syntax error on line 513 of F:/php/XAMPP/xampp/apache/conf/httpd.conf: Cannot load F:/php/XAMPP/xampp/apache/modules/mod_jk_2.0.45.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xb3\xcc\xd0\xf2\xa1\xa3  
httpd.exe: Syntax error on line 513 of F:/php/XAMPP/xampp/apache/conf/httpd.conf: Cannot load F:/php/XAMPP/xampp/apache/modules/mod_jk-1.2.10-apache-1.3.33.so into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3  

一直都是加载错误! 有哪位大侠陪陪过的 这个版本的apache2.2.14 看文档时要求版本匹配 但好像官网上没有找到对应版本的 要用什么版本的JK可以用呢?


------解决方案--------------------
主要的是版本问题,按说modules后面的版本号,比如“httpd-2.2.4”,要匹配apache的版本号,比如apache是2.2.14,你最好能找到httpd-2.2.4版本的so文件,如果找不到,那就找比apache版本稍早一点的可以,越接近越好。在linux上可以随时使用源代码进行编译,windows上就有点不方便了。我说的这个mod_jk-1.2.26-httpd-2.2.4.so,在apache 2.2.13和2.2.06版本都配置过都没有问题,不行你换一个apache版本吧。