you should add a ref from in the ejb jar xml..
open the ejb deployment descriptor..
go to the refrences tab...
choose the session bean on the right pane..
press "add"
resource ->fill the name and choose datasource in type..
press finish

press on the resource under your session bean
fill in the JNDI of the datasource..
rebuild the project , restart the server..
good luck