2 Replies Latest reply on Oct 10, 2002 9:46 PM by sgturner

    <context-root> .. again, sorry

    nusa

      Hi,

      I'm a bit confuse about the EAR, WAR, <context-root> in application.xml and jboss-web.xml.
      OK, as far as I know, the structure of an EAR ( name it j2ee-app.ear ) is :
      j2ee-app.ear
      |-----j2ee-app.jar ( this is where the java classes )
      |-----j2ee-app.war
      |-----META-INF/application.xml
      |-----META-INF/ejb-jar.xml
      `-----META-INF/jboss.xml

      and the structure of that WAR is :
      j2ee-app.war
      |-----< any HTML files or JSP files >
      |-----images
      |-----WEB-INF/web.xml
      |-----WEB-INF/jboss-web.xml
      |-----WEB-INF/classes
      `-----WEB-INF/lib

      ( I think this may be set as well : WEB-INF/struts-config.xml, WEB-INF/tiles-defs.xml, and WEB-INF/web-service.xml ).

      Both application.xml and jboss-web.xml have <context-root> element.

      Here are my questions :
      1. why that element exists in those two files ?
      2. how to use it if I want to access to http://azerty.org/
      3. how to use it if I want to access to http://azerty.org/home.html


      Thanks a lot for any help.