Have tomcat installed but JSP pages wont load

AbeFroman

BANNED
Feb 16, 2002
644
1
318
I have tomcat installed via the addon modules in WHM but JSP pages wont load

How do I get a .jsp page to load?
 

kipper3d

Well-Known Member
Jul 14, 2002
52
0
156
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:

kipper3d

Well-Known Member
Jul 14, 2002
52
0
156
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
 

madmanent

Registered
Jan 6, 2004
4
0
151
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:

Code:
<IfModule mod_jk.c>
   JKMount /* ajp13
   JKMount /*.jsp ajp13
</IfModule>
ajp13 is one of the Tomcat worker process configured in the workers.properties file.