Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I have just installed Tomcat on a server inside of /usr/share/tomcat5 and I have also installed the mod_jk module for Apache to connect to Tomcat to serve .jsp pages and servlets. The problem is, I am getting a status 404 on all pages I'm trying to serv on both the Tomcat 8080 port and Apache 80 port. I can't seem to figure out what It is I missed. Has anyone had this issue and know of a fix? Examples:
Ok, it looks like your worker.properties and httpd.conf files are clean, with a small exception being the "worker.list" parameter in worker.properties. According to the mod_jk2 doc, "worker.list" is a comma delimited list and yours is space delimited. I haven't found a mod_jk document to confirm this so I can't confirm if the comma delimiter applies to mod_jk as well.
More importantly, the 404 messages are coming from Tomcat, which is good since it means you're reaching it ok.
I'm thinking you don't have the Context for your web app setup correctly. If you can, post your server.xml file or make sure your Context contains the correct docBase.
I'm surprised that wasn't mentioned in the Tomcat mailing list.
Thanks for the response, it is appreciated. I have fixed the workers.properties file and restarted services accordingly but still the same error message. Here is my server.xml file as requested (it's big): http://aprva.com/server.xml
Thanks. Is your test.jsp file located in $(CATALINAHOME)/webapps? Can you put a test.jsp in $(CATALINAHOME/examples and see if http://www.aprva.com/examples/test.jsp works?
I'm able to run that JSP example just fine, so if we find out where it's located on your machine, we can find out the path discrepancy and get your Context defined correctly.
Wait a minute, /usr/share/tomcat5? Tomcat is reporting itself as Tomcat 4.1. You should confirm you're running the version of Tomcat you need to be running.
Also, I believe mod_jk2 should be used with Tomcat 5.
Anywho, look in /var/log/httpd/mod_jk.log and in the Apache error log for messages that correspond to the "500 Internal Server Error" message that gets generated when using Apache as the front-end to Tomcat.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.