title: java.lang.ClassNotFoundException: org.jboss.logging.Logger
body: <p>I have a strange problem. I have a <a href="https://en.wiktionary.org/wiki/JMS" rel="nofollow noreferrer">JMS</a> client application &amp; an <a href="https://en.wikipedia.org/wiki/Enterprise_JavaBeans#Message_driven_beans" rel="nofollow noreferrer">MDB</a> configured in JBoss <code>jboss-5.1.0.GA</code>. Earlier, I added the JAR by "Configure Build Path" → "Add External JARs" and everything was working fine.</p>
  
  <p>Now, I moved all the JARs to a lib folder under my project and used "Configure Build Path" → "Add JARs". </p>
  
  <p>Now, I get the following exception while executing the client program :(</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Logger
  at org.jnp.interfaces.NamingContext.&lt;clinit&gt;(NamingContext.java:160)
  at org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingContextFactory.java:56)
  at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
  at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
  at javax.naming.InitialContext.init(Unknown Source)
  at javax.naming.InitialContext.&lt;init&gt;(Unknown Source)
  at com.dcat2.messaging.sendreceive.MessageReceiver_test.sendMessage(MessageReceiver_test.java:68)
  at com.dcat2.messaging.sendreceive.MessageReceiver_test.main(MessageReceiver_test.java:57)
  `Caused by: java.lang.ClassNotFoundException: org.jboss.logging.Logger
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  ... 8 more
  </code></pre>
  
  <p>I have <code>jndi.properties</code> in the classpath and the following JARs:</p>
  
  <pre><code>jbossall-client.jar
  commons-logging.jar
  concurrent.jar
  javax.ejb.jar
  jms.jar
  jnp-client-4.2.2.GA.jar
  log4j-1.2.16.jar
  sqljdbc4.jar
  </code></pre>
  
  <p>Can anyone help please?</p>