[jboss-user] [JBoss Messaging] - java.lang.NoClassDefFoundError: org/jboss/logging/Logger
chithu21
do-not-reply at jboss.com
Fri Jun 8 08:14:42 EDT 2012
chithu21 [https://community.jboss.org/people/chithu21] created the discussion
"java.lang.NoClassDefFoundError: org/jboss/logging/Logger"
To view the discussion, visit: https://community.jboss.org/message/740669#740669
--------------------------------------------------------------
I have a strange problem.
I have a JMS client application & an `MDB` configured in Jboss jboss-5.1.0.GA.
Earlier i added the jar by "Configure Build Path" --> "Add External jars" and everything was working fine.
Now, I moved all the jars to a lib folder under my project and used "Configure Build Path" --> "Add jars".
Now I get the following exception while executing the client program. :(
`Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Logger
at org.jnp.interfaces.NamingContext.<clinit>(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.<init>(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'
I have jndi.properties in the classpath and the following jars.
`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`
Can anyone help please....?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740669#740669]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120608/831cf6a3/attachment.html
More information about the jboss-user
mailing list