Mario Did you get a solution to this Am experiencing the same error when i try to start smsserver *SMSLib: A Java API library for sending and receiving SMS via a GSM modem or other supported gateways.* *This software is distributed under the terms of the Apache v2.0 License.* *Web Site: http://smslib.org* * * *SMSLib API version: 3.5.2* *SMSServer version: 3.5.2* *Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Priority* * at org.smslib.Service.listSystemInformation(Service.java:113)* * at org.smslib.Service.initializeService(Service.java:103)* * at org.smslib.Service.<init>(Service.java:95)* * at org.smslib.Service.<clinit>(Service.java:90)* * at org.smslib.smsserver.SMSServer.<init>(SMSServer.java:86)* * at org.smslib.smsserver.SMSServer.main(SMSServer.java:569)* *Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Priority* * at java.net.URLClassLoader$1.run(URLClassLoader.java:366)* * at java.net.URLClassLoader$1.run(URLClassLoader.java:355)* * at java.security.AccessController.doPrivileged(Native Method)* * at java.net.URLClassLoader.findClass(URLClassLoader.java:354)* * at java.lang.ClassLoader.loadClass(ClassLoader.java:423)* * at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)* * at java.lang.ClassLoader.loadClass(ClassLoader.java:356)* * ... 6 more* *Exception in thread "Thread-0" java.lang.NoClassDefFoundError: org/apache/log4j/Priority* * at org.smslib.smsserver.SMSServer$Shutdown.run(SMSServer.java:112)* *Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Priority* * at java.net.URLClassLoader$1.run(URLClassLoader.java:366)* * at java.net.URLClassLoader$1.run(URLClassLoader.java:355)* * at java.security.AccessController.doPrivileged(Native Method)* * at java.net.URLClassLoader.findClass(URLClassLoader.java:354)* * at java.lang.ClassLoader.loadClass(ClassLoader.java:423)* * at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)* * at java.lang.ClassLoader.loadClass(ClassLoader.java:356)* * ... 1 more*
On Monday, August 13, 2012 9:37:18 PM UTC+3, Mario wrote: > > I am trying to run the sms server that came from the dist/lib folder of > the v3.5.2 release. However, I always get a NoClassDefFoundError below: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/log4j/Prio > rity > at org.smslib.Service.listSystemInformation(Service.java:113) > at org.smslib.Service.initializeService(Service.java:103) > at org.smslib.Service.<init>(Service.java:95) > at org.smslib.Service.<clinit>(Service.java:90) > at org.smslib.smsserver.SMSServer.<init>(SMSServer.java:86) > at org.smslib.smsserver.SMSServer.main(SMSServer.java:569) > Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Priority > 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) > ... 6 more > > I placed the smsserver-3.5.2.jar and the log4j-1.2.15.jar on the same > directory (c:\temp) together with the SMSServer.conf and try to start the > server with: > java -classpath c:\temp -Dsmsserver.configdir=c:\temp -jar > smsserver-3.5.2.jar > > What am I doing wrong? Any help would be greatly appreciated. > > Thanks in advance > Mario > > PS In case this post results in double posting, my apologies. I could'nt > file my earlier post or may bet it was not posted altogether that's why > this posting again. > > -- You received this message because you are subscribed to the Google Groups "SMSLib Discussion Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/smslib/-/tXQ8w-y1bo8J. For more options, visit https://groups.google.com/groups/opt_out.
