![]() |
|
#1
|
|||
|
|||
Apache/Tomcat/jk2 Integration ProblemHi:
Im using mod_jk2 to connect apache 2.0.50 and Tomcat/5.0.18 on Linux Mandrake 9.2. I used source files to installed the apache (httpd) tomcat and jk2. Following is the content of my workers2.properties in {serverRoot}/conf/workers2.properties <==============|| workers2.properties ||=================> # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/opt/jakarta-tomcat-5.0.18/logs/jk2temp.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/opt/jakarta-tomcat-5.0.18/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/opt/jakarta-tomcat-5.0.18/work/jk2.socket] channel=channel.un:/opt/jakarta-tomcat-5.0.18/work/jk2.socket # Announce a "status" worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/jsp-examples/*] # Uri mapping [uri:/MyFirst/*] <-------------------------------------------------------------------> Content of my workers2.properties in {serverRoot}/conf/jk2.conf <=================|| jk2.conf ||====================> LoadModule jk2_module modules/mod_jk2.so JkSet config.file /usr/local/apache2/conf/workers2.properties <----------------------------------------------------> Content of my jk2.properties file in {TOMCAT_HOME}/conf/jk2.properties <===============|| jk2.properties ||====================> # Set the desired handler list handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/opt/jakarta-tomcat-5.0.18/work/jk2.socket # Dynamic Library serverRoot=/usr/local/apache2/ apr.NativeSo=/usr/local/apache2/modules/libjkjni.so <------------------------------------------------------------> Earlier im getting this in catalina.out when i not define serverRoot ........ ( info ) [jk_config_file.c (239)] config.update(): Can't find config file ${serverRoot}/conf/workers2.properties ........ After this i did [ export serverRoot= /usr/local/apache2 ( where i installed apache webserver ) ]. then its not showing this type of message .... when i run tomcat server , following is ( {TOMCAT_HOME}/logs/catalina.out ) log results. <=================|| catalina.out ||====================> . . . . [Fri Sep 03 14:42:41 2004] ( info ) [jk_config_file.c (283)] cfg.update() Updating config /usr/local/apache2//conf/workers2.properties 67108871 1094222397 [Fri Sep 03 14:42:41 2004] ( info ) [jk_config_file.c (294)] config.setConfig(): Reading properties /usr/local/apache2//conf/workers2.properties 7 [Fri Sep 03 14:42:41 2004] ( info ) [jk_config.c (490)] config.update(): done shm [Fri Sep 03 14:42:41 2004] ( info ) [jk_config.c (490)] config.update(): done channel.un:/opt/jakarta-tomcat-5.0.18/work/jk2.socket [Fri Sep 03 14:42:41 2004] ( info ) [jk_config.c (490)] config.update(): done ajp13:/opt/jakarta-tomcat-5.0.18/work/jk2.socket [Fri Sep 03 14:42:41 2004] ( info ) [jk_config.c (490)] config.update(): done status:status [Fri Sep 03 14:42:41 2004] ( info ) [jk_config.c (490)] config.update(): done uri:/jkstatus/* [Fri Sep 03 14:42:41 2004] ( info ) [jk_config.c (490)] config.update(): done uri:/jsp-examples/* [Fri Sep 03 14:42:41 2004] ( info ) [jk_config.c (490)] config.update(): done uri:/MyFirst/* [Fri Sep 03 14:42:41 2004] ( info ) [jk_logger_file.c (143)] Initializing log file stderr [Fri Sep 03 14:42:41 2004] ( info ) [jk_channel_un.c (135)] channelUn.init(): init [Fri Sep 03 14:42:41 2004] ( info ) [jk_channel_un.c (152)] channelUn.init(): extracted file from name /opt/jakarta-tomcat-5.0.18/work/jk2.socket [Fri Sep 03 14:42:41 2004] ( info ) [jk_workerEnv.c (397)] workerEnv.init() ok /usr/local/apache2//conf/workers2.properties Sep 3, 2004 2:42:41 PM org.apache.jk.apr.AprImpl init INFO: JK2: Initialized apr [Fri Sep 03 14:42:41 2004] ( info ) [jk_channel_un.c (135)] channelUn.init(): init Sep 3, 2004 2:42:41 PM org.apache.jk.common.ChannelUn init INFO: JK: listening on unix socket: /opt/jakarta-tomcat-5.0.18/work/jk2.socket Sep 3, 2004 2:42:42 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 [Fri Sep 03 14:42:42 2004] ( info ) [jk_jni_aprImpl.c (431)] jkInvoke() invoke 4e474470 Sep 3, 2004 2:42:42 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=346/335 config=/opt/jakarta-tomcat-5.0.18/conf/jk2.properties Sep 3, 2004 2:42:42 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 21137 ms <-------------------------------------------------------> I think above result is fine. Because its not showing no error or bad info ( My Guess ) ..... After running tomcat i run apache web-server, on same time i m checking {serverRoot}/logs/error_log. Its showing me .... [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [notice] Digest: generating secret for digest authentication ... [notice] Digest: done [notice] Apache/2.0.50 (Unix) DAV/2 configured -- resuming normal operations .... But when im accessing 192.168.0.152 192.168.0.152 192.168.0.152 Im getting error PAGE CAN'T BE FOUND ... and in {serverRoot}/logs/error_log getting .... [error] [client 192.168.0.201] File does not exist: /usr/local/apache2/htdocs/jsp-examples I m trying to view jk2.socket file but im getting Permission Denied message ..... ( I was logged with root account ) Sometime i get the message 'error in creating shm file' in {TOMCAT_HOME}/logs/catalina.out but when i change the name in ${serverRoot}/worker2.properties this error also fix and its create shm file automatically ( As i read in toturial ) Please provide me proper help and what im missing. I thinks im missing something in ( uri definition ). I'm trying from one week , now i become weak I really appreciate your suggestions and referencs. Faisal email:smartfq@hotmail.com |
|||
|
#2
|
||||
|
||||
|
Have you tried setting the debug flag?
debug=1 maybe those uri handlers are missing some action to be taken |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Apache / PHP problem, maybe output length? | HaganeNoKokoro | Apache Web Server Forum | 3 | 07-Aug-2008 05:42 |
| Tee chart problem | Arun | C++ Forum | 0 | 02-Sep-2004 00:23 |
| C I/O problem | kelly80 | C Programming Language | 4 | 27-Apr-2004 21:15 |
| Another FX 5600 problem (but with details that might shed light on this) | BobDaDuck | Computer Hardware Forum | 2 | 16-Apr-2004 08:53 |
| problem with php5 cgi installation | fab13 | Apache Web Server Forum | 3 | 19-Nov-2003 10:11 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The