Hi, While running MB's samples/jmsclient, I got following error [1]. After I manually add "slf4j-jdk14-1.6.4.jar" and "slf4j-api-1.6.4.jar" to client-lib, it ran fine.
Should we add these jars? Thanks. [1] run: [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory [java] at org.apache.qpid.jndi.PropertiesFileInitialContextFactory.<init>(PropertiesFileInitialContextFactory.java:57) [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [java] at java.lang.Class.newInstance0(Class.java:355) [java] at java.lang.Class.newInstance(Class.java:308) [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654) [java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) [java] at javax.naming.InitialContext.init(InitialContext.java:223) [java] at javax.naming.InitialContext.<init>(InitialContext.java:197) [java] at org.sample.jms.PubsubClient.subscribe(Unknown Source) [java] at org.sample.jms.PubsubClient.main(Unknown Source) [java] Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [java] ... 13 more [java] Java Result: 1 [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory [java] at org.apache.qpid.jndi.PropertiesFileInitialContextFactory.<init>(PropertiesFileInitialContextFactory.java:57) [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [java] at java.lang.Class.newInstance0(Class.java:355) [java] at java.lang.Class.newInstance(Class.java:308) [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654) [java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) [java] at javax.naming.InitialContext.init(InitialContext.java:223) [java] at javax.naming.InitialContext.<init>(InitialContext.java:197) [java] at org.sample.jms.SendConsumeClient.sendMessage(Unknown Source) [java] at org.sample.jms.SendConsumeClient.main(Unknown Source) [java] Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [java] ... 13 more [java] Java Result: 1 BUILD SUCCESSFUL -- regards, Nirmal Software Engineer, WSO2 Inc. mobile: +94715779733
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev