Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 25
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    2

    Angry Tomcat Crashes On Whm Build

    Hi,

    I update the WHM (current running WHM 11.2.0 cPanel 11.8.0-C15896)
    and my tomcat (5.5.9) crashes...it starts, but not work correctly!

    I find and found the problem, the catalina logs says that file have a problem:
    /usr/local/jakarta/tomcat/conf/web.xml (the default web.xml)

    I restore the backup of this file and it works...
    What hell is happened?
    Can be a problem of WHM build?

    Thanks!!
    Rodrigo Rodriguez

  2. #2
    big
    big is offline
    Member
    Join Date
    Aug 2001
    Location
    Earth
    Posts
    232

    Default

    from where you restored web.xml? where i can find it in my backups?

  3. #3
    Registered User
    Join Date
    May 2007
    Posts
    2

    Default

    I have an script that generates backups from my /etc and my /usr/local/jakarta
    I restore from it...
    You have the same problem?
    I can send my web.xml to you if needed...

    Rodrigo Rodriguez

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by big View Post
    from where you restored web.xml? where i can find it in my backups?
    You can grab it from the latest Tomcat 5.5 release on tomcat.apache.org

    Also, /scripts/upcp --force will resolve this issue, the problem was due to a file on our update servers that was corrupted.

  5. #5
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    "Also, /scripts/upcp --force will resolve this issue, the problem was due to a file on our update servers that was corrupted."

    Funny - that is the script that broke my fully functional tomcat....

    I just opened a ticket ion the meantime. I got to say - it does not make sense to just run a script again and hope it fixes what it just broke. Can you explain that one Kenneth (I'm not trying to be a jerk - just curious).

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by denisdekat09 View Post
    "Also, /scripts/upcp --force will resolve this issue, the problem was due to a file on our update servers that was corrupted."

    Funny - that is the script that broke my fully functional tomcat....

    I just opened a ticket ion the meantime. I got to say - it does not make sense to just run a script again and hope it fixes what it just broke. Can you explain that one Kenneth (I'm not trying to be a jerk - just curious).
    About /scripts/upcp --force:

    This forces cPanel update to essentially do a reinstall of all cPanel software and files (retaining your settings however). It is useful when the update process determines something on the server is already up-to-date and thus skips it during the update process. --force causes the updater to ignore that check and update anyway.

    The easiest solution with a corrupt web.xml file[1] is to replace it with a fresh copy from the the tomcat tarball distributed at http://tomcat.apache.org Some people dislike doing that, meddling on the commandline and so forth. Thus the instruction to execute /scripts/upcp --force[2] to force a download of the correct web.xml file.


    [1] Easy way to determine your web.xml file is corrupt:
    Code:
    grep httpservlet /usr/local/jakarta/tomcat/conf/web.xml
            <servlet-name>httpservlet</servlet-name>
            <servlet-name>httpservlets</servlet-name>
            <servlet-name>httpservlet</servlet-name>
            <servlet-name>httpservlets</servlet-name>
    If there are more than those entries, the web.xml file is corrupted.


    [2] We have since added a way to do this via WHM, since so many dislike the command line. Simply tick the box labeled Force a reinstall even if the system is update to date on the Upgrade to Latest Version page (/scripts2/upcpform)

  7. #7
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    Thanks Kenneth - will try with force to see if that helps - and rebuild apache too if need be afterwards

  8. #8
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    Tried that and it did not work - also trying easyapache now and getting and out of memory error - weird as I got plenty of ram not used, plus swap and disk space in general.

    Hoping that Cpanel answers my ticket at this point

    Thanks for the suggestion nonetheless...

  9. #9
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    Well after /scripts/upcp --force it did not fix. So I tried another easyapache and the script failed on me -

    !! sub-step '1' !!
    Out of memory!


    I tried a reboot wondering if that would clear memeory and such and I get the same thing every time. No matter what build I try - the default one etc.

    Hope you can help. It took over 2 hours to get my first reply which was someone from billing telling me they were moving it to support. Not sure how my support ticket via WHM went to billing. I do not recall havign the option to choose departments.

    Anyhow, if you have any input it would be great as I have many sites down and Cpanel support shows no love...

    Thanks

  10. #10
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by denisdekat09 View Post
    Well after /scripts/upcp --force it did not fix. So I tried another easyapache and the script failed on me -

    !! sub-step '1' !!
    Out of memory!


    I tried a reboot wondering if that would clear memeory and such and I get the same thing every time. No matter what build I try - the default one etc.

    Hope you can help. It took over 2 hours to get my first reply which was someone from billing telling me they were moving it to support. Not sure how my support ticket via WHM went to billing. I do not recall havign the option to choose departments.

    Anyhow, if you have any input it would be great as I have many sites down and Cpanel support shows no love...

    Thanks
    That indeed is a strange one - I dont' know if this would do anything, but try this:
    1. Log in to WHM
    2. Click on Tweak Settings
    3. Set the entry listed below to 256 MB if it isn't already set to that, and save.
    4. Then try your luck

    The maximum memory a cPanel process can use before it is killed off (in megabytes). Values less than 64 megabytes can not be specified.:

    Mike

  11. #11
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    THANK YOU! I was stuck and Cpanel is really slow right now. I hope this works

  12. #12
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by denisdekat09 View Post
    THANK YOU! I was stuck and Cpanel is really slow right now. I hope this works
    Well? Any luck?

    Mike

  13. #13
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    nope - i expanded that to 2000 and still same freaking error. Sadly Cpanel is not even looking at my ticket. All they did is revert to the last build - but each build I try messed that up so I go t no build.

    So sad inside

  14. #14
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by denisdekat09 View Post
    nope - i expanded that to 2000 and still same freaking error. Sadly Cpanel is not even looking at my ticket. All they did is revert to the last build - but each build I try messed that up so I go t no build.

    So sad inside
    Ok - might as well revert it back to whatever it was . Although should not be less than 128. I run some servers at 128 and some servers (x86_64 servers) at 256. It was worth a try.

    Mike

  15. #15
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    Well I am trying it just one more time since I seem to have so much time in between the Cpanel emails and all

    Expanded it to some fictional number like 2000000 - but I have a feeling it will not work no matter what.

    What would be nice is more than one email reply from Cpanel. So far I got one attempt at this issue, which is super urgent for me, and the ticekt has been opened for about 5 or so hours.

    I pray to the gods in the sky...

Similar Threads & Tags
Similar threads

  1. WHM/cPanel/Server crashes with .htaccess rewrite rule
    By pauleycreative in forum New User Questions
    Replies: 0
    Last Post: 08-10-2011, 04:13 AM
  2. WHM Function : List accounts crashes server
    By xerive in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 11-15-2006, 05:00 AM
  3. new install, crashes in whm
    By prodiac in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 12-07-2004, 10:11 PM
  4. Tomcat 4.0.3 build
    By blueshift in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 11-24-2002, 03:35 PM
  5. New Tomcat 4 Build
    By jsteel in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-11-2002, 10:15 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube