WAR file where to place

Discussions

Web tier: servlets, JSP, Web frameworks: WAR file where to place

  1. WAR file where to place (5 messages)

    Hi
       Accoring to servlet 2.2 api we have to use WAR file
    Under which dir we have to place.
    bye
    Ramasubramanian.

    Threaded Messages (5)

  2. It depends on the application server you are using

    In Tomcat, put it in the directory webapps (you have also to create a Servlet Context in the conf/server.xml file)

  3. Hi
        Thanks for reply.
      create servletcontext in server.xml what do you mean
    by that?

    bye
    Rama
  4. Create an entry in the server.xml file of the kind

      <Context path="/yourapp"
                     docBase="webapps/yourapp"
                     crossContext="false"
                     debug="0"
                     reloadable="true" >
            </Context>
  5. Hi Diego
            I got it thanks
    bye
    Rama
  6. I rather thought webapps was "special" and that Tomcat created a servlet context for each file under there automatically.

    Chz

    Tony