JBoss AS 7: Standalone vs domain configuration: Problen locating default application router file

611 views
Skip to first unread message

rbieniek

unread,
Apr 25, 2012, 5:27:15 AM4/25/12
to mobicents-public
Hi guys,

I got a little problem regarding the configuration of SIP servlets in
JBoss AS7 when running in domain mode. I understand the configuration
in the standalone mode and got a working configration.

For running in domain mode I performed the following steps:
1) Cloned the existing 'full' profile to the new profile 'full-sip'*
2) Added the subsystem configuration:
<subsystem xmlns="urn:org.mobicents:sip-servlets-as7:1.0"
application-router="${jboss.domain.config.dir}/
dars/mobicents-dar.properties"
stack-properties="${jboss.domain.config.dir}/
mss-sip-stack.properties"
path-name="gov.nist"
app-dispatcher-
class="org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl"
concurrency-control-
mode="SipApplicationSession"
congestion-control-interval="-1">
<connector name="sip-udp" protocol="SIP/2.0"
scheme="sip" socket-binding="sip-udp"/>
<connector name="sip-tcp" protocol="SIP/2.0"
scheme="sip" socket-binding="sip-tcp"/>
<connector name="sip-tls" protocol="SIP/2.0"
scheme="sip" socket-binding="sip-tls"/>
</subsystem>
3) Added a socket binding group:
<socket-binding-group name="full-sockets-sip" default-
interface="public">
<!-- Needed for server groups using the 'full' profile --
>
<socket-binding name="ajp" port="8009"/>
<socket-binding name="http" port="8080"/>
<socket-binding name="https" port="8443"/>
<socket-binding name="jacorb" interface="unsecure"
port="3528"/>
<socket-binding name="jacorb-ssl" interface="unsecure"
port="3529"/>
<socket-binding name="messaging" port="5445"/>
<socket-binding name="messaging-throughput" port="5455"/>
<socket-binding name="sip-udp" port="5080"/>
<socket-binding name="sip-tcp" port="5080"/>
<socket-binding name="sip-tls" port="5081"/>
<socket-binding name="osgi-http" interface="management"
port="8090"/>
<socket-binding name="remoting" port="4447"/>
<socket-binding name="txn-recovery-environment"
port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
<outbound-socket-binding name="mail-smtp">
<remote-destination host="localhost" port="25"/>
</outbound-socket-binding>
</socket-binding-group>
4) Created a server in the management console with the profile 'full-
sip' and the socket binding group 'full-sockets-sip'

When the server starts the start-up of the SIP servlet container
breaks with:

[Server:server-one] 11:07:08,731 WARN [mss-jboss.sip] (MSC service
thread 1-3) using default tls security policy
[Server:server-two] 11:07:08,793 INFO
[org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3)
Starting Coyote HTTP/1.1 on http--192.168.9.1-8230
[Server:server-one] 11:07:08,813 INFO [org.jboss.as.jacorb] (MSC
service thread 1-7) JBAS016330: CORBA ORB Service started
[Server:server-one] 11:07:08,887 INFO [mss-jboss.sip] (MSC service
thread 1-3) the sip stack timer
gov.nist.javax.sip.stack.timers.DefaultSipTimer has been started
[Server:server-one] 11:07:08,888 INFO
[org.mobicents.servlet.sip.catalina.SipStandardService] (MSC service
thread 1-3) no AddressResolver will be used since none has been
specified.
[Server:server-one] 11:07:08,889 INFO
[org.mobicents.servlet.sip.catalina.SipStandardService] (MSC service
thread 1-3) SIP stack initialized
[Server:server-one] 11:07:08,890 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) SIP Base Timer Interval set to 500ms
[Server:server-one] 11:07:08,890 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) SIP Timer T2 Interval set to 4000ms
[Server:server-one] 11:07:08,891 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) SIP Timer T4 Interval set to 5000ms
[Server:server-one] 11:07:08,891 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) SIP Timer D Interval set to 32000ms
[Server:server-one] 11:07:08,896 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) Memory threshold set to 95%
[Server:server-one] 11:07:08,897 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) Back To Normal Memory threshold set to 90%
[Server:server-one] 11:07:08,898 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) Congestion Control policy set to ErrorResponse
[Server:server-one] 11:07:08,899 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) Queue Size set to 1500
[Server:server-one] 11:07:08,900 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) Back To Normal Queue Size set to 1300
[Server:server-one] 11:07:08,901 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) Gathering Statistics set to true
[Server:server-one] 11:07:08,901 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) Container wide Concurrency Control set to None
[Server:server-one] 11:07:08,902 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) Bypass Request Executor enabled ?true
[Server:server-one] 11:07:08,903 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) Bypass Response Executor enabled ?true
[Server:server-one] 11:07:08,904 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3) Using the Service Provider Framework to load the
application router provider
[Server:server-one] 11:07:08,937 INFO
[org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC
service thread 1-3)
org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl@24367013
Using the following Application Router instance:
org.mobicents.servlet.sip.router.DefaultApplicationRouter@71f801f7
[Server:server-one] 11:07:08,954 FATAL
[org.mobicents.servlet.sip.router.DefaultApplicationRouterParser] (MSC
service thread 1-3) Cannot find the default application router
file ! : java.net.MalformedURLException
[Server:server-one] at java.net.URL.<init>(URL.java:601) [rt.jar:
1.6.0_20]
[Server:server-one] at java.net.URL.<init>(URL.java:464) [rt.jar:
1.6.0_20]
[Server:server-one] at java.net.URL.<init>(URL.java:413) [rt.jar:
1.6.0_20]
[Server:server-one] at
org.mobicents.servlet.sip.router.DefaultApplicationRouterParser.init(DefaultApplicationRouterParser.java:
82) [sip-servlets-application-router-1.8.0-SNAPSHOT.jar:1.8.0-
SNAPSHOT]
[Server:server-one] at
org.mobicents.servlet.sip.router.DefaultApplicationRouter.init(DefaultApplicationRouter.java:
406) [sip-servlets-application-router-1.8.0-SNAPSHOT.jar:1.8.0-
SNAPSHOT]
[Server:server-two] 11:07:08,957 WARN [org.jboss.as.messaging] (MSC
service thread 1-4) JBAS011600: AIO wasn't located on this platform,
it will fall back to using pure Java NIO. If your platform is Linux,
install LibAIO to enable the AIO journal
[Server:server-one] at
org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl.init(SipApplicationDispatcherImpl.java:
311) [sip-servlets-impl-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
[Server:server-one] at
org.mobicents.servlet.sip.catalina.SipStandardService.initialize(SipStandardService.java:
283) [sip-servlets-as7-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
[Server:server-one] at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
445) [jbossweb-7.0.13.Final.jar:]
[Server:server-one] at
org.apache.catalina.core.StandardServer.init(StandardServer.java:404)
[jbossweb-7.0.13.Final.jar:]
[Server:server-one] at
org.mobicents.as7.SipServerService.start(SipServerService.java:170)
[jboss-as7-mobicents-1.8.0-SNAPSHOT.jar:1.8.0-SNAPSHOT]
[Server:server-one] at org.jboss.msc.service.ServiceControllerImpl
$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-
msc-1.0.2.GA.jar:1.0.2.GA]
[Server:server-one] at org.jboss.msc.service.ServiceControllerImpl
$StartTask.run(ServiceControllerImpl.java:1746) [jboss-
msc-1.0.2.GA.jar:1.0.2.GA]
[Server:server-one] at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_20]
[Server:server-one] at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_20]
[Server:server-one] at java.lang.Thread.run(Thread.java:619)
[rt.jar:1.6.0_20]
[Server:server-one]
[Host Controller] 11:07:08,976 INFO
[org.jboss.as.domain.controller.mgmt] (proxy-threads - 1) JBAS010920:
Server [Server:server-one] registered using connection [Channel ID
4ac1587d (inbound) of Remoting connection 60b07af1 to /
192.168.9.1:33247]
[Server:server-one] 11:07:09,016 ERROR [org.jboss.msc.service.fail]
(MSC service thread 1-3) MSC00001: Failed to start service jboss.sip:
org.jboss.msc.service.StartException in service jboss.sip: JBAS018009:
Error starting web container
[Server:server-one] at
org.mobicents.as7.SipServerService.start(SipServerService.java:173)
[Server:server-one] at org.jboss.msc.service.ServiceControllerImpl
$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-
msc-1.0.2.GA.jar:1.0.2.GA]
[Server:server-one] at org.jboss.msc.service.ServiceControllerImpl
$StartTask.run(ServiceControllerImpl.java:1746) [jboss-
msc-1.0.2.GA.jar:1.0.2.GA]
[Server:server-one] at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_20]
[Server:server-one] at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_20]
[Server:server-one] at java.lang.Thread.run(Thread.java:619)
[rt.jar:1.6.0_20]
[Server:server-one] Caused by: java.lang.IllegalArgumentException: The
Default Application Router file Location : null is not valid !
[Server:server-one] at
org.mobicents.servlet.sip.router.DefaultApplicationRouterParser.init(DefaultApplicationRouterParser.java:
85)
[Server:server-one] at
org.mobicents.servlet.sip.router.DefaultApplicationRouter.init(DefaultApplicationRouter.java:
406)
[Server:server-one] at
org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl.init(SipApplicationDispatcherImpl.java:
311)
[Server:server-one] at
org.mobicents.servlet.sip.catalina.SipStandardService.initialize(SipStandardService.java:
283)
[Server:server-one] at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
445)
[Server:server-one] at
org.apache.catalina.core.StandardServer.init(StandardServer.java:404)
[Server:server-one] at
org.mobicents.as7.SipServerService.start(SipServerService.java:170)
[Server:server-one] ... 5 more
[Server:server-one] Caused by: java.net.MalformedURLException
[Server:server-one] at java.net.URL.<init>(URL.java:601) [rt.jar:
1.6.0_20]
[Server:server-one] at java.net.URL.<init>(URL.java:464) [rt.jar:
1.6.0_20]
[Server:server-one] at java.net.URL.<init>(URL.java:413) [rt.jar:
1.6.0_20]
[Server:server-one] at
org.mobicents.servlet.sip.router.DefaultApplicationRouterParser.init(DefaultApplicationRouterParser.java:
82)
[Server:server-one] ... 11 more
[Server:server-one]

I locate the default application router file as $
{jboss.domain.config.dir}/dars/mobicents-dar.properties.

This setup works fine in the standalone mode but fails in the domain
mode.

Any idea what I missed here?

Thx in advance,

rb

Jean Deruelle

unread,
Apr 26, 2012, 8:53:49 AM4/26/12
to mobicent...@googlegroups.com
maybe it did interpreted the variable correctly. You may want to try with a hard coded value such as application-router="dars/mobicents-dar.properties"

Jean

rbieniek

unread,
Apr 26, 2012, 12:36:37 PM4/26/12
to mobicents-public
Thanks for the answer but I had tried that out before but no luck. If
I set the application router file via the relevant system property
directly everything works just fine. So I think there must be some
difference in the XML parsing when it comes to running in domain mode
versus running in standalone mode

rb

On 26 Apr., 14:53, Jean Deruelle <jean.derue...@gmail.com> wrote:
> maybe it did interpreted the variable correctly. You may want to try with a
> hard coded value such as application-router="dars/mobicents-dar.properties"
>
> Jean
>
> ...
>
> Erfahren Sie mehr »

Jean Deruelle

unread,
Apr 26, 2012, 12:42:29 PM4/26/12
to mobicent...@googlegroups.com
OK Created an issue https://code.google.com/p/sipservlets/issues/detail?id=87 ?
Do you want to take a crack at it and start contributing ? (it's easier than you think)

Jean
Reply all
Reply to author
Forward
0 new messages