Resource reference with name "jdbc / devl" not found in ibm-web-bnd.xml

RAD 7, WebSphere 7.

Ibm web bnd.xml:

<resource-ref name="jdbc/devl" binding-name="jdbc/devl" /> 

web.xml:

 <resource-ref> <res-ref-name>jdbc/devl</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Application</res-auth> <res-sharing-scope>Unshareable</res-sharing-scope> <mapped-name>jdbc/devl</mapped-name> </resource-ref> 

This is consistent with the examples that I see on the Internet. This is because I convert this application to servlet 2.5. As far as I understand, res-ref-name in web.xml should match the name attribute in resource-ref. The binding name then corresponds to the data source defined in the admin console. To make it simple, I did everything to make them fit.

Is there another setting somewhere? Because this leads to the error described in the title of the question.

+5
source share
1 answer

If you use Eclipse, try updating the version of the web module in the project.facet.core.xml file. It must be synchronized with the web.xml version of the web application.

+1
source

Source: https://habr.com/ru/post/1202344/


All Articles