[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

Tomcat "deleted" its work subdirectory.

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.

Thanks
0
James Cochrane
Asked:
James Cochrane
  • 2
1 Solution
 
kiranhkCommented:
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!!!!!
0
 
kiranhkCommented:
Thanks buddy!!!
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now