This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss Datasource issue

 
kittu karan
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem with JBoss datasource could please tell me how to do it.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
kittu karan
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic