i've got the same problem. at first it's run ok with this config
smslib.bat 
java -classpath 
".;..\jetty7\lib\*;commons-net-2.0.jar;jsmpp-2.1.0.jar;log4j-1.2.17.jar;mysql-connector-java-5.1.6-bin.jar;smsserver-3.5.5.jar;slf4j-api-1.6.3.jar;slf4j-log4j12-1.6.3.jar"
 
    org.smslib.smsserver.SMSServer
with this tree directory
\
\bin\smslib.bat and other jar with SMSServer.conf
\jetty7\

then i move jar to lib, tree directory
\
\bin\smslib.bat with SMSServer.conf
\bin\libs\ containing other jar before (except jetty)
\jetty7
with smslib.bat
java -classpath ".;../jetty7/lib/*;libs/*"     
org.smslib.smsserver.SMSServer


the first one is running OK, but the second one can't found any gateway. My 
SMSServer.conf is identical 

still searching for my answer
thanks and regards


On Tuesday, August 20, 2013 at 10:44:57 PM UTC+7, Thanasis Delenikas wrote:
>
> Hi,
>
> The conf seems ok, so I guess that it's not found where smsserver starts 
> running. Where is the conf located? In the same directory as the 
> smsserver.jar ?
>
>
> On 6 August 2013 10:38, rick zhu via SMSLib Discussion Group <
> smslib+noreply-apn2wqdwjhnzndofqumgqjnm9kirdz47gw54_lsp6ij0ip...@googlegroups.com
>  
> <javascript:>> wrote:
>
>> Hi all,
>>
>> I have a issues about smsserver.Pls help me.
>>
>> I can sent message and receive message use SentMessage.java and 
>> ReceiveMessage.java.
>> But when i use smsserver.java ,I can't send message.
>>
>> The log:
>> Date:            Tue Aug 06 15:33:36 CST 2013 (1375774416406)
>> Thread:        main
>> Message #:    8
>> Level:        ERROR
>> NDC:            
>> Category:    smslib
>> Message:        SMSServer: Unknown Gateway in configuration file!
>> Location:    SMSServer.loadConfiguration(SMSServer.java:216)
>> Thrown:
>>
>> Thread:        main
>> Message #:    18
>> Level:        ERROR
>> NDC:            
>> Category:    smslib
>> Message:        SMSServer error!
>> Location:    SMSServer.run(SMSServer.java:361)
>> Thrown:
>> org.smslib.SMSLibException: No gateways are defined.
>>     at org.smslib.Service.startService_Internal(Service.java:294)
>>     at org.smslib.Service.startService(Service.java:228)
>>     at org.smslib.Service.startService(Service.java:196)
>>     at SMSServer.run(SMSServer.java:356)
>>     at SMSServer.main(SMSServer.java:591)
>>
>>
>> This is my smsserver.conf:
>> #let's Set a different balancer than the default.
>> smsserver.balancer=RoundRobinLoadBalancer
>>
>> #Set a different router than the default.
>> #smsserver.router=NumberPoolRouter
>>
>> # Lets add a modem
>> gateway.0=modem1, SerialModem
>> modem1.port=COM3
>> modem1.baudrate=115200
>> modem1.manufacturer=SIMCOM_Ltd
>> modem1.model=SIMCOM_SIM840W
>> modem1.protocol=PDU
>> modem1.pin=0000
>> modem1.inbound=yes
>> modem1.outbound=yes
>> modem1.smsc_number=+8613800755500
>> modem1.init_string=ATZ\rATZ\rATZ\r
>>
>> # Dummy gateways used for testing.
>> #gateway.1=Test1, TestGateway
>> #Test1.inbound=yes
>> #Test1.outbound=yes
>> #gateway.2=Test2, TestGateway
>> #Test2.inbound=no
>> #Test2.outbound=yes
>> #gateway.3=Test3, TestGateway
>> #Test3.inbound=no
>> #Test3.outbound=yes
>> #gateway.4=Test4, TestGateway
>> #Test4.inbound=no
>> #Test4.outbound=yes
>> #gateway.5=Test5, TestGateway
>> #Test5.inbound=no
>> #Test5.outbound=yes
>> #gateway.6=Test6, TestGateway
>> #Test6.inbound=no
>> #Test6.outbound=yes
>> #gateway.7=Test7, TestGateway
>> #Test7.inbound=no
>> #Test7.outbound=yes
>> #gateway.8=Test8, TestGateway
>> #Test8.inbound=no
>> #Test8.outbound=yes
>>
>> # Here is an example of a Microsoft SQL Server database interface.
>> #interface.0=db1, Database
>>
>> #db1.url=jdbc:sqlserver://localhost:1433;SelectMethod=cursor;DatabaseName=smslib
>> #db1.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
>> #db1.username=smslib
>> #db1.password=smslib
>> #db1.type=mssql
>> #db1.tables.sms_in=
>> #db1.tables.sms_out=
>> #db1.tables.calls=
>> #db1.batch_size=50
>> #db1.retries=2
>> #db1.update_outbound_on_statusreport=no
>>
>> # Here is an example of an Oracle database interface.
>> #interface.0=db1, Database
>> #db1.url=jdbc:oracle:thin:smslib/smslib@localhost:1521/XE
>> #db1.driver=oracle.jdbc.OracleDriver
>> #db1.username=smslib
>> #db1.password=smslib
>> #db1.type=oracle
>> #db1.tables.sms_in=
>> #db1.tables.sms_out=
>> #db1.tables.calls=
>> #db1.batch_size=50
>> #db1.retries=2
>> #db1.update_outbound_on_statusreport=no
>>
>> # Here is an example of a MySQL database interface.
>> #interface.0=db1, Database
>> #db1.type=mysql
>> #db1.url=jdbc:mysql://localhost:3306/smslib?autoReconnect=true
>> #db1.driver=com.mysql.jdbc.Driver
>> #db1.username=smslib
>> #db1.password=smslib
>> #db1.tables.sms_in=
>> #db1.tables.sms_out=
>> #db1.tables.calls=
>> #db1.batch_size=50
>> #db1.retries=2
>> #db1.update_outbound_on_statusreport=yes
>>
>> # Here is an example of a SimpleInboundFileLogger interface.
>> #interface.1=file1, SimpleInboundFileLogger, inbound
>> #file1.filename=f:/logger.txt
>>
>> # Here is an example of a HTTP interface.
>> #interface.2=http1, Http
>> #http1.get_url=
>> http://192.168.1.1/test.php?gatewayId=%gatewayId%&text=%text%&originator=%originator%
>> #http1.dlr_url=
>> http://192.168.1.1/dlr.php?gatewayId=%gatewayId%&text=%text%&from=%from%&refNo=%refNo%
>> #http1.method=GET
>>
>> #interface.3=httpServer, HttpServer
>> #httpServer.port=8080
>> #httpServer.password.read=0000
>> #httpServer.password.send=1111
>>
>> #Interval for processing inbound messages (in seconds)
>> settings.inbound_interval=600
>> #Interval for processing outbound queues (in seconds)
>> settings.outbound_interval=10
>>
>> #After reading, should SMSServer delete the processed messages from the 
>> gateways?
>> #Default is "no" for safety. Set to "yes" if you wish to delete messages.
>> #If you leave it to "no", SMSServer will process the same messages over 
>> and over again!
>> settings.delete_after_processing=no
>>
>> # Should SMSServer work in sync or async sending mode?
>> # Async mode forwards messages to gateway queues.
>> # Values can be "sync" and "async".
>> settings.send_mode = async
>>
>> # Allowed dispatch time-fames per priority
>> settings.timeframe.low=0900-2200
>> settings.timeframe.normal=0000-2359
>> settings.timeframe.high=0000-2359
>>
>>
>>
>>
>>  -- 
>> 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/ad144213-d7e6-4686-833b-7fa7b76c3565%40googlegroups.com
>> .
>>  
>>  
>>
>
>

-- 
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/d1ccbbdf-858d-4157-9dfd-ac5836387b8a%40googlegroups.com.
  • [smslib] No gatewa... rick zhu via SMSLib Discussion Group
    • Re: [smslib] ... SMSLib Discussion Group on behalf of Thanasis Delenikas
      • Re: [smsl... Gde Panut Wijaya via SMSLib Discussion Group

Reply via email to