aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBoss Datasource issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss Datasource issue" Watch "JBoss Datasource issue" New topic
Author

JBoss Datasource issue

kittu karan
Ranch Hand

Joined: Mar 09, 2008
Posts: 63
Hi,
I have a problem with JBoss datasource could please tell me how to do it.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10101
    
164

Kiran,

You have to tell us what problem you are facing. Unless we know that we wont be able to tell you what might be wrong. Please provide a detailed explanation about the problem.


[My Blog] [JavaRanch Journal]
kittu karan
Ranch Hand

Joined: Mar 09, 2008
Posts: 63
HI,
this is my mysql-ds.xml I have a doubt where I have to place is xml file I mean in WEB-INF folder.I got an error unable to lookup jndi name.

<?xml version="1.0" encoding="UTF-8"?>



<datasources>
<local-tx-datasource>
<jndi-name>jdbc/bbcp</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/bloodbank</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>arvensys</password>

<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>

</datasources>
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10101
    
164

Originally posted by kiran peruka:

this is my mysql-ds.xml I have a doubt where I have to place is xml file I mean in WEB-INF folder.


You can't place it in the WEB-INF folder. As already mentioned in this thread, the *-ds.xml file should be placed in %JBOSS_HOME%/server/< serverName>/deploy folder
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss Datasource issue