Summary: | After startup seeing java.io.FileNotFoundException:<file path>/tldcache.ser (No such file or directory) | ||
---|---|---|---|
Product: | Tomcat 5 | Reporter: | Samuel Mendenhall <smendenh> |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | P2 | ||
Version: | 5.5.23 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: |
patch for TC 5.5
patch for TC 6 |
Description
Samuel Mendenhall
2009-11-11 11:10:14 UTC
5.5.x tries to write the TLD cache to the work directory. This gets created if ti doesn't exist. At a guess, I'd say the Tomcat process doesn't have the necessary permissions to create the work directory structure. Please follow up on the users list of you need more assistance. There is a minor issue there: This exception in TldConfig.execute(), and also one in TldConfig.processCache(), are processed with ex.printStackTrace(); Something like log.warn("Failed to write tldCache.ser file", ex); would provide a better context for this message. This applies only to 5.5. In 6.0 the same code is also present, but it is never called (as tldCache is always null there), and thus can be removed instead of trying to fix it. Created attachment 24918 [details]
patch for TC 5.5
Patch for TC 5.5 that
- logs TLD cache reading and writing errors
- if reading a TLD cache fails continues TLD scanning, instead of quiting
Created attachment 24919 [details]
patch for TC 6
Patch for TC 6.0 that removes code responsible for reading and writing the TLD cache file, because it is never called. (tldCache is always null)
Proposed the patches for 5.5 and 6.0. This has been fixed in 6.0.x and will be included in 6.0.25 onwards. |