File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 10441

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: 5852

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:
subject: MySQL Datasource
It's not a secret anymore!