-
1. Re: Where to add JBoss Datasource desctiptor
bmajsak Oct 8, 2013 7:55 AM (in response to max010)1 of 1 people found this helpfulAt 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?
-
2. Re: Where to add JBoss Datasource desctiptor
max010 Oct 13, 2013 9:52 PM (in response to max010)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]"]
}