Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat is holding reference to application jars

 
AmitDBond Sethi
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using apache-tomcat-6.0.20. I am using tomcat manager to undeploy the application.

<target name="undeployfromlocal" description="Remove web application">
<undeploy url="http://localhost:8080/manager" username="tomcat" password="s3cret" path="/contextName"/>
</target>

When I want to undeploy the application. I am able to clear every thing from webapp with the above ant target, except the 2 jars from WEB-INF/lib folder.
jaxb-impl.jar
sqljdbc4.jar

I need to stop the tomcat service to clean these two jars. I suspect that the container is some how holding the reference of these two jars (There is no other application loaded on the same tomcat).

I am also getting frequest Out of memory error, I am not sure if both the problems are related.

Could some one please help me in investigating this issue.


Thanks and Regards,
Amit Sethi

 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer to your first question is in the Tomcat FAQ
As for your OutOfMemoryError, is it occurring while the application is running or is it after several redeploys?
If you are getting it during the course of normal operations, we have a FAQ, InvestigateOutOfMemoryError that will help you get started fixing it.
If you are getting it after several redeploys, see this article about why it happens.
 
AmitDBond Sethi
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe, You were spot on. I was able to get rid of the issue by using <Context antiJARLocking="true" antiResourceLocking="true"> in the conf\context.xml Now the jars are not getting locked.
Thanks a lot.
I will check for the other issue now (Out Of Memory Error).

Thanks and Regards,
Amit Sethi
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic