And I have tried to put all these goody together with Jboss, Mysql, got some problems!..
Fist of all, tomcat (came with Jboss )sevlet container return a weird lookup for resource, for example:
String requestMappingsURL = getServletContext().getResource("/WEB-INF/xml/requestmappings.xml").toString();
It will returned as requestMappingsURL = “jndi:/localhost/WEB-INF/xml/requestmappings.xml”
And that will throw exception since jndi is not a recognized protocol..