Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applying patch in java web application

 
Abhi Agg
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic