Which version of JBoss and Java are you using? Where have you placed the -ds.xml and your web application? And also post the relevant logs and the relevant content from web.xml and jboss-web.xml.
Thank you so much for your reply. I did not receive a email as I thought when somebody reply I will get email.
I put the -ds.xml file inside the server\default\deploy dir.
resource reference entry in web.xml:
resource reference entry in jboss-web.xml:
Now, I take of the access datasource during servlet start up, it is OK for my application. But that is not ideal.
Look forward to hearing from you soon.
Couple of questions:
1) Whcih version of JBoss are you using?
2) Where have you placed your war file? Is it in the deploy folder or some other folder? What's the name of your -ds.xml file and the WAR file?
Some days back a similar question was answered at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=128388.
See the replies from Vicky and Adrian.
However, if you still continue to have the same issue, do post back with the details.
I did not receive a email as I thought when somebody reply I will get email.
Had you selected the "Notify me when a reply is posted" check-box, available just below the message editor window, while posting?