Click-To-Call error:"javax.naming.NameNotFoundException: sip not bound"

147 views
Skip to first unread message

Murat Döner

unread,
Apr 7, 2010, 9:17:31 AM4/7/10
to mobicent...@googlegroups.com
 I tried to deploy this example on Jboss which comes under the  mobicents-media-server-all-1.0.2.GA\jboss-4.2.3.GA path.
 I just put  the war file under deploy directory.
 And "http://localhost:8080/click-to-call-servlet-1.7-SNAPSHOT/simplecall.html" on this, i submit without changing the default values.
 And get this error:

15:56:52,959 INFO  [SimpleWebServlet] the SimpleWebServlet has been started
16:09:35,708 ERROR [[ClickToCall]] Allocate exception for servlet ClickToCall
javax.naming.NameNotFoundException: sip not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
    at org.mobicents.servlet.sip.example.SimpleWebServlet.init(SimpleWebServlet.java:56)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Unknown Source)


  Also what is:
            Context envCtx = (Context) initCtx.lookup("java:comp/env");
            sipFactory = (SipFactory) envCtx.lookup("sip/org.mobicents.servlet.sip.example.SimpleApplication/SipFactory");

  And, how can I implement SipFactory for my companies Sıp Server : sip.mezun.com  ?

Vladimir Ralev

unread,
Apr 7, 2010, 9:34:02 AM4/7/10
to mobicent...@googlegroups.com
The click to call application can be deployed only in a Sip Servlets
Container. You are using the JBoss server from MMS. You shoulduse
Mobicents Sip Servlets 1.2 with JBoss 4.2.3
http://www.mobicents.org/mss-downloads.html

It has Media Server inside and the click to call example i
spre-deployed, no need to download anything else.

2010/4/7 Murat Döner <kur...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages