[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 643
  • Last Modified:

WAR file undeployable because of issue with deployment descriptor

I copied a whole project from a production folder where it is stored as the exploded form of the war file that is deployed on the server.

I just had to change one sql file in that exploded structure. It was done. Then came the time to make a war file out of the copied and then changed folder structure. I merely used Winzip to make a zip file and replaced the extension. zip with .war

Tried to deploy it but it results in an error messsage:

[J2EE:160043]Missing deployment descriptor "WEB-INF/web.xml" at "D:\tools\weblogic\domains\onl81\Admin\upload\ECareSurveyAgentSummaryTemp.war"

I have attached the snapshot but I am very confident you guys already know where to attack this problem from. Also attached is the WEB-INF/web.xml.  Just had to change the extension from .xml to .txt so that I could upload it.

Thank You
1.JPG
web.txt
0
perfect_tranquility
Asked:
perfect_tranquility
  • 2
  • 2
1 Solution
 
rajesh_balaCommented:
So basically 2 issues.

1. Dont directly change anything in upload directory. You might see unwanted results. If you are on production, hope you would have turned on PRODUCTION_MODE=true in setDomainEnv.sh/setDomainEnv.cmd. In this case, you would not be able to do automatic deployments by just placing some war file in some directory.

2. Use jar utility instead of winzip.

Coming back to steps to follow :

Precondition : You have copied original exploded war files somwhere and made appropriate modifications and named this directory as ECareSurveyAgentSummaryTemp

1. Let us assume you have a folder ECareSurveyAgentSummaryTemp in which all your exploded details are there and assume you want to deploy this.
2. get into command prompt. Navigate to this ECareSurveyAgentSummaryTemp directory.
3. Run "jar -cvf ECareSurveyAgentSummaryTemp.war ." (Remember there is a DOT at the end of the mentioned command. Meaning, war all the contents of this directoy)

Once war is created, you can undeploy your old contents through console, and redeploy this new war.

~Rajesh.B
0
 
perfect_tranquilityAuthor Commented:
Thanks a million Rajesh

Roopesh
0
 
perfect_tranquilityAuthor Commented:
Thanks a million Rajesh

Roopesh
0
 
rajesh_balaCommented:
:).

~Rajesh.B
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now