facebook

Myeclipse, 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 Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #255830 Reply

    Hi,
    I have a simple application using TOMCAT, but now i need to use Log4J framework on this application. I did everything correct, put Log4J.jar, configured the classpath and created the Log4J properties, but when i started the TOMCAT server i got this ERROR:

    log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig).
    log4j:WARN Please initialize the log4j system properly.

    I put my Log4J.properties inside WEB-INF folder but i think that TOMCAT did not find it.
    Then i put this config file inside the classes folder and it work well.
    But when i made a new deploy my file was deleted and i got the error again.

    How can i do it automaticaly?
    Where should i put this file to work right?
    Should i do like Struts file ApplicationResources.properties, put it inside a package?

    Thank you!

    MCL

    #255838

    Riyad Kalla
    Member

    The file needs to go iin the root of your /src directory, it will be built (copied) into the /classes dir for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Myeclipse, Log4J and TOMCAT

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