Hello, >From this line:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/net/telnet/InvalidTelnetOptionException I understand that you are missing the Apache Commons/NET jar from your classpath. Can you check? On 13 September 2014 13:06, Allan Fredslund via SMSLib Discussion Group < smslib+noreply-apn2wqfcm9oitsgcvcbufg0fzo9vkgwu6jbufqczej0d8f...@googlegroups.com > wrote: > I can't start SMSServer on a Windows Server 2008R2. The result is: > > C:\Program Files\Java\smsserver-3.5.4>java > -Dsmsserver.configdir="C:/Program Files/Java/smsserver-3.5.4/dist/classes/" > org.smslib.smsserver.rver > 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.5 > SMSServer version: 3.5.5 > 0 2014-09-13 11:28:03,985 [main] INFO org.smslib.Service - SMSLib: > A Java API library for sending and receiving SMS via a GSM modem o > er supported gateways. > This software is distributed under the terms of the Apache v2.0 License. > Web Site: http://smslib.org > 0 2014-09-13 11:28:03,985 [main] INFO org.smslib.Service - Version: > 3.5.5 > 0 2014-09-13 11:28:03,985 [main] INFO org.smslib.Service - JRE > Version: 1.8.0_20 > 0 2014-09-13 11:28:03,985 [main] INFO org.smslib.Service - JRE Impl > Version: 25.20-b23 > 0 2014-09-13 11:28:03,985 [main] INFO org.smslib.Service - O/S: > Windows Server 2008 R2 / amd64 / 6.1 > 15 2014-09-13 11:28:04,000 [main] INFO > org.smslib.smsserver.SMSServer - SMSServer: set balancer to: > RoundRobinLoadBalancer > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/commons/net/telnet/InvalidTelnetOptionException > at org.smslib.modem.ModemGateway.init(ModemGateway.java:141) > at org.smslib.modem.ModemGateway.<init>(ModemGateway.java:118) > at org.smslib.modem.IPModemGateway.<init>(IPModemGateway.java:44) > at org.smslib.smsserver.gateways.IPModem.create(IPModem.java:44) > at > org.smslib.smsserver.SMSServer.loadConfiguration(SMSServer.java:196) > at org.smslib.smsserver.SMSServer.run(SMSServer.java:338) > at org.smslib.smsserver.SMSServer.main(SMSServer.java:577) > Caused by: java.lang.ClassNotFoundException: > org.apache.commons.net.telnet.InvalidTelnetOptionException > at java.net.URLClassLoader$1.run(Unknown Source) > 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) > ... 7 more > 62 2014-09-13 11:28:04,047 [Thread-0] INFO > org.smslib.smsserver.SMSServer$Shutdown - SMSServer shutting down, please > wait... > 78 2014-09-13 11:28:04,063 [Thread-0] ERROR > org.smslib.smsserver.SMSServer$Shutdown - Shutdown hook error. > java.lang.NullPointerException > at > org.smslib.notify.NotifyQueueManager.cancel(NotifyQueueManager.java:66) > at org.smslib.Service.stopService(Service.java:356) > at org.smslib.smsserver.SMSServer$Shutdown.run(SMSServer.java:119) > java.lang.NullPointerException > at > org.smslib.notify.NotifyQueueManager.cancel(NotifyQueueManager.java:66) > at org.smslib.Service.stopService(Service.java:356) > at org.smslib.smsserver.SMSServer$Shutdown.run(SMSServer.java:119) > > I don't know what to do. Hope anyone can help. Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "SMSLib Discussion Group" group. > To view this discussion on the web visit > https://groups.google.com/d/msgid/smslib/9e18e183-136c-4ed9-8838-2ce3a74aeb4c%40googlegroups.com > <https://groups.google.com/d/msgid/smslib/9e18e183-136c-4ed9-8838-2ce3a74aeb4c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "SMSLib Discussion Group" group. To view this discussion on the web visit https://groups.google.com/d/msgid/smslib/CAGY2XjkM2vXOVw%3DzyjV__vzbTBp-etQa0A7ch9jHjbgv-RDvqA%40mail.gmail.com.
