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

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/smslib/-/Dcqa1s5ayUcJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to