2 Replies Latest reply on May 12, 2003 5:49 AM by Alasdair

    Tomcat and Aliases on JBoss 3.2.1

    Alasdair Newbie

      Hi All,

      Can anyone one help out with a strange error I seem to get with JBoss, Tomcat and virtual hosts? I am having a problem associating virtual hosts with a name, like PC08859.corpuk.net and getting a war file to deploy against it.

      I have modified the jboss-service.xml file under the jbossweb-tomcat.sar directory to include the following in the config section:

      <!-- Access logger -->

      <!-- Default context parameters -->


      The jboss-web.xml file I put in the WEB_INF file of the WAR file, is thus:


      This file always deploys to the localhost directory! The only way I can change this behaviour, and allow it to run when with the PC08859.corpuk.net/index.html URL is to modify it to point to PC08859 in the <virtual-host> element of the jboss-web.xml file. (BTW, I have tried to duplicate the name as an alias, but with the same effect of deploying to localhost.)

      While not a killer, is there a way to get it to use the named host, to save me having to set up two or more names in DNS to allow it to work?

      Thanks in advance