This content has been marked as final.
Show 1 reply
-
1. Re: Problem with JBoss and DataSource
peterj Jul 15, 2009 11:47 AM (in response to gabry86)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.