title: How to use log4j in an EJB Module with WebLogic?
body: <p>I have included the log4j.jar in libraries;<br>
  added log4j.xml in the sources folder;<br>
  but I m getting an error:  </p>
  
  <pre><code>**&lt;Apr 22, 2014 11:07:50 AM PKT&gt; &lt;Warning&gt; &lt;EJB&gt; &lt;BEA-010065&gt; &lt;MessageDrivenBean threw an Exception in onMessage(). The exception is:
  java.lang.NoClassDefFoundError: org/apache/log4j/Logger.
  java.lang.NoClassDefFoundError: org/apache/log4j/Logger
  at test.MyMessageBean.onMessage(MyMessageBean.java:39)
  at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:575)
  at     weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:477)
  at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:375)
  at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4855)
  Truncated. see log file for complete stacktrace**
  </code></pre>
  
  <p>I have also tried including classpath: .\lib\log4j...<strong>.jar</strong> in the MANIFEST.MF
  but still no positive response..</p>
  
  <p>Kindly guide  me how to resolve this???</p>