Tomcat "deleted" its work subdirectory.

Posted on 2004-11-02
Last Modified: 2012-06-27
I put deleted in quotes because that is what my client is claiming.  The users of the system were working this morning and getting error 500s when trying to access the jsp pages.  The error log was stating that it couldn't find the jsp pages.  They restarted Tomcat and everything was back to normal.  They are claiming that no users other than people using the Tomcat, were doing anything in the system.  So their conslusion is that Tomcat deleted the work directory.  Is that at all possible?  I know that if the work directory doesn't exist, the next time somebody restarts Tomcat, it will recreate it as well as compile any jsp pages that are run.  But I've never seen Tomcat delete the work area while still running.

Question by:techhound
    LVL 8

    Accepted Solution

    You can delete the folders manually under Work directory in Tomcat, but Tomcat never deletes the files/folders under work automatically. If you delete it manually, then when the Tomcat is restarted or even whenu access the .jsp's then tomcat will again put the compiled code by creating the folder for the web applications under work. the folders will be the same as the folders in Webapps directory and also the war's files under webapp.

    so you would be better off if you check with everyone having access to your tomcat machine!!!!!
    LVL 8

    Expert Comment

    Thanks buddy!!!

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting ( to http…
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now