Post the contents of your -ds.xml and also the jboss-web.xml.
While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.
any newlines/spaces around the datasource name? I run into a similar problem recently and found that "login-config.xml" trims the JNDI name, but the new -jboss-beans.xml does not.
Hope this helps
Thank you for your answers. You were right Wolfgang !
I had applied xml text formatting with eclipse to my xxx-jboss-beans.xml file, and it caused a blank line to be appended to the source name. I couldn't see it in the log since blank character are not visible !
Thnak you very much,