Hi guys I am currenly experiencing the following problem when I try to
run the SMSServer service in smslib. My configuration is as follows. I
am using Kannel as a gateway and I have my log4j file in the same
directory as I am running the SMSServer from.

[axon@simreg smsserver]$ /server/java/bin/java -
classpath .:smsserver-3.5.1.jar:lib/log4j-1.2.14.jar:mysql-connector-
java-5.0.4-bin.jar -Dsmsserver.configfile=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.5.1
SMSServer version: 3.5.1
Exception in thread "main" java.lang.Error: Unresolved compilation
problem:

        at org.smslib.helper.Logger.getInstance(Logger.java:54)
        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:566)
Exception in thread "Thread-0" java.lang.Error: Unresolved compilation
problem:

        at org.smslib.helper.Logger.getInstance(Logger.java:54)
        at org.smslib.smsserver.SMSServer$Shutdown.run(SMSServer.java:
112)

Find the contents of log4j.properties and the smsserver.conf file
below:

[log4j.properties]

log4j.logger.smslib=DEBUG, smslib
log4j.appender.smslib=org.apache.log4j.ConsoleAppender
log4j.appender.smslib.layout=org.apache.log4j.PatternLayout
log4j.appender.smslib.layout.ConversionPattern=%-6r %d [%t] %-5p %C %x
- %m%n

[smsserver.conf]
# Lets add a modem
gateway.0=myKannel, KannelHttp
myKannel.url=http://127.0.0.1:13013/cgi-bin/sendsms
myKannel.username=axon
myKannel.password=axon911
myKannel.outbound=yes
myKannel.adminurl=http://127.0.0.1:13000
myKannel.adminpassword=bar
myKannel.statuspassword=foo
myKannel.autostartsmsc=no
myKannel.autostopsmsc=no

# Here is an example of a MySQL database interface.
interface.0=db1, Database
db1.type=mysql
db1.url=jdbc:mysql://localhost:3306/database?autoReconnect=true
db1.driver=com.mysql.jdbc.Driver
db1.username=db
db1.password=password
db1.tables.sms_in=sms_in
db1.tables.sms_out=sms_out
db1.tables.calls=calls_tbl
db1.batch_size=50
db1.retries=2
db1.update_outbound_on_statusreport=yes

#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=yes

# 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=0800-0900
settings.timeframe.normal=0800-0900
settings.timeframe.high=0800-0900

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Users" 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