This week's book giveaway is in the Java in General forum. We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line! See this thread for details.
I have a big big problem. When i deploy my ear project composed by a dynamin web project and an ejb project in jboss i have this error:
i'm sure that i have only one mysql-ds.xml under meta inf and i deleted the mysql-ds.xml of jboss_home/server/default/deploy:
i need your help, pleaaaaaaaase
The issue is due to a conflict with already existing JNDI MySQLDS. You can try one of the following
1. Remove your application .ear file and start JBOSS as such. Now check in the admin console under datasources link if you already have one with the given JNDI name.
Two things could be possible
a. If you have a datasource with the JNDI name as MySQLDS, then there is a -ds.xml in your deploy folder with the same JNDI name. All you could do is a search for the word "MySQLDS" in your folder search/file search of the folder.
b. If there are no data sources listed then it must be inside of your .ear file.
2. Change the JNDI name ( Probably not the right way to do but would work).
Please note that there are few other ds.xml files even inside the folders of the deploy folder. For instance there is a folder called jbossesb.esb under the deploy folder which has a message-store-ds.xml which also creates a JNDI binding of the data source.
Just a word of advice, do not manually edit the ds.xml file for your server configuration even while changing the DB from HSQLDB. Run the ant script available in /jboss-as/tools/schema. Its is scripted beautifully and is very user-friendly.
Thanks and regards
Better late than never.
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop