2 Replies Latest reply on Nov 2, 2001 2:26 PM by JLearn

    Can a war file deployed on jboss be context sensitive?

    JLearn Newbie

      I use JBoss-2.2.2_Tomcat-3.2.2. I deploy a war file (hello.war) by coying it into to the jboss/deploy directory. It deploys fine. However it automatically creates a context called "hello" based on the name of the war file.
      So I can access a servlet "SampleServlet" inside the war by the URL:
      Instead, I would like to access the servlet as:
      http://localhost:8080/servlet/SampleServlet i.e. configure the war to a context "/". When I copy to the jboss/deploy, it is deployed ok but not copied into the /webapps directory. This is fine with me as it would enable me to hot deploy without restarting the server. I am trying to figure out how to change the context of the war file deployed in the above manner. Does anyone know of a solution?
      I tried out adding the following to server.xml, did not help: