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:
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.
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.
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.