Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4624

Virtual-host from jboss-web.xml not applied to deployments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 7.1.2.Final (EAP)
    • None
    • Web

    Description

      Using a standalone server, deployed a war with jboss-web.xml. The jboss-web.xml had only one entry for virtual-host (but it was not the default one). The virtual host was defined on the server prior to the deployment. The virtual-host setting was not applied correctly and the web subsystem under the deployment was reporting virtual-host as 'default-host'.

      The sample jboss-web.xml used:
      <jboss-web>
      <virtual-host>test</virtual-host>
      </jboss-web>

      CLI output:

      [standalone@localhost:9999 subsystem=web] pwd
      /deployment=hellothere.war/subsystem=web
      [standalone@localhost:9999 subsystem=web] :read-resource
      {
      "outcome" => "success",
      "result" =>

      { "context-root" => "/hellothere", "servlet" => undefined, "virtual-host" => "default-host" }

      ,
      "response-headers" =>

      {"process-state" => "reload-required"}

      }

      Attachments

        Activity

          People

            rhn-engineering-jclere Jean-Frederic Clere
            nstefan_jira Stefan Negrea (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: