[jboss-jira] [JBoss JIRA] (AS7-4624) Virtual-host from jboss-web.xml not applied to deployments

Stefan Negrea (JIRA) jira-events at lists.jboss.org
Wed Apr 25 09:50:18 EDT 2012


Stefan Negrea created AS7-4624:
----------------------------------

             Summary: Virtual-host from jboss-web.xml not applied to deployments
                 Key: AS7-4624
                 URL: https://issues.jboss.org/browse/AS7-4624
             Project: Application Server 7
          Issue Type: Bug
            Reporter: Stefan Negrea
            Priority: Critical


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 at localhost:9999 subsystem=web] pwd
/deployment=hellothere.war/subsystem=web
[standalone at localhost:9999 subsystem=web] :read-resource
{
    "outcome" => "success",
    "result" => {
        "context-root" => "/hellothere",
        "servlet" => undefined,
        "virtual-host" => "default-host"
    },
    "response-headers" => {"process-state" => "reload-required"}
}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list