HTTP Status 404 - /sms/ error

Any communication concerning the SMS module

Moderators: hugo, alexandre, rmvanarkel

Post Reply
gdkobla
Posts: 26
Joined: Mon Feb 27, 2012 10:10 am

HTTP Status 404 - /sms/ error

Post by gdkobla » Wed Aug 29, 2012 3:55 am

I'm trying to deploy the sms module using the android sms gateway. I have hosted on jelastic.

these are my configuration files,
#########################################################################
# Properties file used by the Driver framework #
# These properties are not specific for any driver implementation #
#########################################################################

#The driver's id and class used the send messages to controller (both mandatory)
engine.id=aioDriver
engine.class=

# Time window used to check for duplicated MO messages (in seconds)
engine.duplicated.messages.timeWindow=1200
# Delay between duplicated messages cleaner executions (in seconds)
engine.messages.digest.cleaner.delay=60

# Thread pool settings used to dispatch the messages to Controller
engine.to.controller.thread.pool.core.size=10
engine.to.controller.thread.pool.max.size=25
engine.to.controller.thread.pool.queue.size=250

# Delay between retries when a message send has failed (in seconds)
engine.retry.failed.messages.delay= 30

# This is the lifetime of the failed messages (in seconds)
engine.failed.messages.validity=600

#Controller connection settings using Web Services
#controller.url=http://localhost:9090/cyclos3_sms_controller
controller.url=
controller.disableCNCheck=true
controller.trustAllCert=true
controller.connection.timeout=120000
controller.read.timeout=120000

#Database settings
db.connection.driverClass=com.mysql.jdbc.Driver
db.connection.querydslTemplatesClass=com.mysema.query.sql.MySQLTemplates
db.connection.url=jdbc:mysql://mysql-excedi.jelastic.servint.net/excediMOBILE
db.connection.username=excediMOBILE
db.connection.password=54321
db.connection.validationQuery=SELECT 1
db.connection.testOnBorrow=true
db.connection.initialSize=0
db.connection.maxActive=8

# message from controller text filter
message.maxLength=160
message.characterForbidden=\u0025,#
message.characterAllowed=\u0024,-,<,>,[,],:,?,\u0021
message.characterToReplace=\u00E1,\u00E9,\u00ED,\u00F3,\u00FA,\u00F1,\u00D1
message.characterReplacement=a,e,i,o,u,n,N
message.characterForbidenReplacement=_

# Phone composition
# The driver doesn't accept phone numbers without area code.
phone.with.area.code.len=10
phone.area.code.prefix=
phone.country.code=

# when receive a MO message, this can use a default "to" value (only used if to is null or empty)
phone.to.default=9999


<?xml version="1.0" encoding="UTF-8"?>
<controller language="en" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="config.xsd">
<cyclosInstances>
<cyclosInstance name="excedi" language="en" country="US">
<instanceSettings whenOffline="RETRY"/>
<currencies>
<currency symbol="GHC" default="true">
<alias name="U"/>
<alias name="Un"/>
<alias name="Unit"/>
<alias name="Units"/>
</currency>
</currencies>
<commands>
<command name="confirm" requestConfirmation="false"/>
<command name="requestPayment" requestConfirmation="false">
<parameter name="usePinInConfirm" value="true"/>
</command>
<command name="accountDetails" requestConfirmation="false">
<parameter name="nameLen" value="0"/>
<parameter name="pageSize" value="3"/>
<parameter name="usePin" value="true"/>
</command>
<command name="performPayment" requestConfirmation="false">
<parameter name="usePin" value="true"/>
</command>
<command name="help" requestConfirmation="false"/>
<command name="registration" requestConfirmation="false">
<parameter name="notifyErrorByDriver" value="false"/>
<parameter name="useLoginName" value="true"/>
<parameter name="defaultInitialGroup" value="full"/>
<parameter name="groupPrefix" value="."/>
<paramGroup name="groupAliases">
<parameter name="full" value="5"/>
</paramGroup>
</command>
<command name="infoText" requestConfirmation="false"/>
</commands>
<driverRouting>
<route fromProvider="*" toDriver="aioDriver" usedFromNumber="9999" default="true"/>
</driverRouting>
<connectionSettings rootUrl="http://excedi.jelastic.servint.net" disableCNCheck="true" connectionTimeout="120000" readTimeout="120000" trustAllCert="true" user="" password=""/>
<memberSettings phoneCustomField="mobilePhone" msgParamPrincipalType="mobilePhone" providerCustomField="provider" notifyNotRegisteredUser="false">
<principalSettings regexp="^(\d){10}$"/>
</memberSettings>
</cyclosInstance>
</cyclosInstances>
<driverInstances>
<driverInstance name="aioDriver">
<cyclosRouting>
<route fromTargetNumber="9999" toCyclos="excedi"/>
</cyclosRouting>
<connectionSettings connectionTimeout="120000" readTimeout="120000" disableCNCheck="true" trustAllCert="true"/>
<messageSettings defaultTrace="0"/>
</driverInstance>
</driverInstances>

<globalSettings responseInvalidMessages="false"/>

<databaseSettings username="root" password="">
<url>For AIO, refer to baseDriverConfig DB properties</url>
<driverClassName>com.mysql.jdbc.Driver</driverClassName>
<querydslTemplatesClassName>com.mysema.query.sql.MySQLTemplates</querydslTemplatesClassName>
</databaseSettings>
<sessionSettings removeExpiredDelayInSeconds="120">
<control timeoutInSeconds="300" maxWrongTries="10"/>
<confirmation timeoutInSeconds="300" maxWrongTries="3" maxWrongPinTries="4" useKeyFromDictionaryFirst="true" keyLength="4" pendingsByCommand="3"/>
</sessionSettings>
</controller>



#####################################################
# Specific HTTP driver configuration #
#####################################################

# Ovewrite default values defined in baseDriverconfig.properties
engine.class=nl.strohalm.cyclos.driver.http.engine.HttpGatewayEngine

white.list.hosts=192.168.2.210


#****************** Parameters used to SEND a request to the Gateway ******************
tx.url=http://fe80::2d18:748f:1412:8cd%rmne0:9090/sendsms?
tx.disableCNCheck=true
tx.trustAllCerts=true
tx.apiIdParam=
tx.apiId=
tx.messageParam=text
tx.fromParam=
tx.toParam=phone
tx.countryCodeLen=0
tx.areaCodeLen=0
tx.countryCodeParam=
tx.areaCodeParam=
tx.passwordParam=
tx.userParam=
tx.password=
tx.user=

# HTTP method to send (POST, GET)
tx.method=GET

# MT message, charset encoding
tx.charset=ISO-8859-1

# Regular expression to identify a successful send command
tx.okResponse=.*

tx.httpClient.maxConnection=3
tx.httpClient.connectionTimeout=120000
tx.httpClient.readTimeout=120000

# Provider Configuration
tx.providerParam=
tx.provider.value.DEFAULT=0

#Define the parameter used to send back the trace data
tx.traceParam=trace

#****************** Parameters used when RECEIVE a request from the Gateway ******************
rx.messageParam=text
rx.toParam=to
rx.providerParam=
rx.areaCodeParam=
rx.countryCodeParam=
rx.fromParam=phone

# User and Password access
rx.passwordParam=
rx.userParam=
rx.password=
rx.user=

rx.method=GET

#the response to send back to the invoker
rx.response=OK

#Define the parameter used to read trace data set by the GW
rx.traceParam=
Any help is welcome

bouikstefan
Posts: 1
Joined: Tue Nov 19, 2013 8:41 am

Re: HTTP Status 404 - /sms/ error

Post by bouikstefan » Tue Nov 19, 2013 8:43 am

Hi, have you been able to deploy it? I have the same issue

oscar.cobar
Posts: 6
Joined: Wed Dec 04, 2013 8:04 am

Re: HTTP Status 404 - /sms/ error

Post by oscar.cobar » Thu Dec 05, 2013 2:34 pm

You must check config.xml where is a white list to allow access, and remember that SMS Gateway is allowed to user with ADMIN role defined on $CATALINA_HOME/conf/tomcat-users.xml
If not please do provide log /var/log/catalina.out, just a segment showing error message on Reload /sms attempt.

Post Reply