petstore + Jboss + mysql

03-06-20 lubx
Petstore is a great blue print for N tier solution, I have deployed it in Linux, win 2k, NT4.0, works great..

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