The issue is that once you place a resource-ref into web.xml, then the app 
expects to find the resource in the local naming context 
(java:/comp/env/portalDS). But you need to tell JBoss AS to map the name back 
to the java: namespace. To do that, place an entry for the datasource in 
WEB-INF/jboss-web.xml:

<jboss-web>
  |   <resource-ref>
  |     <res-ref-name>portalDS</res-ref-name>
  |     <jndi-name>java:portalDS</jndi-name>
  |   </resource-ref>
  | </jboss-web>

Also, please use 'code' tags around your XML text - select the text and click 
the Code button above the editor window.

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

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

Reply via email to