-
1. Re: Configuring a default (root) context (again)
forkbomb Nov 5, 2003 1:29 PM (in response to erizzo)I have successfully done it using Tomcat, not sure about Jetty. See if this works for you:
Create a jboss-web.xml file in your WEB-INF directory with the following contents:
<?xml version="1.0"?>
<!DOCTYPE jboss-web>
<jboss-web>
<context-root>/</context-root>
</jboss-web> -
2. Re: Configuring a default (root) context (again)
erizzo Nov 5, 2003 3:11 PM (in response to erizzo)I'll be damned - that was one of the things I tried without success. But it is doing the trick now. Perhaps I put it in META-INF by accident instead of WEB-INF... I don't know what I did wrong before, but I'm glad you suggested to try it again.
Actually, I doing it without the DOCTYPE declaration in jboss-web.xml, but I doubt that matters.
Thanks,
Eric -
3. Re: Configuring a default (root) context (again)
crepindany Nov 20, 2003 6:44 AM (in response to erizzo)Does the name of the war file matter?
Since what version does it work? I'm still using JBoss3.0.4_Tomcat-4.1.12 and it doesn't work. -
4. Re: Configuring a default (root) context (again)
jonlee Nov 20, 2003 7:39 AM (in response to erizzo)Check the DTD for jboss-web in your system - probably in docs but I can't remember if there was a docs/dtd directory supplied with 3.0.x. According to the jboss-web_3_0.dtd supplied with JBoss 3.2.2, the element should be supported at some point in 3.0.x, I just don't know which version it was introduced.