Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    3

    Default Status 404 in tomcat

    Hello,
    I have installed tomcat in my WHM (WHM -> cPanel -> Manage plugins -> click on Addon Modules tomcat ).

    The tomcat work..
    When I tried the “nmap 209.62.89.18” command line, the output is:
    ……
    80/tcp open http
    8009/tcp open ajp13
    8080/tcp open http-proxy
    ……

    And it can run jsp pages with http://uskongjian.gmakj.com:8080
    However, I installed servlets to my virtualhost (WHM -> Account Functions -> Install Servlets).

    After that, the virtualhost configure in /etc/httpd/conf/httpd.conf is
    LoadModule jk_module libexec/mod_jk.so
    <VirtualHost 209.62.89.18:80>
    ServerName gmakj.lw173.net
    ServerAlias www.gmakj.lw173.net
    ServerAdmin webmaster@gmakj.lw173.net
    DocumentRoot /home/gmakjlw/public_html
    <IfModule mod_suphp.c>
    suPHP_UserGroup gmakjlw gmakjlw
    </IfModule>
    <IfModule !mod_disable_suexec.c>
    User gmakjlw
    Group gmakjlw
    </IfModule>
    BytesLog /usr/local/apache/domlogs/gmakj.lw173.net-bytes_log
    CustomLog /usr/local/apache/domlogs/gmakj.lw173.net combined
    ScriptAlias /cgi-bin/ /home/gmakjlw/public_html/cgi-bin/
    <IfModule mod_jk.c>
    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13
    JkMount /servlets/* ajp13
    </IfModule>
    </VirtualHost>

    However, when I opened the URL http://gmakj.lw173.net, the browser is ending up with the following error:

    type Status report
    message /index.jsp
    description The requested resource (/index.jsp) is not available.

    I tried to uncomment the following lines in /usr/local/Jakarta/tomcat/conf/web.xml to turn on the invoker servlet:
    <servlet>
    <servlet-name>invoker</servlet-name>
    <servlet-class>
    org.apache.catalina.servlets.InvokerServlet
    </servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    <servlet-mapping>

    After that, I restarted the tomcat and retried to open the same URL .
    However, I got the same error.
    Can someone to tell me why this situation appear, please?
    Thanks and Regards
    Charles

  2. #2
    Member
    Join Date
    Feb 2004
    Location
    Chile
    Posts
    146

    Default

    I have the same problem... Any solutions?

    I tried re install tomcat, recompiled Apache and checked all the files server.xml and httpd.conf with sugestions used in the forum... but not working yet...

    Please Help.
    Evolution Technology Web Hosting Support.
    MSN: webmaster@scqcc.cl

Similar Threads & Tags
Similar threads

  1. TomCat 5.5.25 error 404
    By tonocarias in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-09-2009, 04:35 PM
  2. Tomcat and 404 errors
    By stormridermay in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-03-2008, 12:02 PM
  3. Tomcat 404 errors
    By sparek-3 in forum cPanel Developers
    Replies: 0
    Last Post: 11-24-2006, 09:00 AM
  4. tomcat 5.0.28 404 confusion.
    By wadearnold in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-24-2004, 11:09 PM
  5. Install Tomcat but 404 not found?
    By colorcloud in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-04-2003, 02:53 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube