[jboss-user] [JCA/JBoss] - Re: Can't connect to global namespace datasource from servle
weston.price@jboss.com
do-not-reply at jboss.com
Mon Jul 31 10:35:31 EDT 2006
The remaing issue is in your jboss-web.xml file you are binding the reference as
|
| <jboss-web>
| <resource-ref>
| <res-ref-name>jdbc/MySqlDS</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <jndi-name>java:/MySqlDS</jndi-name>
| </resource-ref>
| </jboss-web>
|
|
Yet, your datasource is bound as
| <jndi-name>jdbc/MySqlDS</jndi-name>
|
| |
| | I would suggest chaning the JNDI name in the *-ds.xml file to be just
| |
| |
| | | <jndi-name>MySqlDS</jndi-name>
| | |
| |
| | The 'java:' prefix is appended automatically. Changing this, your lookup should work.
| |
| |
| |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961887#3961887
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961887
More information about the jboss-user
mailing list