Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    113

    Default tomcat 5.0.28 404 confusion.

    Ok I have installed the tomcat via the cool new tool and for some domain names it works and then others give a 404 from tomcat. I have looked at httpd.conf and web.xml and they both seem exatly the same for the domains that work. I also found in another post to try re-installing tomcat but that did not do anything.

    -- does not work --
    http://bdfs.eccentrichosting.net/jsptest.jsp

    -- works --
    http://wadearnold.com/jsptest.jsp


    HTTP Status 404 - /jsptest.jsp
    type Status report
    message /jsptest.jsp
    description The requested resource (/jsptest.jsp) is not available.
    Apache Tomcat/5.0.28

    Any ideas what else to check? Yes the file is there!

    Thanks so much!

    Wade

  2. #2
    Member
    Join Date
    Jan 2002
    Posts
    113

  3. #3
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Try re-installing it. The latest cpanel update did something fishy with it. upcp broke tomcat on two of my servers, but re-installing it fixed it.

  4. #4
    cPanelBilly
    Guest

    Default

    Do you have a ticket # on this?

  5. #5
    Member
    Join Date
    Jan 2002
    Posts
    113

    Default answer to 404 error

    Ticket number: 81293
    In order to get tomcat to work it has to have a domain resolving for it.

    Thanks for the help!

    wade

  6. #6
    Member
    Join Date
    Jul 2003
    Posts
    6

    Default

    You need to have a <host></host> entry for each domain you want to run servlets for setup in the server.xml file.

    e.g:
    Code:
    <!-- host 1 context's -->
    <Host name="host.com" appBase="/home/host/public_html">
        <Context path="" reloadable="true" docBase="/home/host/public_html" debug="1"/>
    </Host>
    <Host name="www.host.com" appBase="/home/host/public_html">
        <Context path="" reloadable="true" docBase="/home/host/public_html" debug="1"/>
    </Host>
    
    <!-- host 2 context's -->
    <Host name=".host2.com" appBase="/home/host2/public_html">
        <Context path="" reloadable="true" docBase="/home2/host2/public_html" debug="10"/>
        <Logger className="org.apache.catalina.logger.FileLogger" prefix="host2_log" suffix=".txt" timestamp="true"/>
    </Host>
    <Host name="www.host2.com" appBase="/home/host2/public_html">
        <Context path="" reloadable="true" docBase="/home2/host2/public_html" debug="10"/>
        <Logger className="org.apache.catalina.logger.FileLogger" prefix="host2_log" suffix=".txt" timestamp="true"/>
    </Host>

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. Status 404 in tomcat
    By Charles.Gao in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-03-2008, 02:18 PM
  3. Tomcat and 404 errors
    By stormridermay in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-03-2008, 12:02 PM
  4. Tomcat 404 errors
    By sparek-3 in forum cPanel Developers
    Replies: 0
    Last Post: 11-24-2006, 09:00 AM
  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