Errors deploying (non-sip) web application on startup

68 views
Skip to first unread message

Jeremiah Penery

unread,
Oct 25, 2015, 5:04:40 PM10/25/15
to mobicents-public
I'm exploring the possibility of migrating our applications from Sailfin to Tomcat+Mobicents, but I'm having some weird issues with deployment. Currently, I'm trying this on the mss-3.1.633-apache-tomcat-8.0.26 bundle on CentOS 6.7, but I also tried mss-4.0.21-apache-tomcat-8.0.26 with the same results.

I can start the server and deploy everything with no problems. If I deploy only web (non-sip) applications, it seems fine thereafter, through restarts, etc. I can repeatedly deploy and restart the server with no problems.

However, as soon as I deploy any SIP application, deployment of (some) of the subsequent web applications fails on server startup because it seems to think they should be SIP or converged-SIP applications. If I add a basically empty sip.xml (containing only an app-name tag) to the web application it works, but it seems like a workaround for some incorrect behavior.

Strangely, it doesn't treat axis2.war this way, even though I can't find anything that should distinguish it in this regard from our regular application WARs. Axis2 starts up without any errors - I'm not sure what's causing the container to treat it differently and not try to create a SIP context.

It seems like there's probably some kind of bug in here. Is there some other relevant information I can provide?

Here's part of the log where it's failing to deploy on startup:

Oct 23, 2015 5:53:51 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /root/mob2/mss-3.1.633-apache-tomcat-8.0.26/webapps/test.war
2015-10-23 17:53:51,790 INFO [SipStandardContext] (localhost-startStop-1) Initializing the sip context /test
2015-10-23 17:53:51,791 INFO [SipStandardContext] (localhost-startStop-1) sip context Initialized /test
2015-10-23 17:53:51,794 INFO [SipStandardContext] (localhost-startStop-1) Starting the sip context /test
2015-10-23 17:53:53,469 INFO [ClassFileScanner] (localhost-startStop-1) Annotations docBase : /root/mob2/mss-3.1.633-apache-tomcat-8.0.26
/webapps/test
2015-10-23 17:54:05,983 INFO [SipContextConfig] (localhost-startStop-1) /WEB-INF/sip.xml has not been found !
org.mobicents.servlet.sip.catalina.SipDeploymentException: No app-name present in the sip.xml deployment descriptor or no SipApplication annotation defined
at org.mobicents.servlet.sip.startup.SipContextConfig.checkSipDeploymentRequirements(SipContextConfig.java:219)
at org.mobicents.servlet.sip.startup.SipContextConfig.configureStart(SipContextConfig.java:193)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
at org.mobicents.servlet.sip.startup.SipContextConfig.lifecycleEvent(SipContextConfig.java:90)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5066)
at org.mobicents.servlet.sip.startup.SipStandardContext.startInternal(SipStandardContext.java:437)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
at org.mobicents.servlet.sip.catalina.SipHostConfig.deployWAR(SipHostConfig.java:163)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Oct 23, 2015 5:54:05 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more components marked the context as not correctly configured
Oct 23, 2015 5:54:06 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/test] startup failed due to previous errors
2015-10-23 17:54:06,355 INFO [SipStandardContext] (localhost-startStop-1) sip context didn't started due to errors /test
2015-10-23 17:54:06,355 INFO [SipStandardContext] (localhost-startStop-1) Stopping the sip context/test
2015-10-23 17:54:06,355 INFO [SipStandardContext] (localhost-startStop-1) number of active sip sessions : 0
2015-10-23 17:54:06,355 INFO [SipStandardContext] (localhost-startStop-1) number of active sip application sessions : 0
2015-10-23 17:54:06,367 ERROR [SipStandardContext] (localhost-startStop-1) the application name is null for the following context : /test
2015-10-23 17:54:06,367 INFO [TimerServiceImpl] (localhost-startStop-1) Stopped timer service org.mobicents.servlet.sip.core.timers.TimerServiceImpl@3bbf2ab1
2015-10-23 17:54:06,367 INFO [SipStandardContext] (localhost-startStop-1) sip context stopped /test
Oct 23, 2015 5:54:06 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /root/mob2/mss-3.1.633-apache-tomcat-8.0.26/webapps/test.war has finished in 14,578 ms
Reply all
Reply to author
Forward
0 new messages