This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
In Eclipse I have a project where in the build path under the Libraries tab there is listed Apache Tomcat v6.0 [Apache Tomcat v6.0] because in the Tomcat\lib directory there are a number of jars that pertain to this project. I have updated one of the jars in this library. However, when I'm using the debugger in Eclipse and I reference the compiled class in this jar it does not show the updated class where I added 4 lines of code and that I exported out to this jar. I have verified that the jar that I exported to this directory contains the updated class in the jar but again, the debugger appears to show a non-updated class from somewhere else.
Does Tomcat cache in some way files in the lib directory?
Any suggestions or direction would be greatly appreciated.
My apologies - but I'm not sure how my problem was resolved. All I did was try to export the JAR again to the Tomcat\lib directory and then I was able to see it in Eclipse. Unfortunately, I cannot tell you what resolved the issue. I just did it again.
Ah. Also, FWIW, be cautious about putting application-specific libraries in the Tomcat lib directory--this can cause problems with just a single application, but with multiple applications, the situation becomes much worse when different versions of the same library are required. In general, deploy application libraries with the application.