How to deploy a web application in a war format

Discussions

EJB programming & troubleshooting: How to deploy a web application in a war format

  1. How to deploy a web application in a war format (3 messages)

    Hello,
    I have deployed a web application in an expolded directory format and it is working fine but when i make a war file of it and try to deploy it is not running.When i unjar all the files and gain deploy in exploded directory format agian it is not working fine but waht's wrong with the war file.
    Plz let me know how to deploy a war file and through which url should i call it.
    show some light on it
    Thanks in advance
  2. Sorry i mean when i unjar all the files and again deploy in exploded directory format it is working fine but when i pack it into war file it does not run why??
  3. Hi,
     Can you post your web.xml file?
    Rama
  4. Here is the web.xml.Since the application does not have any servlets,EJB(only jsps,html and java beans are used) so just display tag is used in web.xml.
    web.xml:-)
    <?xml version="1.0" ?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <display-name>fcx</display-name>
      </web-app>

    Thanks in advance