I have tomcat installed via the addon modules in WHM but JSP pages wont load
How do I get a .jsp page to load?
I have tomcat installed via the addon modules in WHM but JSP pages wont load
How do I get a .jsp page to load?
bump......
i have the same problemOriginally Posted by AbeFroman
plz help
same issue here, test pages and servlet don't work either.
I think this problem is a mod_jk/2 issue.
server is working on port 8080 but not on the domains.
Ok cpanel group. The tomcat install seems a bit of a mess. You got workers.properties and workers2.properties both in /etc/httpd/conf/ However, jk.conf is pointing to the old workers.properties (This install of cpanel im using is brand new and no prior tomcat installations)
John
Last edited by kipper3d; 11-03-2004 at 07:28 PM.
Found the problem.
Its not mod_jk as i originally thought. There are no host entries in the server.xml file. Every virtualhost must have <Host> entry:
<Host name="domain1.com" appBase="/home/username/public_html">
<Alias>www.domain1.com</Alias>
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
directory="/home/username/log"
prefix="tomcat5_log."
timestamp="true"/>
<Context path=""
docBase="/home/username/public_html"
crossContext="false"
reloadable="true" />
</Host>
John
To be able to load .jsp files from domain.com/test.jsp instead of just domain.com:8080/test.jsp you'll also need to tell Apache to pass requests through mod_jk to Tomcat
In each VirtualHost entry in /etc/httpd/conf/httpd.conf that needs Tomcat support add the following lines:
ajp13 is one of the Tomcat worker process configured in the workers.properties file.Code:<IfModule mod_jk.c> JKMount /* ajp13 JKMount /*.jsp ajp13 </IfModule>