I'm having problems trying to set up JNDI DataSources in JBoss 5.1.0. A lot of the solutions to similar issues refer to the jboss-web.xml file in the WEB-INF directory of the WAR file. Could someone explain to me why this file exists and what it's purpose is? What does it provide that a normal web.xml does not?
In the context of datasources, the jboss-web.xml allows to specify the JNDI name at which the datasource is available. The web.xml doesn't allow for a way to specify the jndi name. Since you are looking for datasource related configuration, I think this thread might help.