MSS with native APR connector on top of jboss as 7.1.2

158 views
Skip to first unread message

Jernej Krmelj

unread,
May 23, 2013, 5:57:01 AM5/23/13
to mobicent...@googlegroups.com
Hello,

I'm building converged SIP+WEB application on top of JBOSS AS 7.1.2.

The web part of application implements jboss HttpEventServlet. For this servlet to run I need to enable native APR connector.

The server start successfully when I don't enable MSS support, but when I run jboss server with MSS support enabled I get following exception:
23-05-2013 11:52:09.587 [MSC service thr] ERROR MSC00001: Failed to start service jboss.web.connector.http: org.jboss.msc.service.StartException in service j
boss.web.connector.http: Failed to start service
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_21]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_21]
        at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_21]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.jni.OS
        at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
        at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:121)
        at org.apache.catalina.connector.Connector.init(Connector.java:983)
        at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        ... 3 more

I use Mobicents Sip Servlets 2.0.0.FINAL.

Is there any additional configuration of MSS required to use native APR connector?

Thanks, Jernej

Jernej Krmelj

unread,
May 28, 2013, 4:40:41 AM5/28/13
to mobicent...@googlegroups.com
Hello,

it seems this problem is related to the jboss starting sequence of it's subsystems. This problem arises always when MSS subsystem is started prior to jboss web subsystem. When jboss web subsystem is started first the problem does not show up. Attached logs show the difference.

I managed to start web subsystem by moving it's definition prior to definition of MSS subsystem in standalone-sip.xml. This seems to resolve our problem for now.

Jernej

Dne četrtek, 23. maj 2013 11:57:01 UTC+2 je oseba Jernej Krmelj napisala:
good_start.log
failed_start.log

Jean Deruelle

unread,
Jul 5, 2013, 8:31:43 AM7/5/13
to mobicents-public
I created an issue for that https://code.google.com/p/sipservlets/issues/detail?id=224 but it seems that the sip subsystem is already after the web subsystem in standalone-sip.xml or I am missing something ?

Jean


--
You received this message because you are subscribed to the Google Groups "mobicents-public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobicents-publ...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
Message has been deleted
0 new messages