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 install freezes

Discussion in 'cPanel Developers' started by iwdev, Apr 13, 2005.

  1. iwdev

    iwdev Member

    Joined:
    Mar 5, 2003
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I'm trying to install Tomcat via the Addon Modules area, but the install seems to freeze part-way through the license (it stops printing text in section E of the license agreement). I've left it 'loading' in the browser for 15 minutes and it never gets any further.

    Has anyone else had this problem, or does anyone know of a way to run the install via the shell without interfering with CPanel?

    EDIT: This is on a CentOS 3 server
     
  2. iwdev

    iwdev Member

    Joined:
    Mar 5, 2003
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Never mind, sorted it.

    I found the install script in /usr/local/cpanel/modules-install/tomcat-Linux-i686 and ran it through ssh. It was getting stuck trying to overwrite the jdk1.5.0_02 folder (in /usr/local) so I removed that and ran the install again.
     
  3. denisdekat09

    denisdekat09 Well-Known Member

    Joined:
    Mar 2, 2002
    Messages:
    265
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Francisco
    thanks for posting your solution :) I once asked Billy at Cpanel if there was a way to do it manually and he said no, goes to show...
     
  4. baldor

    baldor Active Member

    Joined:
    Oct 3, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1

    i had the same problem, this solution is working. thanks for writing. :cool:
     
  5. iwdev

    iwdev Member

    Joined:
    Mar 5, 2003
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    No worries - I know how irritating it is to find a thread where someone had the same problem as you then just says "fixed it" which doesn't really help hehe.
     
  6. scapeweb

    scapeweb Well-Known Member

    Joined:
    Aug 16, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    :)

    Yea, i went ahead and deleted the folder on SSH, then under WHM i did the install and wow it worked.. Thanks a lot iwdev
     
  7. KeithRocheck

    KeithRocheck Member

    Joined:
    Sep 14, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I had this exact problem ... deleting the old java folder cleared up the problem!
     
  8. rip_curl

    rip_curl Well-Known Member

    Joined:
    Jan 30, 2005
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    6
    in installation via ssh I've seen this:

    cp: cannot create regular file `/usr/local/jakarta/tomcat/samples': No such file or directory
    cp: cannot create regular file `/usr/local/jakarta/tomcat/samples': No such file or directory
    cp: cannot create regular file `/usr/local/jakarta/tomcat/samples': No such file or directory

    what does it means? :eek:
     
  9. bamboogi

    bamboogi Registered

    Joined:
    Jun 13, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I had a problem deleting the folder... would not give access... here is the solution
    rm -f -r -d jdk1.5.0_02 -----this will delete the folder contence.
     
  10. patrick24601

    patrick24601 Member

    Joined:
    Sep 20, 2004
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    bump on this. That install folder

    /usr/local/cpanel/modules-install/tomcat-Linux-i686

    is not present on my machine. But the WHM install is still freezing. This is after a previous install and uninstall.

    UPDATE: I did get rid of the jdk install. But I still like to know where the install script is.
     
    #10 patrick24601, Jun 19, 2005
    Last edited: Jun 19, 2005
  11. dlm75

    dlm75 Registered

    Joined:
    Apr 26, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    tomcat


    Use whm to unisntall and reinstall. the script is only added once you select the tomcat addon and save. Once the cpanel script runs, it adds the directories.
     
  12. cynux

    cynux Well-Known Member

    Joined:
    Jul 30, 2005
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    I had the problem, and this is what i did to fix it.

    Code:
    1. Un-install Tomcat from the addons section in WHM
    2. then rename "/usr/local/jdk1.5.0_02" to somthing else.
    3. Install Tomcat from WHM
    
    Yipeee!!!!!!!!!!! and it works.... :cool:
     
    #12 cynux, Aug 8, 2005
    Last edited: Aug 8, 2005
  13. cynux

    cynux Well-Known Member

    Joined:
    Jul 30, 2005
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16

    /usr/local/cpanel/modules-install/tomcat-Linux-i686
     
  14. russellhosting

    russellhosting Active Member

    Joined:
    Jun 19, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    6
    I was having the same problem after an upgrade last night, and have followed the instructions here, but I am still having issues.

    After the tomcat installation in WHM shows success, the sites with JSP are just showing an internal server error and the tomcat admin page isn't responding either.

    Any ideas?
     
  15. cynux

    cynux Well-Known Member

    Joined:
    Jul 30, 2005
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    check your httpd.conf file for errors.

    if you still cant fix it... un-install tomcat then remove all tomcat fucntions from your httpd.conf file and then install tomcat again...
     
  16. cynux

    cynux Well-Known Member

    Joined:
    Jul 30, 2005
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    and dont forget to backup the file, before you start editing
     
  17. russellhosting

    russellhosting Active Member

    Joined:
    Jun 19, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    6
    Yeah I have already done all of that...
     
  18. sumith

    sumith Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    96
    Likes Received:
    2
    Trophy Points:
    8
    Tomcat service cannot be started

    Yes, I have installed Tomcat successfully, but the tomcat service cannot be started. I tried the same both from WHM and via SSH, but no use. Any ideas?
     
  19. raxafarian

    raxafarian Member

    Joined:
    Aug 29, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    same problem. Tomcat installs ok (after deleting the directory mentioned above) but is always 'failed' and cannot be started.
     
  20. raxafarian

    raxafarian Member

    Joined:
    Aug 29, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    well... I got tomcat started.

    went to /usr/local/jakarta/tomcat/bin

    and ran:
    ./catalina.sh run

    not sure if this is the 'correct' way, but it's up and running and those annoying 'failed' emails have stopped.
     
Loading...

Share This Page