Phillip Blancher wrote:
First, Thank you Brice Ruth for the email before. However I have gone a head and wiped everything out and started over. I picked up in the middle of this installation from someone else so instead of being flustered, I just started over.
Here is the situation. I am setting this up first to work localhost for now, the plan is to add 5 or 6 test IP's later.
TomCat works on its own at http://localhost:8080/ Apache works on its own at http://localhost/
Apache version is Apache/1.3.31 TomCat Version is 4.1.30 I am running on a Windows 2000 server
I have installed the mod_jk module and configured the workers.properties file.
Here is the thing. Everything boots fine, and both services work, but not together. I have placed in the localhost web space a file called test.jsp.
When I go to http://localhost/test.jsp - IE prompts me to download the file.
So even though there are no errors on the start of the services. They are not working together.
When I go to the mod_jk_log, I find this error message.
[Thu Jul 22 11:01:51 2004] [jk_connect.c (203)]: jk_open_socket, connect() failed errno = 61
[Thu Jul 22 11:01:51 2004] [jk_ajp_common.c (676)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 61
So my question is, given the files below, how do I make them talk? Is it as simple as making them listen to different ports and if so, which ones to have them listening to?
Help is muchly appreciated.
Phil
Phil,
Per Yoav's comment, remove the ajp14 connector from your workers.properties ... this is causing the error you see in the mod_jk log file. The reason that the test.jsp isn't loading correctly, is because you're not putting it somewhere that Apache knows to send it over to Tomcat. It sounds like you're putting the file either in "D:/webserver/apache/Apache/htdocs", or in Tomcat's 'webapps' directory ... either place, this isn't right.
To test if your Apache+mod_jk+Tomcat config is working, see if you can get to:
http://localhost/manager/html/list
If this prompts you for a login, then its working ... as this is the login for Tomcat's manager application.
If you look in the mod_jk.conf file - you'll see that only a certain select contexts are being exported to Apache ... /manager, /admin, /examples, /tomcat-docs, /webdav (did I miss any?) - to have something like http://localhost/test.jsp work, you'd need to define a ROOT context in Tomcat (there's actually one already configured in your server.xml, its just commented out) - and then after you restart Tomcat, the mod_jk.conf file should have JKMount lines reading "/" and "/*" .. that should ensure that any file placed in the web-application the ROOT context is pointing to (webapps/ROOT, by default) - will get appropriately served up by Tomcat.
So, you could enable the "ROOT" context in server.xml, restart Tomcat, restart Apache (to pick up the new mod_jk.conf), then put your test.jsp in webapps/ROOT - and *then* http://localhost/test.jsp *should* work.
Respectfully, Brice Ruth
-- Brice Ruth, Sr. IT Analyst Fiskars Brands Inc http://www.fiskarsbrands.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
