facebook

log4j and Tomcat

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #252031 Reply

    andrunix
    Member

    Hello. I’m new to MyEclipse and so far, very impressed.

    I have a Web app I want to deploy on Tomcat. I want to use log4j with it. I am supposed to put the log4j.properties file in WEB-INF/classes. This directory exists on file system but it is not visible in my eclipse. I can’t seem to add it because eclipse want to create the directory.

    If I manually drop it in the WEB-INF/classes directory on the server (not dev machine), when I redeploy the web app, the classes directory gets recreated without my log4j.properties file.

    What’s the proper way to include this?

    Thanks.
    Andrew Pierce

    #252082

    Riyad Kalla
    Member

    Andrew,
    The file needs to go into the root of your /src directory. Then Eclipse will build it into the /classes directory. The classes dir is hidden because in Eclipse it is “cleaned” or deleted every time you rebuild your project. Any files you need, need to live in your /src dir, they will be built or copied over accordingly.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: log4j and Tomcat

You must be logged in to post in the forum log in