I have created a sample java project which contains servlets and servlet code is having log entries to print the log messages. I am using SLF$j to print the logs in the servlets. This entire project is made as a "sampleProject.jar" files with no manifest.mf file. I am using this jar file in other project which runs on a tomcat(Web-application). If i run this web-application from tomcat which contains "sampleProject.jar". I am not able to see the log messages which i have written in the servet code(from jar) but the application is working as expected without printing the logs. By above setup i could not be able to see the logs printed, that's why i created the log4j.properties file with appenders as console and file and placed the binding libraries(log4j.jar, slf4j-logfj12.jar) along with the slf4j. Now i created the jar file again with the additional changes.Now also i could not be able to print the logs, i am getting the following error in the console.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Please guide if i am doing wrong by looking at the above explanation.
Am i creating a sampleProject.jar incorrectly? Why i am getting the the above error even i placed the required bindings?