Date sent: Sun, 27 Aug 2006 13:34:38 -0300 From: Mansour <[EMAIL PROTECTED]> Subject: Re: mod_jk and apache To: Mansour <[EMAIL PROTECTED]> Copies to: [EMAIL PROTECTED], Mansour <[EMAIL PROTECTED]>, Tomcat Users List <users@tomcat.apache.org>
> Mansour wrote: > > > Steve Ochani wrote: > > > >> Date sent: Sun, 27 Aug 2006 03:05:11 -0300 > >> From: Mansour <[EMAIL PROTECTED]> > >> Subject: mod_jk and apache > >> To: users@tomcat.apache.org > >> Send reply to: Tomcat Users List <users@tomcat.apache.org> > >> > >> > >> > >>> Hi Every body: > >>> I have gone through everything I can before posting a messga eto > >>> this mailing list. I can not find a good detailed documentation > >>> about configuring and integrating tomcat with apache. Here's what > >>> I did so far: I installed tomcat and mod_jk succefully. I was able > >>> to test tomcat, however, couldn't understand anything from here. > >>> What about the files that I have to edit. What are their roles?? > >>> and what is the basic configuration to get JSP to work in a > >>> virtual host. What is MountJK ?? And here's what I understand. The > >>> http request hits the webserver (apache), apache has few workers > >>> (I dont know what are they exactly !!). if the requested fiel is > >>> JSP then the worker passes it to tomcat. Then it gets the out put > >>> and send it to the client requesting this file. Now, I read > >>> http://tomcat.apache.org/connectors-doc/howto/workers.html but I > >>> still feel I am lost. And I am unable to get my JSP through > >>> apache. Nothing in the log. That's the message I get when I > >>> request a simple hello program > >>> > >>> > >> > >> Did you modify your apache httpd config file? > >> You need a line such as this in it > >> > >> JkMount /*.jsp worker1 > >> > >> > >> replace worker1 with the name of the ajp worker defined in > >> workers.properties > >> > >> > >> > >> > >> > >>> HTTP Status 404 - /hello.jsp > >>> > >>> ------------------------------------------------------------------ > >>> ---- -- > >>> > >>> *type* Status report > >>> > >>> *message* _/hello.jsp_ > >>> > >>> *description* _The requested resource (/hello.jsp) is not > >>> available._ > >>> > >>> ------------------------------------------------------------------ > >>> ---- -- > >>> > >>> > >>> Apache Tomcat/5.5.12 > >>> > >>> > >>> > >>> I am on fedora 3, apache 2.0 > >>> can anyone help ?? > >>> > >>> ------------------------------------------------------------------ > >>> --- To start a new topic, e-mail: users@tomcat.apache.org To > >>> unsubscribe, e-mail: [EMAIL PROTECTED] For > >>> additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >> > >> > >> > >> > > Yes, I have modified both files. workers.properties and httpd.conf > > with no progrees. I followed the document > > http://tomcat.apache.org/connectors-doc/howto/quick.html step by > > step. > > > > but still getting the same error. Here's the log file output > > > > [Sun Aug 27 12:40:13 2006] worker1 myWeb 0.020458 > > [Sun Aug 27 12:40:14 2006] worker1 myWeb 0.085645 > > [Sun Aug 27 12:43:05 2006] worker1 myWeb 0.014799 > > > > any advice ?? > > > > > That's my workers.properties: > > # Define 1 real worker using ajp13 > worker.list=worker1 > # Set properties for worker1 (ajp13) > worker.worker1.type=ajp13 > worker.worker1.host=localhost > worker.worker1.port=8009 > worker.worker1.lbfactor=50 > worker.worker1.cachesize=10 > worker.worker1.cache_timeout=600 > worker.worker1.socket_keepalive=1 > worker.worker1.recycle_timeout=300 > > and that's what I have added to httpd.conf > > LoadModule jk_module modules/mod_jk.so > JkWorkersFile /etc/httpd/conf/workers.properties > JkLogFile /var/log/httpd/mod_jk.log > JkLogLevel info > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > JkRequestLogFormat "%w %V %T" > JkMount /*.jsp worker1 > > any idea what's going on ?? > Where did you place hello.jsp ? If you are trying to load hello.jsp as http://hostname/hello.jsp then hello.jsp must reside in the webapps/ROOT directory of tomcat > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]