The EJB .jar file has no knowledge about the log4j classes in the WEB-INF directory of the corresponding webapp, as the EJB and webapp use different classloaders.
1.Place the log4j.jar file in the root path.
and this worked.
If you want something you never had do something which you had never done