[jboss-jira] [JBoss JIRA] Commented: (JBAS-3918) jbossweb virtual-host processing not working

Darran Lofthouse (JIRA) jira-events at lists.jboss.org
Thu Jul 10 06:57:27 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBAS-3918?page=comments#action_12420793 ] 
            
Darran Lofthouse commented on JBAS-3918:
----------------------------------------

Recent testing of this issue and the behaviour now appears as follows.

1 - Add a new Host entry in the server.xml: -

         <Host name="internal_server"> 
            <Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"
                cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
                transactionManagerObjectName="jboss:service=TransactionManager" />
         </Host>

This is now processed - check JMX console - there will be no entry for 'internal_server'.

2 - Deploy a web application for this virtual host: -

<jboss-web>
	<virtual-host>internal_server</virtual-host>
</jboss-web>

The following warning will be logged: -

  11:55:32,475 WARN  [TomcatDeployment] Failed to map vhost: internal_server

The virtual host is created and the web app deployed.  However I believe this is without the settings specified in the server.xml


SVN Info: -

URL: https://svn.jboss.org/repos/jbossas/trunk
Revision: 75555



> jbossweb virtual-host processing not working
> --------------------------------------------
>
>                 Key: JBAS-3918
>                 URL: http://jira.jboss.com/jira/browse/JBAS-3918
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (Tomcat) service
>    Affects Versions: JBossAS-5.0.0.Beta1
>            Reporter: Scott M Stark
>         Assigned To: Jean-Frederic Clere
>             Fix For: JBossAS-5.0.0.CR2
>
>
> Add a Host entry to the deployers/jbossweb.deployer/server.xml as described in the 4.0.x section of:
> http://wiki.jboss.org/wiki/Wiki.jsp?page=VirtualHosts
> for example:
>          <Host name="succubus-vhost"
>             autoDeploy="false" deployOnStartup="false" deployXML="false">
>             <Valve className="org.apache.catalina.valves.AccessLogValve"
>                prefix="succubus-vhost" suffix=".log"
>                pattern="common" directory="${jboss.server.home.dir}/log"/>
>          </Host>
> add a virtual-host entry to the jmx-console.war/WEB-INF/jboss-web.xml:
> <jboss-web>
>   <virtual-host>succubus-vhost</virtual-host>
> </jboss-web>
> and try to access the jmx-console using succubus-vhost:
> [starksm at succubus Security]$ wget http://succubus-vhost:8080/jmx-console/index.jsp
> --08:21:41--  http://succubus-vhost:8080/jmx-console/index.jsp
>            => `index.jsp'
> Resolving succubus-vhost... 192.168.10.10
> Connecting to succubus-vhost|192.168.10.10|:8080... connected.
> HTTP request sent, awaiting response... 400 No Host matches server name succubus-vhost
> 08:21:41 ERROR 400: No Host matches server name succubus-vhost.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list