Step to reproduce
- Create a class with a @webget or something
- Do not add the @singleton on the class
- Have the
slf4j-log4j12 in the pom.xml
- Do not have a log4j.properties
- use mvn jetty:run
- Start the app, and go to any URL
Actual result
- The page is blank and no error on the system log.
The problem, is that if there is no src/main/resources/log4j.properties in the source, then, we do not see the error on snow. In this case, Snow cannot start because it requires to have @singleton on any class that have @web... methods, but because the developer does not see the error, it is very hard to find out why.
Proposed solution
We need to find a way that even of the log4j.properties has not be configured but the slf4j-log4j12 is present, we still log those errors to the console.