Re: ajp mod_jk problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the replies.


I  solved the problem. There was no entry in server.xml(of tomcat), i put the entries. Then, i follow directives of the Anthony. In virtual host, there was JkMount command, i changed its place.. But I use hostname(no ip) in workers file. Now, it works. thank you very much..


regards,


-Halil AGIN.

2009/2/26 Jorge Medina <jmedina@xxxxxxxxxxxx>
Look at your mod_jk log file "C:/Program Files/Apache Software Foundation/Tomcat 6.0/conf/mod_jk.log"
 
 


From: Halil Ağın [mailto:halil.agin@xxxxxxxxx]
Sent: Wednesday, February 25, 2009 7:24 PM
To: users@xxxxxxxxxxxxxxxx
Subject: ajp mod_jk problem

Hello List;

I want to access tomcat applications through apache http. But i could not succeed. I could not where i made mistake.

When i run tomcat, i can access the BulusmaNoktasiWeb application but through apache httpd, i could not.

Could you help me?

I give the configuration parameters below...

Regards,

-Halil AGIN.

The name of Application                       : BulusmaNoktasiWeb
the tomcat path                                   : http://chatserver.test:8080/BulusmaNoktasiWeb   (And it works, chatserver.test is
                                                            a  bogus domain, and it works.)
the apache http path                            : http://chatserver.test/BulusmaNoktasiWeb   (ıt doesnt work)

OS                                                     : Vista
Apache http                                        :apache_2.2.11-win32-x86-no_ssl
Apache Tomcat                                   :apache-tomcat-6.0.16

Apache Tomcat Running Port               : 8080
Apache Tomcat AJP Port (AJP/1.3)      : 8009
mod_jk.so                                           :jk-1.2.27/mod_jk-1.2.27-httpd-2.2.10.so (i renamed it as mod_jk.so and put under modules directory)




-------------------------apache http error.log----------------------
[Thu Feb 26 01:11:42 2009] [notice] Parent: Created child process 5388
[Thu Feb 26 01:11:43 2009] [notice] Child 5388: Child process is running
[Thu Feb 26 01:11:43 2009] [notice] Child 5388: Acquired the start mutex.
[Thu Feb 26 01:11:43 2009] [notice] Child 5388: Starting 64 worker threads.
[Thu Feb 26 01:11:43 2009] [notice] Child 5388: Starting thread to listen on port 80.
[Thu Feb 26 01:16:56 2009] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Feb 26 01:16:56 2009] [notice] Child 5388: Exit event signaled. Child process is ending.
[Thu Feb 26 01:16:57 2009] [notice] Child 5388: Released the start mutex
[Thu Feb 26 01:16:58 2009] [notice] Child 5388: All worker threads have exited.
[Thu Feb 26 01:16:58 2009] [notice] Child 5388: Child process is exiting
[Thu Feb 26 01:16:58 2009] [notice] Parent: Child process exited successfully.
[Thu Feb 26 01:17:12 2009] [notice] Apache/2.2.11 (Win32) mod_jk/1.2.27 configured -- resuming normal operations
[Thu Feb 26 01:17:12 2009] [notice] Server built: Dec 10 2008 00:10:06
[Thu Feb 26 01:17:12 2009] [notice] Parent: Created child process 5308
[Thu Feb 26 01:17:13 2009] [notice] Child 5308: Child process is running
[Thu Feb 26 01:17:13 2009] [notice] Child 5308: Acquired the start mutex.
[Thu Feb 26 01:17:13 2009] [notice] Child 5308: Starting 64 worker threads.
[Thu Feb 26 01:17:13 2009] [notice] Child 5308: Starting thread to listen on port 80.

-------------------------apache http error.log----------------------


-------------------------apache http access.log----------------------
10.0.0.7 - - [26/Feb/2009:00:55:18 +0200] "GET /BulusmaNoktasiWeb HTTP/1.1" 404 215
10.0.0.7 - - [26/Feb/2009:00:55:26 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:00:56:43 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:03:05 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:04:55 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:04:56 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:04:57 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:04:57 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:04:57 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:04:57 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:06:37 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:10:09 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:10:12 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:10:12 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:10:13 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:10:13 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:10:13 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:14:14 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:14:17 +0200] "GET /favicon.ico HTTP/1.1" 404 209
10.0.0.7 - - [26/Feb/2009:01:16:49 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216
10.0.0.7 - - [26/Feb/2009:01:49:25 +0200] "GET /BulusmaNoktasiWeb/ HTTP/1.1" 404 216

-------------------------apache http access.log----------------------


-----------------C:\Program Files\Apache Software Foundation\Apache2.2\modules-------------------

mod_jk.so file exists in the modules directory
-----------------C:\Program Files\Apache Software Foundation\Apache2.2\modules-------------------


------------C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\mod_jk.conf--------------
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat 6.0/conf/workers.properties"
JkLogFile "C:/Program Files/Apache Software Foundation/Tomcat 6.0/conf/mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount /BulusmaNoktasiWeb ajp13
JkMount /BulusmaNoktasiWeb/* ajp13
------------C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\mod_jk.conf--------------



i only pastes related parts of httpd.conf file.

------------C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf--------------
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so



include conf/extra/mod_jk.conf   # this file exists



------------C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf--------------




------------C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\workers.properties-------------
# Define 1 real worker named ajp13
worker.list=ajp13

# Set properties for worker named ajp13 to use ajp13 protocol,
# and run on port 8009
worker.ajp13.type=ajp13
worker.ajp13.host=chatserver.test
worker.ajp13.port=8009
worker.ajp13.lbfactor=50
#worker.ajp13.cachesize=10
#worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300
------------C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf-------------







[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux