I am trying to deployin a .war file from my computer after modifing one file
I Extract the file META-INF/context.xml using :
jar xf ROOT.war META-INF/context.xml
I added some code lines to the file Context.xml
I Update the war file with modified META-INF/context.xml using this command :
jar uf ROOT.war META-INF/context.xml
But i get this ERROR :
at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:232)
at java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:109)
at sun.tools.jar.Main.update(Main.java:635)
at sun.tools.jar.Main.run(Main.java:271)
at sun.tools.jar.Main.main(Main.java:1288)```
Any Ideas, please!
Hello to all I come back to you after my question,
I managed to deploy a war with zip. and jar too,
Indeed my error is due to the fact that there are two jar files in /lib that have the same name (weird),
I deleted the files then I copy/paste only one and it worked.
with zip i used this steps :
1: unzip ROOT.war META-INF/context.xml
2: zip ROOT.war META-INF/context.xml