This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Applying patch in java web application 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 "Applying patch in java web application" Watch "Applying patch in java web application" New topic
Author

Applying patch in java web application

Abhi Agg
Greenhorn

Joined: Dec 22, 2008
Posts: 2
I have web application deployed in tomcat.
I need to provide way to apply patches(bug fixes) by just copying the patched jar files in some patch folder.
How to override the loading of regular WEB-INF/lib jar file with the CATALINAHOME/patch jar file?

Thanks,
Abhi
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
It makes no sense to fiddle with a patch folder, just stop the application, replace the jar files directly and restart the application.

The Tomcat management app has simple commands to start and stop applications.

Bill
Abhi Agg
Greenhorn

Joined: Dec 22, 2008
Posts: 2
Actually our product is deployed using tomcat and customer is directly using it.
So it would be tough and confusing for user to navigate through the webapp directory structure and apply the patch.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
Are you saying that the users are creating patches for the software supplied by your company? That's rather an unusual way of doing things, isn't it?


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Applying patch in java web application
 
Similar Threads
Java source files security
Not able run mysql based jdbc program
how to refer a jar outside executable in desktop application?
JSP cannot call Servlet
Servlet 2.3 not supported by Websphere 4.0 .. solution?