Thanx Felix for the clarification. I have one more question. Although the 
following error is not interrupting, I am getting this error as soon as I start 
Apache.


Starting web server (apache2)...[Thu May 08 08:30:56 2008] [warn] Useless use 
of AllowOverride in line 25.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 30.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 59.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 64.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 86.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 91.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 157.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 162.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 183.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 188.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 209.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 214.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 235.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 240.
[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 704.


These are because of mod_jk.conf which is auto-generated by tomcat. Below is 
the mod_jk.conf file. Could you give more ideas why it is so. 

Thanks again


########## Auto generated on Wed May 07 23:47:36 CDT 2008##########

<IfModule !mod_jk.c>
  LoadModule jk_module "/usr/lib/apache2/modules/mod_jk.so"
</IfModule>


<VirtualHost localhost>
    ServerName localhost

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

    # Static files 
    Alias /servlets-examples "/content/tomcat/webapps/servlets-examples"

    <Directory "/content/tomcat/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  default
    JkMount /servlets-examples/servlet/HelloWorldExample  default
    JkMount /servlets-examples/servlet/SessionExample  default
    JkMount /servlets-examples/servlet/RequestHeaderExample  default
    JkMount /servlets-examples/servlet/RequestParamExample  default
    JkMount /servlets-examples/servlet/CookieExample  default
    JkMount /servlets-examples/*.jspx  default
    JkMount /servlets-examples/CompressionTest  default
    JkMount /servlets-examples/*.jsp  default
    JkMount /servlets-examples/servlet/RequestInfoExample/*  default

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

    # Static files 
    Alias /webdav "/content/tomcat/webapps/webdav"

    <Directory "/content/tomcat/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/*  default
    JkMount /webdav/*.jspx  default
    JkMount /webdav/*.jsp  default

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

    # Static files 
    Alias /jsp-examples "/content/tomcat/webapps/jsp-examples"

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

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

    # Static files 
    Alias /balancer "/content/tomcat/webapps/balancer"

    <Directory "/content/tomcat/webapps/balancer">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 
    </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>

    JkMount /balancer/*.jspx  default
    JkMount /balancer/*.jsp  default

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

    # Static files 
    Alias /tomcat-docs "/content/tomcat/webapps/tomcat-docs"

    <Directory "/content/tomcat/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/*.jspx  default
    JkMount /tomcat-docs/*.jsp  default

    #################### localhost:/GDFR ####################

    # Static files 
    Alias /GDFR "/content/tomcat/webapps/GDFR"

    <Directory "/content/tomcat/webapps/GDFR">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 
    </Directory>


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

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

    JkMount /GDFR/*.jspx  default
    JkMount /GDFR/*.jsp  default

    #################### localhost:/gdfr_home ####################

    # Static files 
    Alias /gdfr_home "/content/tomcat/webapps/gdfr_home"

    <Directory "/content/tomcat/webapps/gdfr_home">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 
    </Directory>


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

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

    JkMount /gdfr_home/*.jspx  default
    JkMount /gdfr_home/*.jsp  default
</VirtualHost>





----- Original Message ----
From: Felix Schumacher <[EMAIL PROTECTED]>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Thursday, May 8, 2008 1:18:21 AM
Subject: Re: mod_jk + tomcat 5.5 and apache2.2

On Thu, May 8, 2008 6:21 am, mamta chaudhary wrote:
> I am configuring mod_jk to connect apache2.2 and tomcat5.5. But it seems
> apache is not connecting to tomcat.
> If I run
>
> http://example.com:8080/jsp-examples/   or
> http://example.com:7690/jsp-examples/   [here 8080 is tomcat port and
> 7690 is apache port]
>
> But if I use---      http://example.com/jsp-examples/         It gives
> error 'Unable to connect' and as per I know with mod_jk it supposed to
> run without port no.
I think mod_jk connection is already working.
If your apache is listening on port 7690 and you can reach the
jsp-examples application with this port, you are done.

You can't reach the jsp-examples without the port number, since your
apache does not listen on port 80, but on port 7690 as you stated above.
The port number 80 gets inserted automatically into your URL
http://example.com/...

Bye
Felix
>
>
> Here are my files:
>
> 1. workers.properties
>
>     workers.tomcat_home=/content/tomcat
> workers.java_home=/usr/java
> ps=/
> worker.list=default
>
> worker.default.port=8009
> worker.default.host=localhost
> worker.default.type=ajp13
> worker.default.lbfactor=1
>
> worker.loadbalancer.type=lb
> worker.loadbalancer.balanced_workers=default
>
> 2. apache2.conf
>
> # Include the virtual host configurations:
> Include /etc/apache2/sites-enabled/
>
> Include /content/apache-tomcat-5.5.26/conf/auto/mod_jk.conf
>
> # Where to find workers.properties
> JkWorkersFile /etc/apache2/workers.properties
>
> # Where to put jk(check for permission)
> JkLogFile /var/log/apache2/mod_jk.log
>
> # Set the jk log level
> JkLogLevel debug
>
> # Select the log format
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>
> # JkOptions indicate to send SSL KEY SIZE,
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>
> # JkRequestLogFormat set the request format
> JkRequestLogFormat "%w %V %T"
>
>
> 3. sites-enabled/default
>
> NameVirtualHost *
> <VirtualHost *>
>     ServerAdmin [EMAIL PROTECTED]
>
> ##############
>     ServerName localhost
>     JkMount /* default
>     JkMount /gdfr_home/* default
>     JkMount /jsp-examples/*.jsp default
>     Jkmount /servlet-examples/* default
>
>     DocumentRoot /content/subversion
>     <Directory />
>         Options FollowSymLinks
>         AllowOverride All
>     </Directory>
>
> <Directory /content/subversion>
>         Options Indexes FollowSymLinks MultiViews
>         AllowOverride None
>         Order allow,deny
>         allow from all
>
>     </Directory>
>
>     ErrorLog /var/log/apache2/error.log
>
>     LogLevel warn
>
>     CustomLog /var/log/apache2/access.log combined
>     ServerSignature On
>
>     <Location /inform>
>        DAV svn
>        SVNPath "/content/subversion/inform"
>     </Location>
>
> </VirtualHost>
>
>
> 4. server.xml
>
> <Server port="8005" shutdown="SHUTDOWN">
>
>   <!-- Comment these entries out to disable JMX MBeans support used for
> the
>        administration web application -->
>   <Listener className="org.apache.jk.config.ApacheConfig"
> modJk="/usr/lib/apache2/modules/mod_jk.so" />
>   <Listener className="org.apache.catalina.core.AprLifecycleListener" />
>   <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
> />
>   <Listener
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> />
>   <Listener
> className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
>
>   <!-- Global JNDI resources -->
>   <GlobalNamingResources>
>
>     <!-- Test entry for demonstration purposes -->
>     <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
>
>     <!-- Editable user database that can also be used by
>          UserDatabaseRealm to authenticate users -->
>     <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.UserDatabase"
>        description="User database that can be updated and saved"
>            factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>           pathname="conf/tomcat-users.xml" />
>
>   </GlobalNamingResources>
>
>     <!-- Define the Tomcat Stand-Alone Service -->
>   <Service name="Catalina">
>
>     <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
>     <Connector port="8080" maxHttpHeaderSize="8192"
>                maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>                enableLookups="false" redirectPort="8443" acceptCount="100"
>                connectionTimeout="20000" disableUploadTimeout="true" />
>
>
>         <!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
>     <!--
>     <Connector port="8443" maxHttpHeaderSize="8192"
>                maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>                enableLookups="false" disableUploadTimeout="true"
>                acceptCount="100" scheme="https" secure="true"
>                clientAuth="false" sslProtocol="TLS" />
>     -->
>
>     <!-- Define an AJP 1.3 Connector on port 8009 -->
>     <Connector port="8009"
>                enableLookups="false" redirectPort="8443"
> protocol="AJP/1.3" emptySessionPath="true" />
>
>
>     <Connector port="8082"
>                maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>                enableLookups="false" acceptCount="100"
> connectionTimeout="20000"
>                proxyPort="80" disableUploadTimeout="true" />
>
>     <!-- Define the top level container in our container hierarchy -->
>     <Engine name="Catalina" defaultHost="localhost">
>
>       <Host name="localhost" appBase="webapps"
>        unpackWARs="true" autoDeploy="true"
>        xmlValidation="false" xmlNamespaceAware="false">
>
>     <Listener className="org.apache.jk.config.ApacheConfig"
>            modJk="/usr/lib/apache2/modules/mod_jk.so"
>                  workersConfig="/etc/apache2/workers.properties"
>            jkWorker="default" append="true"
>            forwardAll="false"/>
>
>
>       </Host>
>
>     </Engine>
>
>   </Service>
>
> </Server>
>
>
>
>  Dies any one help me and tell where is the problem.
>
> Thanks
>
>
>       
> ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to