tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duan, Nick" <ND...@mcdonaldbradley.com>
Subject RE: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)
Date Fri, 02 Dec 2005 16:07:42 GMT
I guess one way to test if the ajp listener on tomcat is working is to
take a look at your Catalina log file and see if it contains a log
message something like "INFO: JK: ajp13 listening on /0.0.0.0:8009". 

Some other factors to consider:  Are tomcat and apache httpd running on
the same machine?  Any firewall/proxies/socks in between?  

ND

-----Original Message-----
From: Luka Andrejasic [mailto:luka.andrejasic@gmail.com] 
Sent: Wednesday, November 30, 2005 3:15 PM
To: Tomcat Users List
Subject: Re: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)

I tried your version and I tried deleting acceptCount and className out
of 
the connector settings and nothing has changed. I am still getting the
Error 
500, when trying to access "server.domain.com". Other apache only
virtual 
domains work without problems.

The error log still says :
[Wed Nov 30 14:34:42 2005] [info]  jk_handler::mod_jk.c (1993): Could
not 
find a worker for worker name=ajp13w

What else could it be?

Thanks,
Luka

----- Original Message ----- 
From: "Duan, Nick" <NDuan@mcdonaldbradley.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Wednesday, November 30, 2005 8:45 PM
Subject: RE: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)


I see.  It still looks like a connector configuration problem.  It seems
that your connector config was using an older format, not the one for
5.5.  For instance, the acceptCount and className shouldn't be part of
the AJP connector setting.

You may want to try the one I posted or configure one according to
http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html

ND

-----Original Message-----
From: Luka Andrejasic [mailto:luka.andrejasic@gmail.com]
Sent: Wednesday, November 30, 2005 11:37 AM
To: Tomcat Users List
Subject: Re: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)

Thanks for the assistance Nick.

I think the connector is alreary defined in the current configuration.
Perhaps you overlooked that line :

    <Connector acceptCount="128"
              className="org.apache.coyote.tomcat5.CoyoteConnector"
              connectionTimeout="20000"
              debug="0"
              enableLookups="false"
              minProcessors="32"
              maxProcessors="384"
              port="8009"

protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
              protocol="AJP/1.3"
              redirectPort="8443"
              useURIValidationHack="false"/>

Should I delete this one and try yours? The same error occured when they

were placed side by side (yours on top).

Thanks for helping.

Luka

----- Original Message ----- 
From: "Duan, Nick" <NDuan@mcdonaldbradley.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Wednesday, November 30, 2005 3:58 PM
Subject: RE: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)


Well, the log msg is complaining about not able to find the worker.
Apparently your tomcat wasn't configured for listening to ajp13 request
from httpd.  A connector entry for ajp13 should be added to server.xml
file.  At least it was not listed in your email.

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
               enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" />

ND

-----Original Message-----
From: Luka Andrejasic [mailto:luka.andrejasic@gmail.com]
Sent: Tuesday, November 29, 2005 9:24 PM
To: Tomcat Users List
Subject: Re: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)

"I remember workers.properties is  located in apache/conf/, the same
directory with httpd.conf.."
The file workers.properties is located under Tomcat`s conf directory,
not
Apache`s.

In workers.properties I only have the following and that should be
enough :
worker.list=ajp13w
worker.ajp13w.port=8009
worker.ajp13w.host=localhost
worker.ajp13w.type=ajp13
worker.ajp13w.cachesize=10
worker.ajp13w.cache_timeout=1200
worker.ajp13w.socket_timeout=3600

Any other idea what else it might be?

Thanks for the reply and trying to help.

Luka

----- Original Message ----- 
From: "blueberry lake" <blueberrylake@gmail.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Wednesday, November 30, 2005 3:06 AM
Subject: Re: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)


Since I am a new user of mod_jk, please correct me if I am wrong.

In your apache httpd.conf, you set:
     "JkWorkersFile "/var/tomcat/conf/workers.properties"
I remember workers.properties is  located in apache/conf/, the same
directory with httpd.conf..

And, do you indicate the location of tomcat in workers.properties, such
as
workers.tomcat_home=/.../tomcat/?

-b

On 11/29/05, Luka Andrejasic <luka.andrejasic@gmail.com> wrote:
>
> Hello guys,
>
> I am trying to figure this one out for weeks. Nothing seems to work
and I
> am running out of ideas. The problem seems to be with Mod JK, as
Apache
> and
> Tomcat work without problems on their own.
>
> Below are all the main configuration files, as well as the error log
(at
> the bottom) :
>
> // System Configuration :
>
> - OS : RedHat Linux ES 4.0 (2.6.9-22.0.1)
> - Apache : 2.0.52
> - Tomcat : 5.5.9
> - MySQL : 4.1.12
> - Mod JK : 1.2.15
>
>
>
>
> // Mod JK Installation :
>
>    tar -xzf jakarta-tomcat-connectors-jk-1.2.15-src.tar.gz
>    cd jakarta-tomcat-connectors-jk-1.2.15-src
>    cd jk
>    cd native
>    ./buildconf.sh
>    ./configure --enable-EAPI --with-apxs=/usr/sbin/apxs
>    make
>    make install
>
>    cp ./apache-2.0/mod_jk.so /etc/httpd/modules
>
>
>
>
> // Apache Virtual Domains :
>
> NameVirtualHost *:80
>
>
> <VirtualHost *:80>
>    ServerAdmin webmaster@domain.com
>    DocumentRoot /var/tomcat/webapps/ROOT
>    ServerName domain.com
>    ServerAlias server.domain.com
>    ErrorLog /home/virtual/domain.com/logs/error_log
>    CustomLog /home/virtual/domain.com/logs/access_log combined
>
>    <IfModule mod_jk.c>
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.jsp index.html index.htm
>
>      <Location "/META-INF/*">
>        AllowOverride None
>        deny from all
>      </Location>
>
>      <Location "/WEB-INF/*">
>        AllowOverride None
>        deny from all
>      </Location>
>
>      JkWorkersFile "/var/tomcat/conf/workers.properties"
>      JkShmFile "/var/tomcat/conf/shm.file"
>      JkLogFile /var/tomcat/logs/mod_jk.txt
>      JkLogLevel info
>      JkAutoAlias /var/tomcat/webapps/ROOT
>
>      JkMount /backup/*  ajp13w
>      JkMount /config/*  ajp13w
>      JkMount /files/*  ajp13w
>      JkMount /logs/*  ajp13w
>      JkMount /servlet/*  ajp13w
>      JkMount /sql/*  ajp13w
>      JkMount /temp/*  ajp13w
>      JkMount /*.jsp  ajp13w
>    </IfModule>
>
> </VirtualHost>
>
>
>
>
> // File server.xml :
>
> <Server className="org.apache.catalina.core.StandardServer"
>         debug="0"
>         port="8005"
>         shutdown="SHUTDOWN">
>
>   <Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener"
>             debug="0"/>
>
>   <Listener className="
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>             debug="0"/>
>
>   <Listener className="
> org.apache.catalina.storeconfig.StoreConfigLifecycleListener"
>             debug="0"/>
>
>   <GlobalNamingResources>
>     <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>
>
>   <Service className="org.apache.catalina.core.StandardService"
>            debug="0"
>            name="Catalina">
>
>     <Connector acceptCount="128"
>               className="org.apache.coyote.tomcat5.CoyoteConnector"
>               connectionTimeout="20000"
>               debug="0"
>               enableLookups="false"
>               minProcessors="32"
>               maxProcessors="384"
>               port="8009"
>               protocolHandlerClassName="
> org.apache.jk.server.JkCoyoteHandler"
>               protocol="AJP/1.3"
>               redirectPort="8443"
>               useURIValidationHack="false"/>
>
>     <Engine className="org.apache.catalina.core.StandardEngine"
>             debug="0"
>             defaultHost="server.domain.com"
>
mapperClass="org.apache.catalina.core.StandardEngineMapper"
>             name="Catalina">
>
>       <Host className="org.apache.catalina.core.StandardHost"
>             appBase="webapps"
>             autoDeploy="true"
>             debug="0"
>             name="server.domain.com"
>             unpackWARS="true"
>             xmlValidation="false"
>             xmlNamespaceAware="false">
>
>         <Context charsetMapperClass="
> org.apache.catalina.util.CharsetMapper"
>                  cookies="true"
>                  crossContext="false"
>                  debug="0"
>                  docBase="ROOT"
>                  mapperClass="
> org.apache.catalina.core.StandardContextMapper"
>                  path=""
>                  privileged="false"
>                  reloadable="false"
>                  swallowOutput="true"
>                  useNaming="true"
>
wrapperClass="org.apache.catalina.core.StandardWrapper"/>
>
>       </Host>
>
>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>              debug="0"
>              resourceName="UserDatabase"/>
>
>     </Engine>
>
>   </Service>
>
> </Server>
>
>
>
>
> // File workers.properties :
>
> worker.list=ajp13w
> worker.ajp13w.port=8009
> worker.ajp13w.host=localhost
> worker.ajp13w.type=ajp13
> worker.ajp13w.cachesize=10
> worker.ajp13w.cache_timeout=1200
> worker.ajp13w.socket_timeout=3600
>
>
>
>
> // File mod_jk.txt (Log File) :
>
> [Tue Nov 29 18:39:57 2005] [info]  jk_handler::mod_jk.c (1993): Could
not
> find a worker for worker name=ajp13w
>
>
>
>
> If you need anything else in order to pinpoint the problem, please
tell me
> and I will provide it right away. I really hope someone can help me
with
> this.
>
> Have a great day.
>
> Best Regards,
> Luka Andrejasic
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message