I'm using 3.4.2. That's the thing, in Eclipse, it compiles and runs with no errors, but when I build it using ANT in the command-line as a standalone JAR and wrap it up as a windows service using java service wrapper, that's the error I get. Even if I just run the JAR without running it, I also get the same Class Not Found error. Is it possible that the build-smsserver standalone command in the ant refers to an old naming version of smslib???
Pretty clueless really as the code's fine - only when it's packaged as jar do the bugs occur. Is there an alternative to pack it or something aside from using ANT? On Jul 25, 3:47 pm, Thanasis <[email protected]> wrote: > Hi, > > I can't really help you as I've never used it this way, *but* this > "org.smslib.smssvr.SMSSvr" concerns me... This is a very old naming of > the SMSServer, what version are you using? > > About the Windows Service thing, there are some instructions here from > a > friend:http://groups.google.com/group/SMSLib/browse_thread/thread/d01e446e2c... > > On Jul 25, 9:59 am, Jr <[email protected]> wrote: > > > > > Hi guys! > > > Have a problem, and here's a quote from my wrapper.log file: > > > INFO | jvm 3 | 2009/07/23 14:56:52 | java > > org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} > > [app_arguments] > > INFO | jvm 3 | 2009/07/23 14:56:52 | > > INFO | jvm 3 | 2009/07/23 14:56:52 | Where: > > INFO | jvm 3 | 2009/07/23 14:56:52 | app_class: The fully > > qualified class name of the application to run. > > INFO | jvm 3 | 2009/07/23 14:56:52 | app_arguments: The > > arguments that would normally be passed to the > > INFO | jvm 3 | 2009/07/23 14:56:52 | > > application. > > ERROR | wrapper | 2009/07/23 14:56:54 | JVM exited while loading the > > application. > > STATUS | wrapper | 2009/07/23 14:56:58 | Launching a JVM... > > INFO | jvm 4 | 2009/07/23 14:56:58 | WrapperManager: > > Initializing... > > INFO | jvm 4 | 2009/07/23 14:56:58 | WrapperSimpleApp: Unable to > > locate the class org.smslib.smssvr.SMSSvr: > > java.lang.ClassNotFoundException: org.smslib.smssvr.SMSSvr > > > It appears I'm having that dreaded ClassNotFoundException. I'm > > assuming this is brough about by the fact that in the packaging, it's > > SMSServer and not SMSSvr. However, odd thing is, if I compile the > > project via Eclipse using the source .java file, the SMSServer works > > like a charm, it can connect to my mySQL Database and send/receive > > messages. > > > However, I want to use the compiled standalone .jar file on the basis > > that I want SMSServer to run as a service on startup. I want it also > > as a service on the basis that it's easier to deploy in any other PC > > if ever I change my computer or what - there's no need for any > > technicality. I followed the provided tutorials here (hence I have a > > wrapper.log quote above), but it seems it just doesn't work as I > > mentioned. > > > Does anyone know how I'd fix this? Big thanks! =)- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib User Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/SMSLib?hl=en -~----------~----~----~----~------~----~------~--~---
