wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat 7 reload jar file without redeploy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7 reload jar file without redeploy" Watch "Tomcat 7 reload jar file without redeploy" New topic
Author

Tomcat 7 reload jar file without redeploy

Eric Stein
Greenhorn

Joined: Feb 22, 2012
Posts: 8

Hi,

I've got a J2EE WebApp running in Tomcat 7. The .war references a .jar file in its /lib directory. Is there any way to get Tomcat to reload that .jar file without doing a full redeploy of the web app?

Thanks,
Eric

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961
    
  19

I wouldn't get my hopes up.

Allowing for the fact that the auto-redeploy facility isn't that fine-grained, there's too much chance for problems due to things like static elements within the jar's classes. That's been known to cause problems even with less ambitious attempts to do hot updates.


Customer surveys are for companies who didn't pay proper attention to begin with.
Eric Stein
Greenhorn

Joined: Feb 22, 2012
Posts: 8

Oh, I'm not. I've been playing with NetBeans Lookup in Tomcat, and I was hoping I could pair the two to get new functionality without having to bounce the app. Lookup can monitor the classpath for the addition or removal of classes which implement a specific interface. I didn't figure it would work, but there's no harm in asking.

Thanks,
Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 7 reload jar file without redeploy
 
Similar Threads
Pro Jakarta Struts, Second Edition : Development Question
How to reload an ini file without restarting weblogic 7.0 ??
overwrite the class file
Undeploy context
Redeploy