RestComm / sip-servlets

Leading SIP - IMS - WebRTC Application Server
http://www.restcomm.com/
GNU Affero General Public License v3.0
240 stars 181 forks source link

Failed to process phase POST_MODULE of deployment "click2call.war" #368

Open chocobloc opened 6 years ago

chocobloc commented 6 years ago

Hello! tried to deploy SIP servlets on a amd64 / Windows 10 pro laptop. Did it for the first time, so apologies for any confusion. standalone.bat alone caused some exceptions due to click2call.war and websockets-sip-servlet.war could not be deployed. But after trying out standalone-sip config file this went successful, too. Some probably minor things during start, please see above.

14:22:58,896 ERROR [org.jboss.as.server.deployment] (MSC service thread 1-8) Uh oh -- JNDI problem !: javax.servlet.ServletException: Uh oh -- JNDI problem ! at org.mobicents.servlet.sip.example.SimpleSipServlet.init(SimpleSipServlet.java:68) at org.mobicents.io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:134) [sip-servlets-as10-3.2.0-89.jar:3.2.0-89] at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78) [wildfly-undertow-10.0.0.Final.jar:10.0.0.Final] at org.mobicents.io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117) [sip-servlets-as10-3.2.0-89.jar:3.2.0-89] at org.mobicents.servlet.sip.undertow.SipServletImpl$DefaultInstanceStrategy.start(SipServletImpl.java:316) [sip-servlets-as10-3.2.0-89.jar:3.2.0-89] at org.mobicents.servlet.sip.undertow.SipServletImpl.createServlet(SipServletImpl.java:217) [sip-servlets-as10-3.2.0-89.jar:3.2.0-89] at org.mobicents.servlet.sip.undertow.SipContextImpl.start(SipContextImpl.java:251) [sip-servlets-as10-3.2.0-89.jar:3.2.0-89] at org.mobicents.as10.deployment.SIPWebContext.start(SIPWebContext.java:340) [jboss-as10-restcomm-3.2.0-89.jar:3.2.0-89] at org.mobicents.as10.deployment.UndertowSipDeploymentService.start(UndertowSipDeploymentService.java:68) [jboss-as10-restcomm-3.2.0-89.jar:3.2.0-89] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.6.Final.jar:1.2.6.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.6.Final.jar:1.2.6.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_144] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_144] at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_144] Caused by: javax.naming.NameNotFoundException: java:comp/env at org.jboss.as.naming.InitialContext$DefaultInitialContext.findContext(InitialContext.java:189) [wildfly-naming-10.0.0.Final.jar:10.0.0.Final] at org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:233) [wildfly-naming-10.0.0.Final.jar:10.0.0.Final] at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:193) [wildfly-naming-10.0.0.Final.jar:10.0.0.Final] at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:189) [wildfly-naming-10.0.0.Final.jar:10.0.0.Final] at javax.naming.InitialContext.lookup(InitialContext.java:417) [rt.jar:1.8.0_144] at javax.naming.InitialContext.lookup(InitialContext.java:417) [rt.jar:1.8.0_144] at org.mobicents.servlet.sip.example.SimpleSipServlet.init(SimpleSipServlet.java:64) ... 13 more

14:22:59,114 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 56) WFLYUT0021: Registered web context: /sip-servlets-management 14:22:59,341 INFO [org.mobicents.servlet.sip.example.SimpleSipServlet] (MSC service thread 1-3) the simple sip servlet has been started 14:22:59,342 INFO [org.mobicents.servlet.sip.example.SimpleSipServlet] (MSC service thread 1-3) Sip Factory ref from JNDI : org.mobicents.servlet.sip.message.SipFactoryFacade@abf938c 14:22:59,343 INFO [org.mobicents.servlet.sip.undertow.SipProtocolHandler] (MSC service thread 1-3) Sip Connector started on ip address: 127.0.0.1, port 5081, transport tls, useStun false, stunAddress null, stunPort : -1, useStaticAddress: false, staticServerAddress null, staticServerPort -1 14:22:59,345 INFO [org.mobicents.servlet.sip.undertow.SipProtocolHandler] (MSC service thread 1-2) Sip Connector started on ip address: 127.0.0.1, port 5082, transport ws, useStun false, stunAddress null, stunPort : -1, useStaticAddress: false, staticServerAddress null, staticServerPort -1 14:22:59,345 INFO [org.mobicents.servlet.sip.undertow.SipProtocolHandler] (MSC service thread 1-8) Sip Connector started on ip address: 127.0.0.1, port 5080, transport udp, useStun false, stunAddress null, stunPort : -1, useStaticAddress: false, staticServerAddress null, staticServerPort -1 14:22:59,344 INFO [org.mobicents.servlet.sip.undertow.SipProtocolHandler] (MSC service thread 1-7) Sip Connector started on ip address: 127.0.0.1, port 5083, transport wss, useStun false, stunAddress null, stunPort : -1, useStaticAddress: false, staticServerAddress null, staticServerPort -1 14:22:59,344 INFO [org.mobicents.servlet.sip.undertow.SipProtocolHandler] (MSC service thread 1-4) Sip Connector started on ip address: 127.0.0.1, port 5080, transport tcp, useStun false, stunAddress null, stunPort : -1, useStaticAddress: false, staticServerAddress null, staticServerPort -1 14:22:59,518 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 56) Initializing Mojarra 2.2.12-jbossorg-2 20150729-1131 for context '/websockets-sip-servlet' 14:23:00,155 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 56) WFLYUT0021: Registered web context: /websockets-sip-servlet 14:23:00,162 INFO [org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC service thread 1-8) No concurrency control mode for application WebsocketSample , defaulting to the container wide one : SipApplicationSession 14:23:00,163 INFO [org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC service thread 1-8) org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl$AddAppAction@1ce96ac9 the following sip servlet application has been added : WebsocketSample 14:23:00,163 INFO [org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC service thread 1-8) It contains the following Sip Servlets : 14:23:00,168 INFO [org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC service thread 1-8) SipApplicationName : WebsocketSample/ServletName : WebSocketB2BUASipServlet 14:23:00,179 INFO [org.mobicents.servlet.sip.example.WebSocketB2BUASipServlet] (MSC service thread 1-8) the simple sip servlet has been started 14:23:00,633 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 60) WFLYUT0021: Registered web context: /media-jsr309-servlet 14:23:00,645 INFO [org.mobicents.javax.media.mscontrol.spi.DriverImpl] (MSC service thread 1-2) Initializing MGCP on /127.0.0.1:2727 14:23:00,648 WARN [org.mobicents.protocols.mgcp.stack.JainMgcpStackImpl] (MSC service thread 1-2) Failed to locate properties file, using default values 14:23:00,651 INFO [org.mobicents.protocols.mgcp.stack.JainMgcpStackImpl] (MSC service thread 1-2) Jain Mgcp stack bound to IP /127.0.0.1 and UDP port 2727 14:23:00,652 INFO [stdout] (MSC service thread 1-2) Jain Mgcp stack bound to IP /127.0.0.1 and UDP port 2727 14:23:00,675 INFO [org.mobicents.servlet.sip.example.PlayerServlet] (MSC service thread 1-2) started MGCP Stack on 127.0.0.1and port 2727 14:23:00,676 INFO [org.mobicents.servlet.sip.example.PlayerServlet] (MSC service thread 1-2) MGCP Stack already started on 127.0.0.1and port 2727 14:23:00,677 INFO [org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC service thread 1-2) No concurrency control mode for application org.mobicents.servlet.sip.example.MediaJSR309Application , defaulting to the container wide one : SipApplicationSession 14:23:00,679 INFO [org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC service thread 1-2) org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl$AddAppAction@1ce96ac9 the following sip servlet application has been added : org.mobicents.servlet.sip.example.MediaJSR309Application 14:23:00,680 INFO [org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC service thread 1-2) It contains the following Sip Servlets : 14:23:00,681 INFO [org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC service thread 1-2) SipApplicationName : org.mobicents.servlet.sip.example.MediaJSR309Application/ServletName : PromptAndRecordServlet 14:23:00,681 INFO [org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl] (MSC service thread 1-2) SipApplicationName : org.mobicents.servlet.sip.example.MediaJSR309Application/ServletName : PromptAndCollectServlet 14:23:00,720 INFO [org.jboss.as.server] (ServerService Thread Pool -- 32) WFLYSRV0010: Deployed "websockets-sip-servlet.war" (runtime-name : "websockets-sip-servlet.war") 14:23:00,726 INFO [org.jboss.as.server] (ServerService Thread Pool -- 32) WFLYSRV0010: Deployed "sip-servlets-management.war" (runtime-name : "sip-servlets-management.war") 14:23:00,728 INFO [org.jboss.as.server] (ServerService Thread Pool -- 32) WFLYSRV0010: Deployed "media-jsr309-servlet.war" (runtime-name : "media-jsr309-servlet.war") 14:23:00,728 INFO [org.jboss.as.server] (ServerService Thread Pool -- 32) WFLYSRV0010: Deployed "jolokia.war" (runtime-name : "jolokia.war") 14:23:00,729 INFO [org.jboss.as.server] (ServerService Thread Pool -- 32) WFLYSRV0010: Deployed "click2call.war" (runtime-name : "click2call.war") 14:23:00,860 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management 14:23:00,862 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990 14:23:00,863 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) started in 8001ms - Started 653 of 931 services (381 services are lazy, passive or on-demand)