0 Replies Latest reply on Oct 21, 2005 1:22 PM by Ivan Latysh

    JBoss bound web applications to localhost ignoring tomcat co

    Ivan Latysh Newbie

      I am running JBoss on virtual server.
      My server is `myserver.mydomain.com`.

      I changed config for jbossweb-tomcat55.sar/server.xml and set:

      <Engine name="jboss.web" defaultHost="myserver.mydomain.com">
      ....
       <Host name="myserver.mydomain.com" ....

      localhost host has been removed.

      After I started the server I still can access localhost where JBOSS default ROOT application is. That's Ok, but since I configured Tomcat to use `myserver.mydomain.com` as default server I should be able to access my application on this URL . But it doesn't work. JBoss ignores Tomcat configuration and bind my application to non existing `localhost`.

      web-console tells me that my applications mapped to:
      localhost/ws4ee
      localhost/web-console
      localhost/jbossmq-httpil
      localhost/myapp
      localhost/invoker
      localhost/jmx-console
      localhost/


      IMHO JBoss should honor jbossweb-tomcat55.sar/server.xml and bind applications to `myserver.mydomain.com` as I defined.

      I know that if I define in jboss-web.xml :
      <virtual-host>myserver.mydomain.com</virtual-host>

      Application will be mapped to this virtual host.


      But my point is:
      Application should be mapped to default host (configured in tomcat/server.xml)
      But NOT
      To localhost by default.