Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
None
-
None
-
None
-
3.1-SNAPSHOT
JBoss 4.0.5 / Tomcat 5.5
Description
In order to perform load balancing while allowing multiple subscribers, we have to deploy 2 Magnolia public instances.
Each instance has to be is bound to 2 virtual host names - one for loadbalancing purposes and one for subscription purposes
For example
node1 - vhosts:
+site.company.org
+site01.company.org
node2 - vhosts
+site.company.org
+site02.company.org
With this setup a load balancing hardware (like Cisco Content Switch) can use site.company,org to perform load balancing while each individual instance can still be accessed using either site01 or site02 vhost.
Vhosting is used to allow multiple apps on the same server to have root context (deployed under /)
-----SETUP TO REPRODUCE EXCEPTION (JBoss 4.0.5) ----
1. add new Host entry to <jboss_root>/server/all/deploy/jbossweb-tomcat55.sar/server.xml.
Hhere is an example
<Host name="fn0161.company.org" autoDeploy="false" deployOnStartup="true" deployXML="false">
<Alias>fn0161</Alias>
<Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="fn0161.company.org-"
suffix="-access_log"
pattern="%h %v %u %t "%r" %s %b "%
i" "%
{User-Agent}i" "%
{Cookie}i""
directory="${jboss.server.log.dir}/access"
rotatable="true"
fileDateFormat="yyyy-MM-dd"
resolveHosts="false" />
</Host>
2. Add jboss-web to WEB-INF/ folder of the webapp.
Here is an exmple
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
<jboss-web>
<context-root>/</context-root>
<virtual-host>fn0161.company.org</virtual-host>
<virtual-host>localhost</virtual-host>
</jboss-web>
The above setup will allow Magnolia to be deployed under root context "/" and only under 2 virtual hosts - "localhost" and "fn0161"
After restart the exception is thrown (see attached log file).
If one of the vhosts is removed, everything is fine....