Asaf Mesika wrote:

I need to put several files in tomcat/conf directory (log4j.properties, 
acme.proeprties, etc) which my WAR reads from the classpath (since conf is in 
the classpath).

That the conf dir ends up on the classpath kinda surprises me, given the info I find on [0], but then again, I'm not really familar with Tomcat.

I did place them in my installed tomcat location (~/tomcat/conf), and when I 
created a new Webby Launch Configuration I referenced ~/tomcat directory, but 
from some reason the target/m2e-webby/container/conf doesn't include my 
log4j.properties and acme.properties files. When I try to copy them to 
target/m2e-webby/container/conf it gets erased as soon as I launch Webby.

The container configuration is under tight control of Webby/Cargo, you currently have little to no means to change that.

Looking at the catalina.properties that get used for Tomcat 6.x and 7.x, the only way that I see to solve your issue is to place the files into ${catalina.home}/lib such that they end up in Tomcat's common class loader.

That not working for you, I can only suggest to look at other web integrations like m2e-wtp.


Benjamin


[0] http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to