-
1. Re: Multiple root contexts, virtual hosts
mobrules Apr 18, 2003 2:02 PM (in response to mobrules)Never mind, I figured it out.
-
2. Re: Multiple root contexts, virtual hosts
weliwarmer Apr 24, 2003 9:16 AM (in response to mobrules)Please post how you did it... I'm trying the same thing but via appliaction.xml in the ear.
Ta. -
3. Re: Multiple root contexts, virtual hosts
mpecher May 7, 2003 9:27 PM (in response to mobrules)place a jboss-web.xml into the WEB_INF directory or your web app with:
<jboss-web>
<context-root>/</context-root>
<virtual-host>www.acme.com</virtual-host>
</jboss-web>
When you then deploy your .ear or .war file, jboss will read this, and set your virtual mapping this way. -
4. Re: Multiple root contexts, virtual hosts
weliwarmer May 8, 2003 4:46 AM (in response to mobrules)Thanks. I also had to take the same paramters out of the application.xml or they over-wrote the jboss-web.xml.
-
5. Re: Multiple root contexts, virtual hosts
chaosindia76 May 16, 2003 10:58 AM (in response to mobrules)Hi,
I am trying to map my websites as follows using virtual host
www.abc.com --> /abc.ear
www.xyz.com --> /xyz.ear
my application.xml has
<display-name>ABC</display-name>
<web-uri>www.abc.com.war</web-uri>
<context-root>/</context-root>
<display-name>XYZ</display-name>
<web-uri>www.xyz.com.war</web-uri>
<context-root>/</context-root>
and my jboss-web.xml are as follows
<jboss-web>
<context-root>/</context-root>
<virtual-host>www.abc.com</virtual-host>
</jboss-web>
<jboss-web>
<context-root>/</context-root>
<virtual-host>www.xyz.com</virtual-host>
</jboss-web>
I added the jboss-web.xml into the WEB-INF directory for both the abc.com and xyz.com, but while deploying i get the following error
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.IllegalArgumentException: addChild: Child name '' is not unique)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
....
....
I am using jboss-3.0.4_tomcat-4.1.12,
anything wrong with this ?
any help would be greatly appreciated. -
6. Re: Multiple root contexts, virtual hosts
rsherfuddin May 16, 2003 11:12 AM (in response to mobrules)Can you please let me know how you did this?
Thanks. -
7. Re: Multiple root contexts, virtual hosts
chaosindia76 May 21, 2003 5:13 AM (in response to mobrules)Hi,
I aint been able to solve the problem yet, can you tell me how you did it ? -
8. Re: Multiple root contexts, virtual hosts
jovial Jul 2, 2003 12:33 AM (in response to mobrules)I'm using the same configuration in my jboss-web.xml
<jboss-web>
<context-root>/</context-root>
<virtual-host>www.acme.com</virtual-host>
</jboss-web>
where www.acme.com is the name of the virtual host defined in tomcat41-service.xml file.
but the application (myapp.war) context is still mapped to www.acme.com/myapp
why? how do i map it to the root context?
thanks,
dimitar -
9. Re: Multiple root contexts, virtual hosts
jovial Jul 2, 2003 12:42 AM (in response to mobrules)ignore my previous question. i was copying jboss-web.xml to the root of the web application instead to the WEB-INF directory.
it works just fine.
dimitar -
10. Re: Multiple root contexts, virtual hosts
frodeh Oct 8, 2003 8:25 AM (in response to mobrules)Where did you find the specs for the tomcat41-service.xml-file ?
Do you have an example ? (and where do you put it?)
Frode -
11. Re: Multiple root contexts, virtual hosts
frodeh Oct 9, 2003 1:03 AM (in response to mobrules)I found the answer... The file is jboss-service inside the tomcat-catalog.
The whole solution is here :
http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=