Posted: Tue 27 Jun '06 21:25 Post subject: I am afraid that I cannot not help you that much, this because it was a long time ago that i was running Tomcat with mod_jk. This port is not the 8080 or 1642 you mention.ītw. And normaly you do not have to change the file in tomcat/conf.Ījp13 is sending listening on port 8009 (the AJP 1.3 Connector port), do not change that port in the server.xml. There are two workers.properties files, one in the Apache/conf and one in the Tomcat/conf. Posted: Tue 27 Jun '06 20:48 Post subject: The Jakarta section on mod_proxy is pretty clear about making sure your server is secure before you use it, and I honestly have no idea how to pull that off. I was looking to migrate to that eventually but am a little raw w/ Apache to pull if off I think. If I set it to 8080 rather than 1642 aren't I then just using Tomcat for all requests rather than as a java container? I would prefer to have apache handle. Obviously I can set it in Tomcat's server.xml file, but I'm a little confused. I've looked through nfig and can't find any listing where Apache sets the port. At present I have it in Tomcat/conf, but either way the file has been there. Some tutorials said it has to be in the Apache/conf directory, and others said it had to be in the Tomcat/conf directory. I went back and forth with the workers.properties file. Posted: Tue 27 Jun '06 19:58 Post subject: Why not try the new connector in Apache 2.2 ? JkWorkersFile "x:/./conf/workers.properties" You must point to this file in httpfconf: I am not using Tomcat anymore, but when I recall you have to put a workers.properties file in your Apache/conf dir which conatains minimal: Looks Apache is not finding Tomcat on port 8009. Posted: Tue 27 Jun '06 10:31 Post subject: mod_jk.c (1985): Service error=0 for worker=ajp13Īnything that even remotely resembles help would be greatly appreciated at this point. Tomcat is probably not started or is listening on the wrong port. jk_ajp_common.c (1758): Error connecting to tomcat. jk_ajp_common.c (1749): Sending request to tomcat failed, recoverable operation attempt=3 jk_ajp_common.c (1248): Error connecting to the Tomcat process. When I check my mod_jk log on Tomcat this is what I'm getting: JkLogFile "C:/dev/Apache Software Foundation/Tomcat 5.5/logs/mod_jk.log" JkWorkersFile "C:/dev/Apache Software Foundation/Tomcat 5.5/conf/workers.properties" jsp to Tomcat, or not finding it, or whatever.īelow are the changes I made to nfig Neither the Apache nor the Tomcat error log shows anything wrong, it's just not forwarding the. So now I have basically put the server.xml back to it's original state, with the exception of having changed the port to 1642 and the statement from the jakarta website. I've tried stopping, starting, restarting the severs after each attempt to edit server.xml, but nothing seems to work. jsp page inside my htdocs folder I get a 503 service unavailable error. Each time I get the same result, which is sweet f.a. I have edited the server.xml file about fifteen times as per the fifteen or so different tutorials out there. Anyway, it is installed and after a frightening number of attempts to edit nfig I finally have that working with Apache. jsp examples that came with tomcat and they all work as well so that much is taken care of. So now, I can pull up and get the apache home page, or I can pull up and get the tomcat homepage. The only change I made to the server.xml files was to change the port to 1642. surprisingly easy actually, and now when I pull up I get whatever index page I put in my htdocs folder. Ok, so the Apache install went off without a hitch. Basically I'm trying to learn JSP and Servlets and just need a test environment. I am trying to install Apache 2.2 and Tomcat 5.5 on a Windows XP Home PC. Of course, I can't rule out the possibility that I've read so much, sometimes contradictory, material that now I'm completely lost. I know you guys must get really tired of these questions, but I've read through everything I can find and still haven't figured this one out. Posted: Tue 27 Jun '06 10:08 Post subject: Apache / Tomcat mod_jk Issue
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |