The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Have tomcat installed but JSP pages wont load

Discussion in 'General Discussion' started by AbeFroman, Oct 11, 2004.

  1. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    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. AbeFroman

    AbeFroman BANNED

    Joined:
    Feb 16, 2002
    Messages:
    654
    Likes Received:
    1
    Trophy Points:
    0
    bump......
     
  3. kaveh_cdeb

    kaveh_cdeb Active Member

    Joined:
    Oct 20, 2004
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    i have the same problem
    plz help
     
  4. tgaugh

    tgaugh Registered

    Joined:
    Sep 23, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    same issue here, test pages and servlet don't work either.
     
  5. kipper3d

    kipper3d Well-Known Member

    Joined:
    Jul 14, 2002
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    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
     
    #5 kipper3d, Nov 3, 2004
    Last edited: Nov 3, 2004
  6. kipper3d

    kipper3d Well-Known Member

    Joined:
    Jul 14, 2002
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    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. madmanent

    madmanent Registered

    Joined:
    Jan 6, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page