Hi, > I've got the following problem: if I'm creating a webapp and put the META-INF > directory into "src/main/webapp" the files in it (for example > persistence.xml) are NOT on the classpath and therefore my tests are failing, > I can't package my project. > having META-INF under src/main/resources should be ok.
The files in META-INF does not belong to the java classpath. In jar files the classpath root contains the META-INF, but in webapps it differs, since there are libs and classes but not the META-INF in the classpath. But tools searching for META-INF should have access to it knowing the locations above (e.g. TopLink Essentials is looking there manually not using the classpath). > if I'm putting the META-INF directory under "src/main/resources", the files > are on the classpath, the tests succeed, the WAR file is built. > BUT: if I explode the WAR, my META-INF directory and it's files are under > "/WEB-INF/classes/". strange place for META-INF, isn't it? > > is it possible to have the files for the META-INF directory on the classpath > and copy them on packaging into the correct location (for example > "/META-INF/persistence.xml")? > Whats your pom.xml? Especially the part of the resource configuration? (I think the defaults should be good enought for your requirements) Markus Wolf -- > > emedia-solutions wolf > Wedeler Landstrasse 63 > 22559 Hamburg > (040) 550 083 70 > >> web: http://www.emedia-solutions-wolf.de >> mail: [EMAIL PROTECTED] >> pgp: http://wwwkeys.de.pgp.net > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
