-
1. Re: Datasource name binding is behind Web deploy
jaikiran Jan 27, 2008 4:07 AM (in response to jashuan)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.
-
2. Re: Datasource name binding is behind Web deploy
jashuan Jan 29, 2008 2:05 PM (in response to jashuan)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-ref>
<res-ref-name>TradeRTUDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
resource reference entry in jboss-web.xml:
<resource-ref>
<res-ref-name>TradeRTUDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:/TradeRTUDB</jndi-name>
</resource-ref>
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. -
3. Re: Datasource name binding is behind Web deploy
jaikiran Jan 30, 2008 1:27 AM (in response to jashuan)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?