The Log4JDemoEJB2.jar has a manifest entry which contains the Classpath pointing to log4j.jar.
Regards, Vikram