You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by "l.x" <al...@gemalto.com> on 2012/07/31 16:01:37 UTC

TomEE+ plus Mobicents Sip Servlet Container

Hi all,

i am having troubles getting TomEE+ to work in combination with 
http://code.google.com/p/sipservlets/wiki/Welcome?tm=6 Mobicents Sip
Servlets 
 
Here is what I tried
-----
*1) SipServlet/Tomcat7 bundle with TomEE+ WAR * 

I installed 
http://sourceforge.net/projects/mobicents/files/Mobicents%20Sip%20Servlets/Mobicents%20Sip%20Servlets%201.7.0.FINAL/mss-1.7.0.FINAL-apache-tomcat-7.0.26-1204061634.zip/download
MSS Tomcat 7.0.26   and deployed 
http://www.apache.org/dyn/closer.cgi/openejb/openejb-4.0.0/tomee-plus-webapp-4.0.0.war
TomEE+ 4.0.0 WAR  

I ended up with the following error:

SEVERE: OpenEJB has encountered a fatal error and cannot be started:
Assembler failed to build the container system.
org.apache.openejb.OpenEJBException:
org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
constructor: public org.apache.tomee.catalina.TomcatSecurityService()


I did not investigate too  much but went for the following approach

*2)TomEE+ 1.0.0 release with Mobicents Sip Servlet (MSS)*

I installed the 
http://www.apache.org/dyn/closer.cgi/openejb/openejb-4.0.0/apache-tomee-1.0.0-plus.zip
TomEE+ 1.0.0  release and merged all libraries and required configuration
from the 
http://sourceforge.net/projects/mobicents/files/Mobicents%20Sip%20Servlets/Mobicents%20Sip%20Servlets%201.7.0.FINAL/mss-1.7.0.FINAL-apache-tomcat-7.0.26-1204061634.zip/download
MSS Tomcat 7.0.26   into the TomEE+ installation.

Starting the server works fine, Sip Server also starts without any issue and
all SIP Connectors are setup for TCP und UDP on port 5080. Everything is
good so far.
But as soon as I deplay a Sip Servlet application (e.g. 
https://repository.jboss.org/nexus/content/groups/public/org/mobicents/servlet/sip/example/simple-sip-servlet/1.7.2/simple-sip-servlet-1.7.2.war
Simple Sip Servlet ) it fails to start with the following error:

SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Sip-Servlets].StandardHost[localhost].StandardContext[/simple-sip-servlet-1.7.2]]

Please note: The very same application works fine on the Mobicents Sip
Servlet Tomcat Bundle
 

Please find below the full error stack:

31.07.2012 14:13:56 org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Sip-Servlets].StandardHost[localhost].StandardContext[/simple-sip-servlet-1.7.2]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
	at
org.mobicents.servlet.sip.catalina.SipHostConfig.deployWAR(SipHostConfig.java:149)
	at
org.mobicents.servlet.sip.catalina.SipHostConfig.deploySAR(SipHostConfig.java:137)
	at
org.mobicents.servlet.sip.catalina.SipHostConfig.deployWARs(SipHostConfig.java:213)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471)
	at
org.mobicents.servlet.sip.catalina.SipHostConfig.deployApps(SipHostConfig.java:57)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1416)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:346)
	at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1145)
	at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: Something when wrong while
initializing a sip servlets or converged application 
	at
org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl.addSipApplication(SipApplicationDispatcherImpl.java:443)
	at
org.mobicents.servlet.sip.startup.SipStandardContext.startInternal(SipStandardContext.java:433)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 25 more
31.07.2012 14:13:56 org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive
C:\DEV\apache-tomee-plus-1.0.0\webapps\simple-sip-servlet-1.7.2.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Sip-Servlets].StandardHost[localhost].StandardContext[/simple-sip-servlet-1.7.2]]
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:898)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
	at
org.mobicents.servlet.sip.catalina.SipHostConfig.deployWAR(SipHostConfig.java:149)
	at
org.mobicents.servlet.sip.catalina.SipHostConfig.deploySAR(SipHostConfig.java:137)
	at
org.mobicents.servlet.sip.catalina.SipHostConfig.deployWARs(SipHostConfig.java:213)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471)
	at
org.mobicents.servlet.sip.catalina.SipHostConfig.deployApps(SipHostConfig.java:57)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1416)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:346)
	at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1145)
	at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)


I am quite desperate on getting this done, so any help will be highly
appreciated!!

Thanks in advance,
Alex





--
View this message in context: http://openejb.979440.n4.nabble.com/TomEE-plus-Mobicents-Sip-Servlet-Container-tp4656603.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE+ plus Mobicents Sip Servlet Container

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Well the exception is an app one, not sure how to help you more...
Le 31 juil. 2012 18:44, "l.x" <al...@gemalto.com> a écrit :

> Hi Romain,
>
> the application name is well defined in the sip.xml of the WAR file:
>
> <sip-app>
>
> <app-name>org.mobicents.servlet.sip.example.SimpleApplication</app-name>
> ...
> </sip-app>
>
>
> And since the application works fine in the MSS-Tomcat bundle, i assume
> there is no issue with the application name.
>
> BR,
> Alex
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TomEE-plus-Mobicents-Sip-Servlet-Container-tp4656603p4656605.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: TomEE+ plus Mobicents Sip Servlet Container

Posted by "l.x" <al...@gemalto.com>.
Hi Romain,

the application name is well defined in the sip.xml of the WAR file:

<sip-app>
	<app-name>org.mobicents.servlet.sip.example.SimpleApplication</app-name>
...
</sip-app>


And since the application works fine in the MSS-Tomcat bundle, i assume
there is no issue with the application name.

BR,
Alex




--
View this message in context: http://openejb.979440.n4.nabble.com/TomEE-plus-Mobicents-Sip-Servlet-Container-tp4656603p4656605.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE+ plus Mobicents Sip Servlet Container

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

didnt you forget to specify sipApplicationName?

Here the exception is not in tomee but in sip and that's not a technical
exception ;).

- Romain


2012/7/31 l.x <al...@gemalto.com>

> Hi all,
>
> i am having troubles getting TomEE+ to work in combination with
> http://code.google.com/p/sipservlets/wiki/Welcome?tm=6 Mobicents Sip
> Servlets
>
> Here is what I tried
> -----
> *1) SipServlet/Tomcat7 bundle with TomEE+ WAR *
>
> I installed
>
> http://sourceforge.net/projects/mobicents/files/Mobicents%20Sip%20Servlets/Mobicents%20Sip%20Servlets%201.7.0.FINAL/mss-1.7.0.FINAL-apache-tomcat-7.0.26-1204061634.zip/download
> MSS Tomcat 7.0.26   and deployed
>
> http://www.apache.org/dyn/closer.cgi/openejb/openejb-4.0.0/tomee-plus-webapp-4.0.0.war
> TomEE+ 4.0.0 WAR
>
> I ended up with the following error:
>
> SEVERE: OpenEJB has encountered a fatal error and cannot be started:
> Assembler failed to build the container system.
> org.apache.openejb.OpenEJBException:
> org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
> public org.apache.tomee.catalina.TomcatSecurityService(): Error invoking
> constructor: public org.apache.tomee.catalina.TomcatSecurityService()
>
>
> I did not investigate too  much but went for the following approach
>
> *2)TomEE+ 1.0.0 release with Mobicents Sip Servlet (MSS)*
>
> I installed the
>
> http://www.apache.org/dyn/closer.cgi/openejb/openejb-4.0.0/apache-tomee-1.0.0-plus.zip
> TomEE+ 1.0.0  release and merged all libraries and required configuration
> from the
>
> http://sourceforge.net/projects/mobicents/files/Mobicents%20Sip%20Servlets/Mobicents%20Sip%20Servlets%201.7.0.FINAL/mss-1.7.0.FINAL-apache-tomcat-7.0.26-1204061634.zip/download
> MSS Tomcat 7.0.26   into the TomEE+ installation.
>
> Starting the server works fine, Sip Server also starts without any issue
> and
> all SIP Connectors are setup for TCP und UDP on port 5080. Everything is
> good so far.
> But as soon as I deplay a Sip Servlet application (e.g.
>
> https://repository.jboss.org/nexus/content/groups/public/org/mobicents/servlet/sip/example/simple-sip-servlet/1.7.2/simple-sip-servlet-1.7.2.war
> Simple Sip Servlet ) it fails to start with the following error:
>
> SEVERE: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
>
> [StandardEngine[Sip-Servlets].StandardHost[localhost].StandardContext[/simple-sip-servlet-1.7.2]]
>
> Please note: The very same application works fine on the Mobicents Sip
> Servlet Tomcat Bundle
>
>
> Please find below the full error stack:
>
> 31.07.2012 14:13:56 org.apache.catalina.core.ContainerBase
> addChildInternal
> SEVERE: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
>
> [StandardEngine[Sip-Servlets].StandardHost[localhost].StandardContext[/simple-sip-servlet-1.7.2]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
>         at
>
> org.mobicents.servlet.sip.catalina.SipHostConfig.deployWAR(SipHostConfig.java:149)
>         at
>
> org.mobicents.servlet.sip.catalina.SipHostConfig.deploySAR(SipHostConfig.java:137)
>         at
>
> org.mobicents.servlet.sip.catalina.SipHostConfig.deployWARs(SipHostConfig.java:213)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471)
>         at
>
> org.mobicents.servlet.sip.catalina.SipHostConfig.deployApps(SipHostConfig.java:57)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1416)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
>         at
> org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:346)
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1145)
>         at
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.IllegalArgumentException: Something when wrong while
> initializing a sip servlets or converged application
>         at
>
> org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl.addSipApplication(SipApplicationDispatcherImpl.java:443)
>         at
>
> org.mobicents.servlet.sip.startup.SipStandardContext.startInternal(SipStandardContext.java:433)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 25 more
> 31.07.2012 14:13:56 org.apache.catalina.startup.HostConfig deployWAR
> SEVERE: Error deploying web application archive
> C:\DEV\apache-tomee-plus-1.0.0\webapps\simple-sip-servlet-1.7.2.war
> java.lang.IllegalStateException: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
>
> [StandardEngine[Sip-Servlets].StandardHost[localhost].StandardContext[/simple-sip-servlet-1.7.2]]
>         at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:898)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
>         at
>
> org.mobicents.servlet.sip.catalina.SipHostConfig.deployWAR(SipHostConfig.java:149)
>         at
>
> org.mobicents.servlet.sip.catalina.SipHostConfig.deploySAR(SipHostConfig.java:137)
>         at
>
> org.mobicents.servlet.sip.catalina.SipHostConfig.deployWARs(SipHostConfig.java:213)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471)
>         at
>
> org.mobicents.servlet.sip.catalina.SipHostConfig.deployApps(SipHostConfig.java:57)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1416)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
>         at
> org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:346)
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1145)
>         at
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
>
>
> I am quite desperate on getting this done, so any help will be highly
> appreciated!!
>
> Thanks in advance,
> Alex
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TomEE-plus-Mobicents-Sip-Servlet-Container-tp4656603.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>