Add the file jboss-web.xml in your WEB-INF
<?xml version="1.0" encoding="UTF-8"?>
I put a file called jboss-web.xml in ROOT/WEB-INF. This is what that file looked like:
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>/</context-root> </jboss-web>
This did not work however. I still get the error messages I described earlier. Did I put the file in the correct WEB-INF directory?
OK. I have done some more investigation.
If I rename my ROOT directory to ROOT.war and have the jboss-web.xml file in the WEB-INF directory I can access foo.jsp with something like http://localhost/foo.jsp.
Is there any way that I don't have to name my directory ROOT.war or any other name not having the .war siffix?
No, not without modifying the war deployer.
Is this also true for jboss 4 ?
Yes, its true for jboss-4.0.0 as well.