WAR file undeployable because of issue with deployment descriptor

Posted on 2009-04-30
Last Modified: 2013-12-10
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
Question by:perfect_tranquility
    LVL 10

    Accepted Solution

    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 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.


    Author Comment

    Thanks a million Rajesh


    Author Closing Comment

    Thanks a million Rajesh

    LVL 10

    Expert Comment



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
    In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now