When will we have this supported in 3.x ?
Michael Delamere wrote: > Hi, > > I found the following example in the jboss forum concerning virtual hosts. > This was posted by Jakob Kramer and written by Scott Stark. Jakob posted > that this works, however he didn�t do this via a connector and the apache > webserver. > > =============================================================== > <!-- The embedded Tomcat-4.x(Catalina) service configuration --> > <mbean code="org.jboss.web.catalina.EmbeddedCatalinaServiceSX" > name="DefaultDomain:service=EmbeddedCatalinaSX"> > <attribute name="Config"> > <Server> > <Service name = "JBoss-Tomcat"> > <Engine name="MainEngine" defaultHost="localhost"> > <Logger className = "org.jboss.web.catalina.Log4jLogger" > verbosityLevel = "trace" category = > "org.jboss.web.localhost.Engine"/> > <Host name="localhost"> > <Valve className = > "org.apache.catalina.valves.AccessLogValve" > prefix = "localhost_access" suffix = ".log" > pattern = "common" directory = "../jboss/log" /> > <DefaultContext cookies = "true" crossContext = "true" > override = "true" /> > </Host> > > > <Host name="succubus"> > <Alias>www.starkinternational.com</Alias> > <Alias>main.starkinternational.com</Alias> > <Valve className = > "org.apache.catalina.valves.AccessLogValve" > prefix = "succubus_access" suffix = ".log" > pattern = "common" directory = "../jboss/log" /> > <DefaultContext cookies = "true" crossContext = "true" > override = "true" /> > </Host> > </Engine> > > > <!-- A HTTP Connector on port 8080 --> > <Connector className = > "org.apache.catalina.connector.http.HttpConnector" > port = "8080" minProcessors = "3" maxProcessors = "10" > enableLookups = "true" > acceptCount = "10" debug = "0" connectionTimeout = "60000"/> > </Service> > </Server> > </attribute> > </mbean> > > > A war deployed to the virtual host succubs under the root context > needs to include a WEB-INF/jboss-web.xml descriptor with: > > > <jboss-web> > <context-root>/</context-root> > <virtual-host>succubus</virtual-host> > </jboss-web> > ======================================================================= > > I�m using the mod_webapp adapter which appears to be working fine. In > apache I created a virtual host pointing to my "/www/servtest/java" > directory. In this directory I have also got my deploy directory for that > virtual host and have stated this in the jboss.jcml. > > The output when starting tells me that the directory is being watched, so > far so good: > > [INFO,AutoDeployer] Watching directory: > /usr/local/java/jboss2.4.5/jboss/deploy > [INFO,AutoDeployer] Watching directory: > /usr/local/java/jboss2.4.5/jboss/deploy/lib > [INFO,AutoDeployer] Watching directory: /www/servtest/java/deploy > > However, It doesn�t actually deploy the application in: > /www/servtest/java/deploy. > > Then when I restart Apache I get the following error messages: > =============================================================== > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection > from /127.0.0.1:1091 to /127.0.0.1:800 > 8 > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection > from /127.0.0.1:1092 to /127.0.0.1:800 > 8 > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] > Cannot find "/usr/local/java/jboss2.4. > 5/catalina/webapps/jboss" for appl. "jboss" host > "servtest.intern.delamere.de" > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] > Error deploying web application "jboss > " under <http://servtest.intern.delamere.de:80/jboss/> > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] > Cannot find "/usr/local/java/jboss2.4. > 5/catalina/webapps/jboss" for appl. "jboss" host > "servtest.intern.delamere.de" > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] > Error deploying web application "jboss > " under <http://servtest.intern.delamere.de:80/jboss/> > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection > from /127.0.0.1:1093 to /127.0.0.1:800 > 8 > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] > Cannot find "/usr/local/java/jboss2.4. > 5/catalina/webapps/jboss" for appl. "jboss" host > "servtest.intern.delamere.de" > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] > Error deploying web application "jboss > " under <http://servtest.intern.delamere.de:80/jboss/> > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection > from /127.0.0.1:1094 to /127.0.0.1:800 > 8 > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection > from /127.0.0.1:1095 to /127.0.0.1:800 > 8 > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] > Cannot find "/usr/local/java/jboss2.4. > 5/catalina/webapps/jboss" for appl. "jboss" host > "servtest.intern.delamere.de" > [ERROR,Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] > Error deploying web application "jboss > " under <http://servtest.intern.delamere.de:80/jboss/> > > ======================================================================= > I would appreciate any help on this matter because it is becoming > increasingly frustrating! > Has anyone actually tried this? Or does the virtual host capability only > work without apache, i.e. only with jboss+catalina? > > Thanks in advance > > Michael Delamere > > > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
