File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

MySQL Datasource

Jotnarta Jot
Greenhorn

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
Marshal

Joined: Jul 20, 2005
Posts: 10222
    
166

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


[My Blog] [JavaRanch Journal]
Jotnarta Jot
Greenhorn

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

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
author
Bartender

Joined: May 14, 2008
Posts: 5837
    
    7

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


JBoss In Action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: MySQL Datasource