On Fri, 20 Dec 2002, Denise Mangano wrote: > Ok, now I added the JkMount /examples/* worker1 and nothing works. > Everything hangs indefinitely. I had all this placed at the end of > my httpd.conf file so it would apply to all virtual hosts. I'm > completely at a loss, and quite frustrated actually : ( At this > point I do not care if the examples work, I just want to get my app > that was working before back up... > > What on earth could possibly be going wrong?
Not sure -- but just adding the one JkMount directive should not have this effect. There must be something else going on. Is there anything informative in any of the various logs -- apache, mod_jk, tomcat? How did you stop/start Apache after making the above change? > -----Original Message----- > From: Milt Epstein [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 3:56 PM > To: Tomcat Users List > Subject: RE: Configuring mod_jk - Again! > > > On Fri, 20 Dec 2002, Denise Mangano wrote: > > > Well I tried it. And I added additional JkMount statements: > > > > LoadModule jk_module modules/mod_jk.so > > JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties > > JkLogFile /usr/local/tomcat/logs/mod_jk.log > > JkLogLevel info > > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > > JkRequestLogFormat "%w %r %s %T" > > JkMount /*.jsp worker1 > > JkMount /tomcat-docs/*.jsp worker1 > > JkMount /admin/j_security_check worker1 > > JkMount /admin/*.do worker1 > > JkMount /admin/*.jsp worker1 > > JkMount /webdav/*.jsp worker1 > > JkMount /examples/jsp/security/protected/j_security_check worker1 > > JkMount /examples/snoop worker1 JkMount /examples/servlet/* worker1 > > JkMount /examples/CompressionTest worker1 > > JkMount /examples/*.jsp worker1 > > JkMount /examples/servletToJsp worker1 > > JkMount /examples/SendMailServlet worker1 > > JkMount /manager/html/* worker1 > > JkMount /manager/* worker1 > > JkMount /manager/*.jsp worker1 > > > > For workers.properties I first tried: > > worker.list=worker1 > > worker.worker1.type=ajp13 > > worker.worker1.host=localhost > > worker.worker1.port=8009 > > > > > > Now when I go to http://localhost/index.jsp it displays the tomcat > > home page, but the images are missing (looks like the path is not > > right)... > > You don't really give enough information to tell what's going on with this, > but sometimes there are problems with images that are unrelated to other > problems (e.g. the other problems you're having here). These have to do > with where your images are (e.g. under the webapp, or under some images > directory off the Apache DocumentRoot), and how you reference them (e.g. > relatively or absolutely). > > > > Also, I can't get to any other page. For example. I try going to > > http://localhost/examples/servlets/ and I get a HTTP 404 Page not > > found error. Any further suggestions? > > You have nothing, that is, no JkMount directive, that would forward that URL > to tomcat. (BTW, that's often the first step in figuring out the problem > with a page, especially if it's a 404, seeing whether it's Tomcat or Apache > that's returning the 404. You can do that by looking at the returned page > or seeing what's in the logs.) I think you need something like: > > JkMount /examples/* worker1 > > Also, this will allow you to get rid of several of the JkMount directives > you've shown above. > > > > I tried changing workers.properties to: > > worker.list=worker1 > > worker.worker1.type=ajp13 worker.worker1.host=www.mydomainname.com > > worker.worker1.port=8009 > > > > But the same situation... Thanks though - this is definitely a start! > > > > Denise Mangano > > Help Desk Analyst > > Complus Data Innovations, Inc. > > > > > > -----Original Message----- > > From: Iran Marcius [mailto:[EMAIL PROTECTED]] > > Sent: Friday, December 20, 2002 1:18 PM > > To: 'Tomcat Users List' > > Subject: RES: Configuring mod_jk - Again! > > > > > > So lets go! > > > > In my case, I put this configurarions in server, I mean, outside any > > Apache directive. You can put it, for example, right bellow "Listen" > > apache directive (coincidentally where we find the first DSO > > directives, just a detail). > > > > That "worker1" is na arbitrary name I picked for my worker (see > > workers.properties file). You can change it if you want, but the names > > must be concise in httpd.conf and workers.properties. > > > > About the ROOT directory, AFAIK, its just a mapping to tell apache > > what must be forwarded to tomcat, so, in the example I sent you > > (JkMount /test worker1, JkMount /test/* worker1), if you type > > http://<host>/test or http://<host>/test/<anything>, apache will > > forward the request to tomcat. > > > > Hope it helps. > > > > iran > > > > -----Mensagem original----- > > De: Denise Mangano [mailto:[EMAIL PROTECTED]] > > Enviada em: sexta-feira, 20 de dezembro de 2002 15:59 > > Para: 'Tomcat Users List' > > Assunto: RE: Configuring mod_jk - Again! > > > > > > At this point I am willing to try anything - I am getting desperate... > > > > Where in the httpd.conf file would that information go? Also what is > > worker1? Should the last two JkMount statements point to my ROOT > > directory? > > > > Thanks. > > > > Denise Mangano > > > > > > > > -----Original Message----- > > From: Iran Marcius [mailto:[EMAIL PROTECTED]] > > Sent: Friday, December 20, 2002 11:30 AM > > To: 'Tomcat Users List' > > Subject: RES: Configuring mod_jk - Again! > > > > > > Hi Denise. I successfully integrated apache 2.0.43 and tomcat 4.1.16 > > with a simplistic configuration. > > > > httpd.conf > > ---------- > > LoadModule jk_module modules/mod_jk-2.0.43.so > > JkWorkersFile conf/workers.properties > > JkLogFile logs/mod_jk.log > > JkLogLevel info > > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > > JkRequestLogFormat "%w %r %s %T" > > JkMount /test worker1 > > JkMount /test/* worker1 > > > > in workers.properties > > --------------------- > > worker.list=worker1 > > worker.worker1.type=ajp13 > > worker.worker1.host=localhost > > worker.worker1.port=8009 > > > > ...and nothing more. It worked for me. > > > > About the static mappings you did, I read it from the manual: > > > > Caution: If Apache is configured to serve static pages for a web > > application it bypasses any security contraints you may have > > configured in your web application web.xml config file. > > > > That discouraged me to map static pages. > > > > Hope it help. > > > > iran > [ ... ] > > Milt Epstein > Research Programmer > Integration and Software Engineering (ISE) > Campus Information Technologies and Educational Services (CITES) University > of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>