tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kim Albee" <mtita...@gmail.com>
Subject Re: apache not talking to tomcat w/ mod_jk
Date Wed, 26 Jul 2006 19:58:13 GMT
probably something you've made sure to do, but are you loading mod_jk.so in
the httpd.conf?

Kim :-)

On 7/26/06, Ian Caswell <swimpunk@yahoo.com> wrote:
>
> I'm an OS guy, so applications are new to me.
> Any help is appreciated.
>
> I'm trying to integrate apache and tomcat w/ mod_jk.
> Regular html pages show up fine, but jsp pages do not.
> I don't think apache is talking to tomcat like it
> should.
> I'm not sure where the problem lies; netstat -an shows
> tomcat listening on 8009, but apache isn't connected.
> Can anyone help me find my issue?  Firewall is
> disabled, and /etc/hosts.allow and .deny are
> empty.  My hunch is an incorrect config file.
>
> Note:  my real hostname/domain has been replaced by
> myhost.mydomain to provide security and not confuse
> where i have localhost.localdomain in the configs.
>
> I've looked at following logs, but not found anything
> suspicious.
> /opt/tomcat/logs/*
> /etc/httpd/logs/*
> /home/tomcat/myhost.mydomain/broomfield/logs/*
>
> (irrelevant ports removed)
> Proto Recv-Q Send-Q Local Address  Foreign Address
> State
> tcp   0  0  ::ffff:127.0.0.1:8005     :::*    LISTEN
> tcp   0  0  :::8009                   :::*    LISTEN
> tcp   0  0  :::80                     :::*    LISTEN
>
> Setup:
> RHAS 4
> apache 2.0.52-22 (redhat rpm)
> ibm-java2-i386-sdk-5.0-2.0 (ibm rpm)
> tomcat 5.5.17 (built from src)
> mod_jk 1.2.15 (built from src)
>
> [root@myhost conf]# cat /opt/tomcat/conf/server.xml
> <Server port="8005"
> shutdown="5a7cf4f5bbd68235250d76adf2b836f7">
>
> <GlobalNamingResources>
>    <!-- Used by Manager webapp -->
>    <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 name="Catalina">
>    <Connector port="8009"
>        enableLookups="false"
>        redirectPort="8443"
>        protocol="AJP/1.3" />
>
>    <Engine name="Catalina" defaultHost="localhost">
>      <Realm
> className="org.apache.catalina.realm.UserDatabaseRealm"
>             resourceName="UserDatabase" />
>      <Host name="localhost"
> appBase="/home/tomcat/webapps" />
>    </Engine>
>
> </Service>
> </Server>
>
>
>
> [root@overkill conf]# cat
> /etc/httpd/conf.d/mod_jk.conf
> JkWorkersFile "/etc/httpd/conf/workers.properties"
> JkLogFile "/etc/httpd/logs/mod_jk.log"
> JkLogLevel info
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
>
>
> [root@overkill conf]# cat
> /etc/httpd/conf/workers.properties
> # workers.properties - ajp13
> workers.tomcat_home=/opt/tomcat
> workers.java_home=/opt/ibm/java2-i386-50
> ps=/
> #
> # List workers
> worker.list=wrkr
> #
> # Define wrkr
> worker.wrkr.port=8009
> worker.wrkr.host=127.0.0.1
> worker.wrkr.type=ajp13
> worker.wrkr.cachesize=10
> worker.wrkr.cache_timeout=600
> worker.wrkr.socket_timeout=300
>
> [root@myhost conf]# cat /etc/hosts
> 127.0.0.1               localhost.localdomain
> localhost
> 192.168.1.10            myhost.mydomain  myhost
>
> ##Relevant entries from /etc/httpd/conf/httpd.conf
> LoadModule jk_module modules/mod_jk.so
> Include conf.d/*.conf
> NameVirtualHost 192.168.1.10:80
>
> <VirtualHost 192.168.1.10:80>
>        ServerAdmin webmaster@myhost.mydomain
>        ServerName myhost.mydomain
>        DocumentRoot
> /home/tomcat/webapps/myhost.mydomain/broomfield
>        ErrorLog
> /home/tomcat/webapps/myhost.mydomain/logs/error_log
>        CustomLog
> /home/tomcat/webapps/myhost.mydomain/logs/access_log
> common
>        JkMount /*.jsp wrkr
>        JkMount /servlet/* wrkr
>        # Deny direct access to WEB-INF
>        <LocationMatch ".*WEB-INF.*">
>                AllowOverride None
>                deny from all
>        </LocationMatch>
> </VirtualHost>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message