I fixed the problem already.

thanks,
Christine

--- Christine Ho <[EMAIL PROTECTED]> wrote:

> Thanks. I have tried it and I still cant make it
> work.
> But it is better than before. I got HTTP status 404
> -
> /jsp-eg/index.html. 
> 
> In error.log in apache, I got the following:
> 
> [Wed Jun 15 15:33:04 2005] [emerg] No JkShmFile
> defined in httpd.conf. LoadBalancer will not
> function
> properly!
> No JkShmFile defined in httpd.conf. LoadBalancer
> will
> not function properly!
> [Wed Jun 15 15:33:08 2005] [emerg] No JkShmFile
> defined in httpd.conf. LoadBalancer will not
> function
> properly!
> 
> In mod_jk.log in apache, I got the following:
> 
> [Wed Jun 15 16:42:34 2005] [3800:0000] [debug]
> ajp_connection_tcp_get_message::jk_ajp_common.c
> (1024): received from ajp13 pos=0 len=96 max=8192
> [Wed Jun 15 16:42:34 2005] [3800:0000] [debug]
> ajp_unmarshal_response::jk_ajp_common.c (606):
> status
> = 404
> [Wed Jun 15 16:42:34 2005] [3800:0000] [debug]
> ajp_unmarshal_response::jk_ajp_common.c (613):
> Number
> of headers is = 2
> [Wed Jun 15 16:42:34 2005] [3800:0000] [debug]
> ajp_unmarshal_response::jk_ajp_common.c (669):
> Header[0] [Content-Type] = [text/html;charset=utf-8]
> [Wed Jun 15 16:42:34 2005] [3800:0000] [debug]
> ajp_unmarshal_response::jk_ajp_common.c (669):
> Header[1] [Content-Length] = [1019]
> [Wed Jun 15 16:42:34 2005] [3800:0000] [debug]
> ajp_connection_tcp_get_message::jk_ajp_common.c
> (1024): received from ajp13 pos=0 len=1023 max=8192
> [Wed Jun 15 16:42:34 2005] [3800:0000] [debug]
> ws_write::mod_jk.c (380): writing 1019 (1019) out of
> 1019
> [Wed Jun 15 16:42:34 2005] [3800:0000] [debug]
> ajp_connection_tcp_get_message::jk_ajp_common.c
> (1024): received from ajp13 pos=0 len=2 max=8192
> [Wed Jun 15 16:42:34 2005] [3800:0000] [debug]
> ajp_done::jk_ajp_common.c (2046): recycling
> connection
> cache slot=0 for worker ajp13
> [Wed Jun 15 16:42:34 2005] [3800:0000] [debug]
> jk_handler::mod_jk.c (1959): Service finished with
> status=404 for worker=ajp13
> 
> I am not sure what went wrong.
> 
> In httpd.conf in apache, I added/modified the
> following lines:
> 
> ServerRoot "/export/chrisho/apache2"
> 
> LoadModule jk_module libexec/mod_jk.so
> 
> <Directory
>
/export/chrisho/jakarta-tomcat-5.5.9/webapps/jsp-examples/WEB-INF>
>   Options -Indexes FollowSymLinks
>   Deny from all
> </Directory>
> 
> JkWorkersFile conf/workers.properties
> JkLogfile logs/mod_jk.log
> JkLogLevel debug
> 
> Alias /jsp-eg
>
/export/chrisho/jakarta-tomcat-5.5.9/webapps/jsp-examples
> Alias /servlets-eg
>
/export/chrisho/jakarta-tomcat-5.5.9/webapps/servlets-examples
> 
> JkMount /jsp-eg/*.jsp ajp13
> JkMount /jsp-eg/*.html ajp13
> JkMount /servlets-eg/*.html ajp13
> 
> The workers.properties in apache2 looks like the
> following:
> 
>
workers.tomcat_home=/export/chrisho/jakarta-tomcat-5.5.9
> ps=/
> worker.list=ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> worker.ajp13.lbfactor=1
> 
> 
> In server.xml in tomcat 5.5.9, I added/modified the
> following lines:
> 
> <Listener
> className="org.apache.jk.config.ApacheConfig"
>   configHome="/export/chrisho/jakarta-tomcat-5.5.9"
>   modJk="/export/chrisho/apache2/libexec/mod_jk.so"
>   jkWorker="ajp13"
>   forwardAll="False"
>   jkLog="/export/chrisho/apache2/logs/jk-tomcat.log"
>   jkDebug="debug"
>   noRoot="False"
>  
>
workersConfig="/export/chrisho/apache2/conf/workers.properties"
> />
> <Connector port="8009"
>
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
> redirectPort="8443" protocol="AJP/1.3" />
> 
> Then I restart the tomcat and apache respectively. I
> have no problem to go to the following link through
> tomcat:
> 
> http://localhost:8080/jsp-examples/index.html
> 
> But I have problem to go to the following link
> through
> apache:
> 
> http://localhost/jsp-eg/index.html
> 
> Can somebody please help me.
> 
> thanks,
> Christine
> 
> 
> --- [EMAIL PROTECTED] wrote:
> 
> > Please refer to message 128209 for a complete
> howto.
> > 
> >  
> > 
> > Request it by sending an email to :
> > 
> >  
> > 
> > [EMAIL PROTECTED]
> > 
> >  
> > 
> >  
> > 
> > 
> 
> 
> 
>               
> __________________________________ 
> Discover Yahoo! 
> Get on-the-go sports scores, stock quotes, news and
> more. Check it out! 
> http://discover.yahoo.com/mobile.html
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to