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 not reading Web.xml

Discussion in 'General Discussion' started by cguimont, Mar 9, 2006.

  1. cguimont

    cguimont Well-Known Member

    Joined:
    Jul 13, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Hello,
    I have installed the tomcat installation and now, We are not able to run a servlet from the home directory because it doesn't read the Web.xml in the WEB-INF corrently. When we put the same site on the Tomcat Directory, the site runs just fine. Any help????

    Or, is there a way to make a redirection internally from the website domain to tomcat port without the customer seeing it.

    Thanks,

    Charles
     
    #1 cguimont, Mar 9, 2006
    Last edited: Mar 9, 2006
  2. cguimont

    cguimont Well-Known Member

    Joined:
    Jul 13, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Okay,
    If others need the solution, here it is.
    When cpanel installs Tomcat, by default, it permits you to run a servlet in the /home/xxx/www/servlet ou servlets folder, or any JSP file found. But then, if you want your main address to be show as some java code, you need to change the httpd.conf and in the virtual host of the site, you need to change /home/.../servlet/* to /home/.../public_html/*.

    This solved all my problems.!


    Thanks,

    Charles
     
  3. wwwbagz

    wwwbagz Registered

    Joined:
    Dec 2, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    httpd.conf

    will u pls tell me whre this file httpd.conf is found
    and
    where and how to make changes in the virtual host also ...
     
  4. mesranet

    mesranet Well-Known Member

    Joined:
    May 6, 2002
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    16
    WARNING: Internal Error: File /WEB-INF/web.xml not found

    Hi,

    Me also face same problem with Tomcat via Easyapache 3, the error message i found on catalina.out is WARNING: Internal Error: File /WEB-INF/web.xml not found, this happen after my server crash and i have to reinstall back everything from backup hard disk and after i install easyapache 3, all the Tomcat account are not working as before.

    Please Help

    P/S: I did post the issue to Cpanel Ticket but shame, the answer is:

    'I am unable to reproduce this specific error, I am seeing some application
    specific issues with this program, however.'
    --
    Thank You,
    Matt Dees
    Technical Support Representative, Level 2
    cPanel, Inc.
     
Loading...

Share This Page