Monday 15 April 2013

java - How to update xml file in war file? -


I have a war that works in the production. I need to change the web.xml and then deploy me war file need to. Since we are changing XML files, there is no need for everyone .. But I do not have source code for making war files.

If the XML file changes which will work again? If so, how to prepare a war file at the command prompt?

WARs are zip files with only war as the extension, So you have to do this:

  • Remove war in some directories
  • web.xml to web-INF
  • Zip the directory contents into a file using the same file name as before.

    BTW, in your repackaged war to test some production-like environments, if you want to have an app running like this.

No comments:

Post a Comment