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.

Tomcat: cp_jkmount.conf problem

Discussion in 'General Discussion' started by plague, Feb 4, 2008.

  1. plague

    plague Active Member

    Joined:
    Sep 22, 2006
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    We have a fresh server (CentOS 5 + WHM 11.15.0 cPanel 11.17.5-C20439) that we compiled Apache 2.0 and Tomcat 5.5.25 in Easy Apache.

    Now we are trying to install the servlets in the domains but the script adds a wrong code in the cp_jkmount.conf file. Our other servers adds the right code in the config file, that should be:

    Code:
    <IfModule mod_jk.c>
      JkMount /*.jsp ajp13
      JkMount /servlet/* ajp13
      JkMount /servlets/* ajp13
    </IfModule>
    But the "Install Servlets" option in the new server adds this code:

    Code:
    <IfModule mod_jk.c>
      JkMount /*.jsp ajp13
      JkMount /servlet/* ajp13
      JkMount /servlets/* ajp13
      JkMount /*.do
    </IfModule>
    How can you see, it adds the "JkMount /*.do" code in the line 5, and this is broken Apache when it restarts. WHM do a force restart without the include config to prevent problems, but the servlet is not installed this way, because the force restart removes the servlets include from the conf. The cPanel log "said":

    Code:
    Mon Feb  4 10:55:06 2008 warn [Cpanel::EditHttpdconf]: Apache conf failed syntax check: Configuration problem detected on line 5 of file /usr/local/apache/conf/userdata/std/1/user/domain/cp_jkmount.conf:
            JkMount needs a path when not defined in a location
    
            --- /usr/local/apache/conf/userdata/std/1/user/domain/cp_jkmount.conf ---
            1<IfModule mod_jk.c>
            2  JkMount /*.jsp ajp13
            3  JkMount /servlet/* ajp13
            4  JkMount /servlets/* ajp13
            5 ===>   JkMount /*.do <===
            6</IfModule>
            --- /usr/local/apache/conf/userdata/std/1/user/domain/cp_jkmount.conf ---
      at /usr/local/cpanel/Cpanel/EditHttpdconf.pm line 41
            Cpanel::EditHttpdconf::edit_httpdconf('CODE(0x17c44380)') called at /usr/local/cpanel/Cpanel/EditHttpdconf.pm line 234
            Cpanel::EditHttpdconf::ensure_vhost_include_directives('ARRAY(0x17c2f470)') called at /usr/local/cpanel/Cpanel/EditHttpdconf.pm line 300
            Cpanel::EditHttpdconf::add_vhost_include('HASH(0x17c2eaa0)') called at /scripts/addservlets2 line 46
    Mon Feb  4 10:55:09 2008 info [cPScript::HttpUtils]: PID mismatch. Force restart activated.

    Is this a WHM/cPanel update issue?

    Thank you.
     
  2. kennyhwl

    kennyhwl Registered

    Joined:
    Jul 29, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Apparently I have the same issue on one of the fresh installed server with CentOS 5 x86_64
    cPanel 11.17.5-C20439

    I will need to re-compile Apache everytime after removing the line JkMount /*.do

    Does anyone has a solution here?
     
  3. plague

    plague Active Member

    Joined:
    Sep 22, 2006
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi Kenny.

    I opened a ticket about this issue and this is the reply that I received from Stephen:

    ;D
     
Loading...

Share This Page