You will have to map the resource ref with the jndi name of your datasource. 
Here's the jboss-web.xml file that you will have to create(if its not already 
there in your JPetStore's WEB-INF folder):

  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.2//EN" 
"http://www.jboss.org/j2ee/dtd/jboss-web.dtd";>
  | 
  | <jboss-web>
  |    
  |    <resource-ref>
  |     <res-ref-name>jdbc/jpetstore1</res-ref-name>
  |     <jndi-name>java:/jpetstore1</jndi-name>
  |    </resource-ref>
  |    
  |    
  | </jboss-web>

Place this jboss-web.xml in the WEB-INF folder of your jpetstore.war file.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983294#3983294

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983294
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to