Why do you have the bang in from of mod_jk?

<IfModule !mod_jk.c>

Also, shouldn't it be <IfModule mod_jk2.c> instead of <IfModule mod_jk.c>?

-----Original Message-----
From: Dan Lee [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 10, 2004 1:45 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Apache2, Tomcat5 and servlets


It is automatically created when I startup tomcat.   I'm using 5.0.27

grep Tomcat catalina.out
[INFO] StandardEngine - Starting Servlet Engine: Apache Tomcat/5.0.27



Note:  I use localhost to cover up the identity of my server.

cat /opt/tomcat/conf/auto/mod_jk.conf

########## Auto generated on Tue Aug 10 10:00:10 EDT 2004##########

<IfModule !mod_jk.c>
  LoadModule jk_module "/opt/apache/modules/mod_jk2.so"
</IfModule>

JkWorkersFile "/opt/jakarta-tomcat-5.0.27/conf/jk/workers.properties"
JkLogFile "/opt/jakarta-tomcat-5.0.27/logs/mod_jk.log"

JkLogLevel emerg



<VirtualHost localhost>
    ServerName localhost

    #################### localhost:/webdav ####################

    # Static files
    Alias /webdav "/opt/jakarta-tomcat-5.0.27/webapps/webdav"

    <Directory "/opt/jakarta-tomcat-5.0.27/webapps/webdav">
        Options Indexes FollowSymLinks
        DirectoryIndex
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/webdav/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/webdav/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /webdav/*.jsp  ajp13
    JkMount /webdav/*  ajp13
    JkMount /webdav/*.jspx  ajp13

    #################### localhost:/servlets-examples ####################

    # Static files
    Alias /servlets-examples
"/opt/jakarta-tomcat-5.0.27/webapps/servlets-examples"

    <Directory "/opt/jakarta-tomcat-5.0.27/webapps/servlets-examples">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/servlets-examples/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/servlets-examples/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /servlets-examples/jsp/security/protected/j_security_check
ajp13
    JkMount /servlets-examples/servlet/RequestInfoExample/*  ajp13
    JkMount /servlets-examples/servlet/RequestHeaderExample  ajp13
    JkMount /servlets-examples/servlet/SessionExample  ajp13
    JkMount /servlets-examples/servlet/HelloWorldExample  ajp13
    JkMount /servlets-examples/servlet/CookieExample  ajp13
    JkMount /servlets-examples/servlet/RequestParamExample  ajp13
    JkMount /servlets-examples/*.jsp  ajp13
    JkMount /servlets-examples/CompressionTest  ajp13
    JkMount /servlets-examples/*.jspx  ajp13

    #################### localhost:/tomcat-docs ####################

    # Static files
    Alias /tomcat-docs "/opt/jakarta-tomcat-5.0.27/webapps/tomcat-docs"

    <Directory "/opt/jakarta-tomcat-5.0.27/webapps/tomcat-docs">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/tomcat-docs/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/tomcat-docs/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /tomcat-docs/*.jsp  ajp13
    JkMount /tomcat-docs/*.jspx  ajp13

    #################### localhost:/balancer ####################

    # Static files
    Alias /balancer "/opt/jakarta-tomcat-5.0.27/webapps/balancer"

    <Directory "/opt/jakarta-tomcat-5.0.27/webapps/balancer">
        Options Indexes FollowSymLinks
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/balancer/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/balancer/META-INF/*">
        AllowOverride None
        deny from all
    </Location>


    #################### localhost:/jsp-examples ####################

    # Static files
    Alias /jsp-examples "/opt/jakarta-tomcat-5.0.27/webapps/jsp-examples"

    <Directory "/opt/jakarta-tomcat-5.0.27/webapps/jsp-examples">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp
    </Directory>


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/jsp-examples/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/jsp-examples/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /jsp-examples/security/protected/j_security_check  ajp13
    JkMount /jsp-examples/tagplugin/foreach.jsp  ajp13
    JkMount /jsp-examples/cal/cal2.jsp  ajp13
    JkMount /jsp-examples/jsp2/misc/dynamicattrs.jsp  ajp13
    JkMount /jsp-examples/simpletag/foo.jsp  ajp13
    JkMount /jsp-examples/jsp2/el/basic-arithmetic.jsp  ajp13
    JkMount /jsp-examples/CompressionTest  ajp13
    JkMount /jsp-examples/jsptoserv/hello.jsp  ajp13
    JkMount /jsp-examples/forward/one.jsp  ajp13
    JkMount /jsp-examples/jsp2/tagfiles/panel.jsp  ajp13
    JkMount /jsp-examples/checkbox/checkresult.jsp  ajp13
    JkMount /jsp-examples/security/protected/index.jsp  ajp13
    JkMount /jsp-examples/snp/snoop.jsp  ajp13
    JkMount /jsp-examples/jsp2/jspattribute/jspattribute.jsp  ajp13
    JkMount /jsp-examples/jsp2/jspx/basic.jspx  ajp13
    JkMount /jsp-examples/cal/cal1.jsp  ajp13
    JkMount /jsp-examples/jsptoserv/jsptoservlet.jsp  ajp13
    JkMount /jsp-examples/jsp2/tagfiles/products.jsp  ajp13
    JkMount /jsp-examples/error/err.jsp  ajp13
    JkMount /jsp-examples/security/protected/login.jsp  ajp13
    JkMount /jsp-examples/dates/date.jsp  ajp13
    JkMount /jsp-examples/jsp2/jspx/textRotate.jspx  ajp13
    JkMount /jsp-examples/plugin/plugin.jsp  ajp13
    JkMount /jsp-examples/jsp2/misc/config.jsp  ajp13
    JkMount /jsp-examples/*.jsp  ajp13
    JkMount /jsp-examples/colors/colrs.jsp  ajp13
    JkMount /jsp-examples/*.jspx  ajp13
    JkMount /jsp-examples/forward/forward.jsp  ajp13
    JkMount /jsp-examples/jsp2/jspattribute/shuffle.jsp  ajp13
    JkMount /jsp-examples/include/include.jsp  ajp13
    JkMount /jsp-examples/source.jsp  ajp13
    JkMount /jsp-examples/jsp2/el/implicit-objects.jsp  ajp13
    JkMount /jsp-examples/error/errorpge.jsp  ajp13
    JkMount /jsp-examples/jsp2/simpletag/repeat.jsp  ajp13
    JkMount /jsp-examples/security/protected/error.jsp  ajp13
    JkMount /jsp-examples/tagplugin/choose.jsp  ajp13
    JkMount /jsp-examples/jsp2/el/basic-comparisons.jsp  ajp13
    JkMount /jsp-examples/tagplugin/if.jsp  ajp13
    JkMount /jsp-examples/num/numguess.jsp  ajp13
    JkMount /jsp-examples/jsp2/el/functions.jsp  ajp13
    JkMount /jsp-examples/servletToJsp  ajp13
    JkMount /jsp-examples/include/foo.jsp  ajp13
    JkMount /jsp-examples/jsp2/tagfiles/hello.jsp  ajp13
    JkMount /jsp-examples/jsp2/simpletag/book.jsp  ajp13
    JkMount /jsp-examples/sessions/carts.jsp  ajp13
    JkMount /jsp-examples/xml/xml.jsp  ajp13
    JkMount /jsp-examples/jsp2/simpletag/hello.jsp  ajp13
</VirtualHost>


>From: Debra Bartling <[EMAIL PROTECTED]>
>To: "Dan Lee" <[EMAIL PROTECTED]>
>CC: "Tomcat Users List" <[EMAIL PROTECTED]>
>Subject: Re: Apache2, Tomcat5 and servlets
>Date: Tue, 10 Aug 2004 13:31:16 -0700
>
>At 03:57 PM 8/10/2004 -0400, you wrote:
>>Can I have a copy of these files as well?   In addition, I have the same
>>setup/version as you except in Solaris 8.   I configured the tomcat and
>>connector properly.   However, I am having problem with running apache to
>>use the jk module.
>>
>>In my httpd.conf,
>>    Include /opt/tomcat/conf/auto/mod_jk.conf
>>
>>However, I recieve the following message when I try to start Apache.
>>
>>Syntax error on line 4 of /opt/tomcat/conf/auto/mod_jk.conf:
>>Can't locate API module structure `jk_module' in file
>>/opt/apache/modules/mod_jk2.so: ld.so.1: /opt/apache/bin/httpd: fatal:
>>jk_module: can't find symbol
>>
>>Have you run into this?
>
>No. I don't think you need mod_jk.conf for version 5 and jk2. What's in it?
>
>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to