1 of 1 people found this helpful
At the end of the day it does not matter where you actually put the file in your project structure. Shrinkwrap will grab it from the given location and put it under /WEB-INF/ in the created WAR file. It really depends on the purpose of this file. If it's for testing only 'src/test/resources/' should be good place to store it.
Does it work for your with the current layout you defined?
At the moment it does not work. I have managed to put the -ds.xml file in the /WEB-INF/ directory, however now I am getting an error where JBOSS cannot find the MySql driver (see below):
JBAS011440: Can't find a persistence unit named webapp in deployment \"test.war\""},
"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.data-source.java:jboss/datasources/WEBAPPDS is missing [jboss.jdbc-driver.mysql]"]