Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    35

    Default Tomcat restart after context changes

    Hi,
    I am running Tomcat 3.2.4 on my Cpanel server. I have following problem:
    Whenever the user changes any of his class files, I have to restart the Tomcat for the changes to take effect.
    When he adds a new file, this file is immediately working, but when he changes an existing file, I have to restart the Tomcat for the context changes to work.
    I am a newbie in this area, and I'd be happy if anybody could give me suggestions how to fix this. I've read in one post that the solution would be to set up a cron job to restart Tomcat for example every 5 minutes, but I don't think this is the smartest thing to do.
    Here's an example of entry in my server.xml config file:

    <Host name="www.$domain.com" appBase="/home/$domain/public_html/">
    <Context path="/"
    docBase="/home/$domain/public_html/"
    reloadable="true"
    debug="1"
    />
    </Host>

    Thanks a lot for any help or suggections.

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

    Default

    I had a cron job set up for restarting at 2 am every day. I told my customers that they would see the changes reflected after the restart.

    Recently I upgraded to 4.1.12, so I hope that I don't have to restart it anymore...

  3. #3
    Member
    Join Date
    Aug 2003
    Posts
    35

    Default

    Casey,

    thanks for input. I guess I'm not the only one with this problem.
    Unfortunatelly, this is not solution for me. Client is developing and testing constantly, he needs to see changes instantly.

    how is it with version 4.1.12?
    do I need to uninstall the old version to upgrade, or can I simply install it over the old one?


    Any other suggestions?

    Thanks!

Similar Threads & Tags
Similar threads

  1. Tomcat Restart
    By gtf in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-14-2009, 12:47 PM
  2. Tomcat, need Resource element in Context
    By jerrek71 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-27-2009, 12:43 AM
  3. Need tomcat restart previllages for reseller
    By mail2sacp in forum New User Questions
    Replies: 3
    Last Post: 01-26-2008, 12:58 AM
  4. How can I let a user restart Tomcat safely?
    By brianteeter in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-20-2006, 12:26 PM
  5. resellers being able to restart tomcat
    By Diatone in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-15-2004, 12:52 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube