1、Go to the Tomcat installation director.



|
1、Go to the Tomcat installation director. 2、In my sys it is /root/jakarta-tomcat-5.0.5.
3、There you can see logs folder availble/root/jakarta-tomcat-5.0.5/logs move to that folder.
4、There you can find a file by name catalina.out----this is the file where the tomcat writes the logs as defined in the configuration file /root/jakarta-tomcat-5.0.5/bin/catalina.sh
5、On the terminal window execute the command tail -f catalina.out.
6、Now you can see the contents updated as they are written to the catalina。
My Tomcat, works with localhost:8080 and I can execute sample JSP, Servlets, Applets, etc.
Now I am interconnecting so Tomcat can service JSP and back-end DB to Apache requests. I found the Tomcat connector and I can verify from the logs that the URL is coming in from the internet, as it gets logged in the Apache log, then gets sent over to Tomcat as I can see the URL in its logs and parsed out components. So far, so good ... what isn't happening is the return trip -- the response.
The browser now gets a 503 Service Not Available response (huge progress/success) and I can see the ascii/hex response dumped in the logs.
I think the missing piece is getting the rules configured into the server configuration. That is where the install doc got very vague. I have surfed for the answer, but it is all coming back as IIS answers which does not apply to my Apache.
I think the rules are correct, but I need to know how to, "put them in the server configuration." I assume the file goes on the conf/ folder where my workers.properties is stored and I am guessing that the reference goes in 'server.xml' -- are those two points correct?? And what section of server.xml does it go in and how is the config-node formatted?
If my question needs more detail, please fire-back and I will provide more.
Apache 2.2
Windows XP 5.1.26 (ancient but all the SPs are installed)
Tomcat 5.2.7
Java / JRE / JSDK, etc are all ~1.4.x, 1.5.x and 1.6.x (I would have to dig more for this if needed).
Connector is 1.7 (I think) is configured for AJP1.3
All standard ports
Firewall is Netgear with port forwarding
User-id / Passwords are not default
Other stuff ????
Also, if there are any more hints on debugging/tracing out this issue - I would like to get that documented for my client.
I'll leave this here in case anyone is interested.
So, since you have a workers.properties you are probably using mod_jk (which has been depreciated for mod_proxy_ajp*). workers.properties are actually part of the mod_jk configuration. Yes, the documentation for mod_jk is pretty light. So I'll just go ahead and show you my production configuration as an example - you might have to modify it slightly as we run *nix boxes but the concepts are the same.
This is where you set all of your generic mod_jk setting for apache, logs, workers file, etc.
3. And finally you should have a workers.properties similar to: Finally we get to the meat of the config. This is where you setup the worker. the options are pretty self explanatory.
This howto will explain how to get Nutch, Nutch-Gui, Sun JDK & Tomcat 6.0.16 working on Centos 5.x while maintaining a normally functioning Centos system. Currently, Centos 5.x ships with Tomcat 5.5, however, while it does run, there are problems with the default install of this version that results in errors which are undocumented and persistent at this time. If you have information or believe that these errors have been addressed and can point to a fix, please use the contact form on this website to let us know. The following instructions allow for easy removal of any software installed through following this howto by either using "rpm -e foo.rpm" or "rm -rf /opt/foo" returning your system to its original state.
Basic description of what will be done and what is expected. Describe common problems here, include links to known common problems if on another site We test this stuff on our own machines, really we do. But you may run into problems, if you do, come to #centos on irc.freenode.net |
|
|