3 Replies Latest reply on Mar 25, 2009 4:03 PM by jessev

    Configure <Context on server.xml file

      Hi, i'm trying to configure different Context for the same Viritual Host in the server.xml file. In the docBase property i'm trying to use an .ear file instead an .war

      Does anybody know if that is possible?

      Also, if i use the path property of the Context tag in the server.xml file and the war files have also the <context-root tags on their jboss-web.xml file which will have priority for jboss?

      Thanks. Martin.

        • 1. Re: Configure <Context on server.xml file

          I think I need the same thing.

          I have servername.domain.com:8080/application-name working for a deployed web app. I want to reach that url with application-name.domain.com. DNS and host files have been updated to allow for this.

          I followed these instructions:
          http://www.jboss.org/community/docs/DOC-12549

          And got it to work for the jmx console. So I modified the application's jboss-web.xml to have

          <context-root>/</context-root>
          <virtual-host>application-name.domain.com</virtual-host>

          and it didn't work.

          I can do this no problem in tomcat, by simply modifying $CATALINA_BASE/conf/server.xml to have:

          Host name="application-name" appBase="webapps"
          unpackWARs="true" autoDeploy="true"
          xmlValidation="false" xmlNamespaceAware="false">
          Context docBase="$CATALINA_BASE/webapps/application-name"
          path="" reloadable="true" debug="0"/>
          /Host>

          The open brackets were removed so it'd show in the post.

          Is that what you were trying to do Martin?

          Can anyone help with my issue?

          • 2. Re: Configure <Context on server.xml file

            ^ for JBoss5 btw

            • 3. Re: Configure <Context on server.xml file

              I take part of what i said back, modifying the application's jboss-web.xml works but I'd like to have it set somewhere outside of the application. What can be done on the server side like it was for tomcat?