[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Unable to deploy Visual JSF project on Netbeans 6.5.1 to

PeterJ do-not-reply at jboss.com
Wed Jun 24 14:40:00 EDT 2009

The code is possibly complaining about the lack of a JNDI name (it appears that the code is attempting to look up the datasource by name and not finding it).

First, did you create a *-ds.xml file for your datasource and did you deploy it first? If you did not, you need to do that first. If you have a *-ds.xml file, add another entry to your jboss-web.xml file:

<?xml version="1.0" encoding="UTF-8"?>
  | <jboss-web>
  |   <resource-ref>
  |     <res-ref-name>jdbc/TRAVEL_ApacheDerby</res-ref-name>
  |     <jndi-name>java:--the jndi name of your datasource, from *-ds.xml--</jndi-name>
  |   </resource-ref>
  |   <security-domain flushOnSessionInvalidation="false"/>
  |   <context-root>/SinglePageCrudTable</context-root>
  | </jboss-web>

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

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239848

More information about the jboss-user mailing list