Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    BANNED
    Join Date
    Feb 2002
    Posts
    656

    Default Have tomcat installed but JSP pages wont 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?

  2. #2
    BANNED
    Join Date
    Feb 2002
    Posts
    656

    Default

    bump......

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    36

    Default

    Quote Originally Posted by AbeFroman
    bump......
    i have the same problem
    plz help

  4. #4
    Registered User
    Join Date
    Sep 2004
    Posts
    3

    Default

    same issue here, test pages and servlet don't work either.

  5. #5
    Member
    Join Date
    Jul 2002
    Posts
    52

    Default

    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.

  6. #6
    Member
    Join Date
    Jul 2002
    Posts
    52

    Default

    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

  7. #7
    Registered User
    Join Date
    Jan 2004
    Posts
    4

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Not able to view JSP pages.
    By ninad in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-08-2007, 12:16 PM
  2. Tomcat not rendering jsp test pages
    By brucelet in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-27-2006, 11:02 PM
  3. I have installed tomcat, how do I enable jsp for a domain?
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 09-19-2005, 09:07 PM
  4. Replies: 0
    Last Post: 06-30-2003, 12:58 PM
  5. tomcat 4.1.12 error with JSP pages
    By wadearnold in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 11-27-2002, 07:05 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube