[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Problem with JBoss and DataSource

PeterJ do-not-reply at jboss.com
Wed Jul 15 11:47:57 EDT 2009


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



More information about the jboss-user mailing list