Hi,

This is the output i am getting with a debug in it.

/home/oracle/SMSLib/Java_Installed/jdk1.5.0_17/bin/java -Dsmslib.debug
-Dsmsserver.configdir=/home/oracle/SMSLib/SMSServer/src/java/org/
smslib/smsserver/ org.smslib.smsserver.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.3.3
SMSServer version: 3.3.3
0 [main] INFO org.smslib  - 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
3 [main] INFO org.smslib  - Version: 3.3.3
3 [main] INFO org.smslib  - JRE Version: 1.5.0_17
3 [main] INFO org.smslib  - JRE Impl Version: 1.5.0_17-b04
3 [main] INFO org.smslib  - O/S: Linux / i386 / 2.6.9-67.EL
10 [main] INFO org.smslib  - SMSServer: set balancer to:
LeastLoadLoadBalancer
906 [main] INFO org.smslib  - SMSServer: added gateway modem1 /
Default Serial Modem Gateway.
969 [main] INFO org.smslib  - SMSServer: added interface xml1 /
Interface for xml input/output files / INOUTBOUND
969 [main] INFO org.smslib  - SMSServer: interface:
org.smslib.smsserver.interfaces.Xml started.
972 [SMSLib-WatchDog] DEBUG org.smslib  - WatchDog started.
972 [SMSLib-WatchDog] INFO org.smslib  - WatchDog running...
973 [Thread-2] INFO org.smslib  - GTW: modem1: Starting gateway, using
Generic AT Handler.
973 [Thread-2] INFO org.smslib  - GTW: modem1: Opening: COM1 @57600
1974 [main] INFO org.smslib  - SMSServer: interface:
org.smslib.smsserver.interfaces.Xml stopped.
1975 [SMSLib-WatchDog] DEBUG org.smslib  - WatchDog stopped.
1975 [main] INFO org.smslib  - GTW: modem1: Stopping gateway...
1975 [main] INFO org.smslib  - GTW: modem1: Closing: COM1 @57600
1975 [main] INFO org.smslib  - GTW: modem1: Gateway stopped.
1975 [main] INFO org.smslib  - SMSServer exiting normally.
1976 [Thread-0] INFO org.smslib  - SMSServer shutting down, please
wait...
1976 [Thread-0] INFO org.smslib  - SMSServer: interface:
org.smslib.smsserver.interfaces.Xml stopped.
1977 [Thread-0] INFO org.smslib  - GTW: modem1: Stopping gateway...
1977 [Thread-0] INFO org.smslib  - GTW: modem1: Closing: COM1 @57600
1977 [Thread-0] INFO org.smslib  - GTW: modem1: Gateway stopped.

I created 2 directories in/ and out/ in folder smsrv/. Its dumping
some xml files in it. Now , what has to be done to send an sms?. I am
planning to use a reliance datacard as a modem. Please do help me to
go ahead with it.

Regards,
Sandeep.

On Feb 17, 4:41 pm, sandeep <[email protected]> wrote:
> Hi,
>
> This error is resolved. I just copied the LinuxSerialParallel.so to
> the jre/lib/i386 directory.
> I ran it as below,
>
> [ora...@erptest classes]$ /home/oracle/SMSLib/Java_Installed/
> jdk1.5.0_17/bin/java -Dsmsserver.configdir=/home/oracle/SMSLib/
> SMSServer/src/java/org/smslib/smsserver/
> org.smslib.smsserver.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.3.3
> SMSServer version: 3.3.3
> [ora...@erptest classes]$
>
> Is this correct?... Because as far I know , the server has to run
> forever. I checked it in the process , but there is no such process.
> Kindly help me in sending SMS using a USB modem.
>
> Regards,Sandeep.
>
> On Feb 17, 2:46 pm,sandeep<[email protected]> wrote:
>
>
>
> > I followed the steps as in the installation document and now I am
> > getting the below exception,
>
> > [ora...@erptest classes]$ /home/oracle/SMSLib/Java_Installed/
> > jdk1.5.0_17/bin/java -Dsmsserver.configdir=/home/oracle/SMSLib/
> > SMSServer/src/java/org/smslib/smsserver/
> > org.smslib.smsserver.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.3.3
> > SMSServer version: 3.3.3
> > Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no
> > LinuxSerialParallel in java.library.path
> > Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError:
> > isDevLink
> >         at com.sun.comm.Unix.isDevLink(Native Method)
> >         at com.sun.comm.PathBundle.add(PathBundle.java:108)
> >         at com.sun.comm.PlatformPortBundle.<init>
> > (PlatformPortBundle.java:44)
> >         at javax.comm.CommPortIdentifier.<clinit>
> > (CommPortIdentifier.java:138)
> >         at java.lang.Class.forName0(Native Method)
> >         at java.lang.Class.forName(Class.java:164)
> >         at org.smslib.helper.CommPortIdentifier.<clinit>
> > (CommPortIdentifier.java:66)
> >         at org.smslib.modem.SerialModemDriver.connectPort
> > (SerialModemDriver.java:67)
> >         at org.smslib.modem.AModemDriver.connect(AModemDriver.java:
> > 110)
> >         at org.smslib.modem.ModemGateway.startGateway
> > (ModemGateway.java:126)
> >         at org.smslib.Service$1Starter.run(Service.java:222)
>
> >Sandeep
>
> > On Feb 16, 3:32 pm, Thanasis <[email protected]> wrote:
>
> > >http://smslib.org/doc/installation/
>
> > > On Feb 16, 11:22 am,sandeep<[email protected]> wrote:
>
> > > > I installed SUN's JDK 1.5 and now I got an error as below,
>
> > > > [ora...@erptest classes]$ /home/oracle/SMSLib/Java_Installed/
> > > > jdk1.5.0_17/bin/java -Dsmsserver.configdir=/home/oracle/SMSLib/
> > > > SMSServer/src/java/org/smslib/smsserver/SMSServer.conf
> > > > org.smslib.smsserver.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.3.3
> > > > SMSServer version: 3.3.3
> > > > Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/
> > > > log4j/Logger
> > > >         at org.smslib.helper.Logger.<init>(Logger.java:41)
> > > >         at org.smslib.Service.<init>(Service.java:81)
> > > >         at org.smslib.smsserver.SMSServer.<init>(SMSServer.java:69)
> > > >         at org.smslib.smsserver.SMSServer.main(SMSServer.java:472)
>
> > > >Sandeep.
>
> > > > On Feb 16, 1:00 pm, Thanasis <[email protected]> wrote:
>
> > > > > I don't know if this can be executed in a different Java environment -
> > > > > never tried that. I work with SUN JDK.
>
> > > > > You also need to correctly configure the SMSServer.conf file.
>
> > > > > On Feb 16, 8:04 am,sandeep<[email protected]> wrote:
>
> > > > > > Hello Thanasis,
>
> > > > > > As you said , I ran it  , but with the same results as below,
>
> > > > > > [ora...@erptest classes]$ java -Dsmsserver.configdir=/home/oracle/
> > > > > > SMSLib/SMSServer/src/java/org/smslib/smsserver/SMSServer.conf
> > > > > > org.smslib.smsserver.SMSServer
> > > > > > Exception in thread "main" java.lang.NoClassDefFoundError: while
> > > > > > resolving class: org.smslib.smsserver.SMSServer
> > > > > >    at java.lang.VMClassLoader.resolveClass(java.lang.Class) 
> > > > > > (/usr/lib/
> > > > > > libgcj.so.5.0.0)
> > > > > >    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
> > > > > >    at java.lang.Class.forName(java.lang.String, boolean,
> > > > > > java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
> > > > > >    at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.
> > > > > > 5.0.0)
> > > > > >    at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
> > > > > >    at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
> > > > > >    at _Jv_RunMain(java.lang.Class, byte const, int, byte const,
> > > > > > boolean) (/usr/lib/libgcj.so.5.0.0)
> > > > > >    at __gcj_personality_v0 
> > > > > > (/home/oracle/SMSLib/SMSServer/dist/classes/
> > > > > > java.version=1.4.2)
> > > > > >    at __libc_start_main (/lib/tls/libc-2.3.4.so)
> > > > > >    at _Jv_RegisterClasses 
> > > > > > (/home/oracle/SMSLib/SMSServer/dist/classes/
> > > > > > java.version=1.4.2)
> > > > > > Caused by: java.lang.ClassNotFoundException: java.lang.StringBuilder
> > > > > > not found in [file:/usr/share/java/libgcj-3.4.3.jar, file:./, 
> > > > > > core:/]
> > > > > >    at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/
> > > > > > libgcj.so.5.0.0)
> > > > > >    at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) 
> > > > > > (/usr/
> > > > > > lib/libgcj.so.5.0.0)
> > > > > >    at java.lang.ClassLoader.loadClass(java.lang.String, boolean) 
> > > > > > (/usr/
> > > > > > lib/libgcj.so.5.0.0)
> > > > > >    at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/
> > > > > > libgcj.so.5.0.0)
> > > > > >    at java.lang.Class.forName(java.lang.String, boolean,
> > > > > > java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
> > > > > >    at _Jv_BytecodeVerifier.verify_instructions_0() 
> > > > > > (/usr/lib/libgcj.so.
> > > > > > 5.0.0)
> > > > > >    at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
> > > > > >    at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
> > > > > >    at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.
> > > > > > 5.0.0)
> > > > > >    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/
> > > > > > libgcj.so.5.0.0)
> > > > > >    at java.lang.VMClassLoader.resolveClass(java.lang.Class) 
> > > > > > (/usr/lib/
> > > > > > libgcj.so.5.0.0)
> > > > > >    ...9 more
>
> > > > > > I have a few clarifications.
>
> > > > > > 1. Is there anything to be configured , before running the server?
> > > > > > and,
> > > > > > 2. do i need SUN's JDK to run it?
>
> > > > > > I have not done any configuration here. I just downloaded the SMSLib
> > > > > > v3.3.3 (Sources + Binaries, compiled with JDK 5) and unzipped it in 
> > > > > > a
> > > > > > directory and trying to run the server.
>
> > > > > >Sandeep.
>
> > > > > > On Feb 13, 4:36 pm, Thanasis <[email protected]> wrote:
>
> > > > > > > Go to the dist/classes and try to run:
>
> > > > > > > java -Dsmsserver.configdir=<where your config is>
> > > > > > > org.smslib.smsserver.SMSServer
>
> > > > > > > Does this run?
> > > > > > > By the way, you are running on GNU Java and not SUN's JDK.
>
> > > > > > > On Feb 13, 1:06 pm,sandeep<[email protected]> wrote:
>
> > > > > > > > Hi ,
>
> > > > > > > > Now, I am getting the below exception, when i run this(its on 
> > > > > > > > linux).
>
> > > > > > > > Command:(to start server)
>
> > > > > > > > java -classpath =/home/oracle/SMSLib/SMSServer/dist/lib/
> > > > > > > > smslib-3.3.3.jar 
> > > > > > > > -Dsmsserver.configdir=/home/oracle/SMSLib/SMSServer/
> > > > > > > > src/java/org/smslib/smsserver/ org.smslib.smsserver.SMSServer
>
> > > > > > > > Exception:
>
> > > > > > > > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > > > > > > org.smslib.smsserver.SMSServer
> > > > > > > >    at gnu.gcj.runtime.FirstThread.run() 
> > > > > > > > (/usr/lib/libgcj.so.5.0.0)
> > > > > > > >    at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
> > > > > > > >    at _Jv_RunMain(java.lang.Class, byte const, int, byte const,
> > > > > > > > boolean) (/usr/lib/libgcj.so.5.0.0)
> > > > > > > >    at __gcj_personality_v0 (/home/oracle/SMSLib/SMSServer/
> > > > > > > > java.version=1.4.2)
> > > > > > > >    at __libc_start_main (/lib/tls/libc-2.3.4.so)
> > > > > > > >    at _Jv_RegisterClasses (/home/oracle/SMSLib/SMSServer/
> > > > > > > > java.version=1.4.2)
>
> > > > > > > > Please do help me in resolving this.
>
> > > > > > > > Regards,
> > > > > > > >Sandeep.
>
> > > > > > > > On Feb 13, 10:29 am,sandeep<[email protected]> 
> > > > > > > > wrote:
>
> > > > > > > > > Hi,
>
> > > > > > > > > I am planning to use SMSServer but I dont no where to start. 
> > > > > > > > > Can
> > > > > > > > > anyone please tell me how to start using it on a linux 
> > > > > > > > > machine. I also
> > > > > > > > > went through the docs section of SMSlib.org, but didnt 
> > > > > > > > > understand how
> > > > > > > > > to go about it. I have just downloaded the SMSLib v3.3.3 
> > > > > > > > > (Sources +
> > > > > > > > > Binaries, compiled with JDK 5). Please do help me.
>
> > > > > > > > > Thanks & Regards,
> > > > > > > > >Sandeep.- Hide quoted text -
>
> > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to