在apache的conf目录下的httpd.conf正确位置,加入如下配置
JkWorkersFile d:/Tomcat4/conf/workers.properties
其中目录要设置你的tomcat的目录

解决方案 »

  1.   

    查看Apache与Tomcat的连接是否正确???
      

  2.   

    已经解决,JkWorkersFile d:/Tomcat4/conf/workers.properties在win下面可以,在linux下不行我又重新配置了一下httpd.conf和workers.porperties就可以
     /usr/local/apache2/conf/httpd.conf就加了这些: LoadModule jk2_module modules/mod_jk2.soDocumentRoot "/usr/local/tomcat/webapps"#
    # This should be changed to whatever you set DocumentRoot to.
    #
    <Directory "/usr/local/tomcat/webapps">
    DirectoryIndex index.html index.html.var index.jsp////////////////////////worker2.properties内容如下:
    /usr/local/apache2/conf/worker2.properties:[logger]
    level=ERROR[config:]
    file=/usr/local/apache2/conf/worker2.properties
    debug=0
    debugEnv=0[logger.file]
    level=ERROR
    file=/usr/local/apache2/logs/jk2.log
    [shm]
    file=/usr/local/apache2/logs/shm.file
    size=1048576
    debug=0
    disabled=0[channel.socket:localhost:8009]
    debug=0
    tomcatId=localhost:8009
    keepalive=1[ajp13:localhost:8009]
    channel=channel.socket.localhost:8009]
    debug=0[uri:/*.jsp]
    worker=ajp13:localhost:8009
    context=/就是图片不能显示,不知道为什么?
      

  3.   

    [uir:/*.jsp]
    改为
    [uir:/*]
    图片可以显示了
      

  4.   

    呵呵,没注意到你的是tomcat5。
    楼上的,改成[uri:/*]的话,则所有的请求都到tomcat去了。
    最好是把tomcat的图片放在一定的url下面比如/tomcat/image/*.gif
    z这样增加一个uri
    [uri:/tomcat/image/*]