title: Tomcat jaas.conf/log4j.properties location
body: <p>I'm developing a GWT web application and while deploying to Tomcat, I face a problem.</p>
  
  <p>The problem is quite simple but I don't know how to fix it without telling Tomcat where to look for these files.</p>
  
  <p>When I deploy my app right out on to Tomcat, it looks for the files in the /bin directory so if I place the log4j.properties and my jaas.conf in there it works like a charm.</p>
  
  <p>The thing is I would like to be able to keep those files within my webapp.</p>
  
  <p>How can I do it?
  Is there anything I can add to the web.xml?</p>
  
  <p>I tried to put both files into the <code>/WEB-INF/classes</code>directory but it didn't work out.</p>
  
  <p>When I run my projects in Eclipse my jaas.config has to be in the /war folder while my log4j.properties stays in the /src folder.</p>
  
  <p>Edit :
  I read <a href="http://www.digitalsanctum.com/2008/01/19/tomcat-and-log4j/" rel="nofollow">this</a> and and tried it even if I don't use log4j for Tomcat internal logging but it didn't work either.</p>
  
  <p>I use Tomcat 7.0</p>