Try editing the web.xml file located in the
directory. Within the definition, change:
This worked for me but I am not using Struts so I'm not sure if it will work for you.
No, I tried that already and it doesn't work.
thanks for making me aware of this issue :-)
I found a hack to solve your (and my newly discovered) issue:
In your Web-App you should add to your web.xml a modified default servlet (if you use the ant build procedure supposed by JBoss the filename in your source tree the file is src\etc\WEB-INF\web-client.xml).
Even if you think it would be the last option, adding a index.jsp to any directory and redirecting to a preferred destination looks to me a much cleaner solution. By doing what you want (and what i found, tested and post here) you get a result that is (from the webdesing point of view) really dirty: you show a buildt in tomcat error (! buh !). Of course you could make your own errorpage...
What i suppose is to redefine the default servlet. JBoss-tomcat seems to define a servlet under the name "default", so i used just another name to prevent deployment exceptions.
If one of the JBoss insiders could explain how one changes the JBOss defines "default" servlet definition i would be glad to here, in between my suggestion should solve your problem...
Just add the fillowing lines to web.xml:
<!-- to the servlet definitions: -->
<!-- later to the servlet mappings: -->
Hope this help.