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.

jsp error page

Discussion in 'General Discussion' started by Secret Agent, Oct 26, 2005.

  1. Secret Agent

    Secret Agent Guest

    I get this after installing a tomcat servlet to a domain

    HTTP Status 404 - /jsptest.jsp

    --------------------------------------------------------------------------------

    type Status report

    message /jsptest.jsp

    description The requested resource (/jsptest.jsp) is not available.


    --------------------------------------------------------------------------------

    Apache Tomcat/5.5.7


    Tomcat restarted fine as well. What could cause this?

    Cpanel CURRENT
    Tomcat 5.5.7
     
  2. bking

    bking Well-Known Member

    Joined:
    Mar 1, 2004
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney
    Alot of people are reporting this also... I am having the same problem.

    Someone posted a workaround for this, but it has not helped mine..
    I have logged a bug with cpanel but am yet to receive a response...
     
  3. bking

    bking Well-Known Member

    Joined:
    Mar 1, 2004
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney
    finally fixed mine.... User had web.xml in their WEB-INF directory, that was causing issues...
    Thanks DGBaker in another thread for the pointer... :)
     
  4. Secret Agent

    Secret Agent Guest

    That is not the case here. It is empty (directory Web-inf).

    Any other possible ideas?
     
  5. Secret Agent

    Secret Agent Guest

    By the way...

    I installed the servelet via WHM
    and then tried the link

    www.domain.com/jsptest.jsp

    That's the actual link and the file is there also in public_html
     
  6. webicom

    webicom Well-Known Member

    Joined:
    Mar 30, 2004
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Slovenia
    I also have the same problem. It shows like everything is OK in WHM but tomcat is not working. I tryed through SSH /usr/local/cpanel/modules-install/tomcat-Linux-i686/install and uninstall but nothing. Anyone know how to fix this?

    Regards, Erik
     
  7. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    Same problem.. 2 customers now WAITING.. and waiting.. :(
     
  8. webicom

    webicom Well-Known Member

    Joined:
    Mar 30, 2004
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Slovenia
    Internetfab, if you have exact same problem as I did, than you should try this: It is possible that you have duplicate entries listed for both the 'httpservlet' and 'httpservlets' servlets in the file '/usr/local/jakarta/tomcat/conf/web.xml'. You must commenting out the duplicates and restarting tomcat and your tomcat should work. This is what cpanel support team did for me and it is working.
    I must say that I would not figure this out by my self and I have submited support ticket cpanel coze I have prettymuch new license and they helped me.

    So, try this and let me know if it helped you.

    Regards, Erik
     
  9. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    Thanks Erik but that does not seem to be the case. server.xml file looks alright.

    The problem is that java or javac wont run but output:
    Code:
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    
    Tried with -Xmx64m option and didnt work either.

    Tomcat IS running and it shows all the websites for those that had em working since long ago. BUT all new users added (2 right now) are unable to get their tomcat working since it cant use the compilator (javac)
     
  10. webicom

    webicom Well-Known Member

    Joined:
    Mar 30, 2004
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Slovenia
    Well, Im not an expert. Did you try to uninstall and install through SSH as I mentioned in one of previous post? If not try it. You should also try to uninstall tomcat from WHM addon modules. More than that I realy cant help you, coze I do not know nothing about apache. If nothing else post the support ticket to cpanel or as the last resort try to upgrade cpanel to EDGE tree but that should be your last resort.

    Regards, Erik
     
  11. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    Yes, we've had cpanel servers for several years now and have about 20 licenses running and we've done all suggested changes. Also doing this as root so ulimit should not have anything to do with it (but also disable fork/shell protection and uncommented ulimit).
    Ive browsed through several threads concerning this and we don't seem to be the only ones with the problem.
    We've submitted a ticket and are waiting for cpanel staff to get back to us.

    Should anyone know of any trick to make javac to work that'd be great :/
     
  12. helpline

    helpline Guest

    Hey man, your are great. This helped me as well. Thanxalottttttttttttt
     
  13. Azraell

    Azraell Member

    Joined:
    Aug 2, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasil / Rio de Janeiro
    Users may have web.xml on their WEB-INF dir, probably some user conf screwed tomcat.
     
    #13 Azraell, Jan 2, 2007
    Last edited: Jan 2, 2007
  14. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    I know this discussion is a bit out of date but its the only relevant one i can find

    I have the latest version of Tomcat installed and its working fine on a few sites but one particular site im getting this error

    Ive removed and re-added the servlets and still no joy, ive also compared the permissions on both and they are identical

    anyone have any suggestions why it would not work on one particular site?
     
  15. johnyqqq

    johnyqqq Member

    Joined:
    Feb 13, 2007
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I suggest you ditch the default Tomcat install which has limited support for
    real hosting and use NGASI AppServer Manager (http://www.ngasi.com). Actually the latest Tomcat version is
    5.5.23 (5.5.x) and 6.0.10(6.x). Your java Hosting will be a lot easier.
     
    #15 johnyqqq, Mar 12, 2007
    Last edited: Mar 12, 2007
  16. nitaish

    nitaish Well-Known Member
    PartnerNOC

    Joined:
    Jan 6, 2006
    Messages:
    123
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Mulund, India, India
    Check if the jsptest.jsp page works without a www in the domain. If that works, then you can edit the hostname in the server.xml to www.domain.com. This was how I fixed my problem.
     
  17. VirtuaLira

    VirtuaLira Well-Known Member

    Joined:
    Feb 1, 2004
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chile
    I have the same problem, I tried all the fixs, but nothing happen.... I have the 404 error...
     
Loading...

Share This Page