jQuery in Action, 2nd edition*
The moose likes JBoss/WildFly and the fly likes MySQL Datasource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "MySQL Datasource" Watch "MySQL Datasource" New topic

MySQL Datasource

Jotnarta Jot

Joined: May 18, 2006
Posts: 24
Hi All

Any one know how to configure a mysql datasource in JBoss??? I am using JBoss 5 and mysql 5, I tried everything, and read everything, , can anyone help me , pleassssssssse... I always get the following error

following is my mysql-ds.xml file:

and following is my client:

Another questions is, do i have to change something in other files?? and where can i find the log for JBoss server???

Any help please???
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9953

Isn't this the same as what is being discussed in your other post here?

[My Blog] [JavaRanch Journal]
Jotnarta Jot

Joined: May 18, 2006
Posts: 24
Yup, I am still trying to solve this problem, but I couldn't
Jotnarta Jot

Joined: May 18, 2006
Posts: 24
Hi all

Here is the solution for my problem..

In JBoss 5, you have to put the mysql-ds.xml file in the following location:
$JBOSS_HOME/server/all/deploy... It's different than JBoss 4..

Thank you alot
Peter Johnson

Joined: May 14, 2008
Posts: 5812

I assume then that you are running the 'all' configuration. Where did you have the file before?

JBoss In Action
I agree. Here's the link: http://aspose.com/file-tools
subject: MySQL Datasource
Similar Threads
Exception thrown org.jboss.util.NestedSQLException
problem in accessing in jndi in jboss
Name Not Bound Exception