Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

HOW-TO: Troubleshotting Tomcat installation bugs

Discussion in 'General Discussion' started by darkelder, Oct 13, 2005.

  1. darkelder

    darkelder Well-Known Member

    Joined:
    Oct 8, 2004
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    156
    Troubleshotting: Tomcat installation bugs
    From cpWiki (full article on http://www.cpwiki.org/index.php?title=Troubleshotting:_Tomcat_installation_bugs)

    Note: these instructions is provided according Cpanel Tomcat Installer bugs on versions near WHM 10.6.0 cPanel 10.8.0-S21.


    Let's remove Tomcat and install it again.


    Table of contents [showhide]
    1 Checking everything is clean
    2 Installing tomcat
    3 If it fail while installing Tomcat on WHM: install hangs after license
    4 Fixing jsvc
    5 Making sure Tomcat is running and apache is restarted
    6 Each time you install Servlet on a domain
    7 Mapping .do
    [edit]
    Checking everything is clean

    /scripts/upcp --force
    cd /usr/local/apache/conf/
    mv workers2.properties workers2.properties.old
    mv workers.properties workers.properties.old
    cd /usr/local/cpanel/modules-install/tomcat-Linux-i686
    ./uninstall
    rm -rf /usr/local/jdk1.5.0_02

    [edit]
    Installing tomcat

    cd /usr/local/cpanel/modules-install/tomcat-Linux-i686
    ./install


    Copy and past tomcat root password.
    [edit]
    If it fail while installing Tomcat on WHM: install hangs after license

    Remove file installed is trying to replace:

    rm -rf /usr/local/jdk1.5.0_02
    cd /usr/local/cpanel/modules-install/tomcat-Linux-i686
    ./install

    [edit]
    Fixing jsvc

    We need to compile manually jsvc since Cpanel Tomcat installer are bugged while trying to compile it.

    cd /usr/local/jakarta/tomcat/bin
    cd jsvc-src/
    ./configure
    make
    killall jsvc
    cp jsvc ../

    [edit]
    Making sure Tomcat is running and apache is restarted

    /scripts/restartsrv_tomcat
    service httpd restart

    [edit]
    Each time you install Servlet on a domain

    After installing Servlet on WHM on some domain, if Tomcat doesn't open, try to restart it again.

    Sometimes Tomcat can broke install after adding Servlet on a domain by WHM. If it happen, just follow these instructions again - probably it will work.
    [edit]
    Mapping .do

    If you need .do: Edit /usr/local/apache/conf/httpd.conf and add a line inside domain VirtualHost:


    <IfModule mod_jk.c>
    JkMount /*.do ajp13
    </IfModule>


    Restart apache:

    service httpd restart
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice