tomcat - 部署 mobicents 聊天服务器(sip servlet)时出错

标签 tomcat servlets chat sip

我是 Sip Servlet 的新手。 我已按照 http://www.mobicents.org/chatserver.html 中的以下步骤操作:

  1. 将上述链接中给出的 war 文件 (chatroom-servlet-1.6.0.FINAL.war) 下载到您的 tomcat_home/webapps 目录中。
  2. 将 dar 文件放到 tomcat_home/conf/dars 目录中。 Darwin 件内容: 消息: ("org.mobicents.servlet.sip.example.ChatroomApplication","DAR:From", "ORIGINATING", "", "NO_ROUTE", "0") 注册: ("org.mobicents.servlet.sip.example.ChatroomApplication", "DAR:From", "ORIGINATING", "", "NO_ROUTE", "0")
  3. 在服务 xml 标记中指定,tomcat_home/conf/server.xml 文件的 darConfigurationFileLocation 属性:conf/dars/chatserver-dar.properties
  4. 然后运行 ​​Tomcat 并在浏览器上提供 URL:“http://127.0.0.1:8080/chatroom-servlet-1.6.0.FINAL”

运行 tomcat 服务器时没有错误,但运行应用程序浏览器后显示 404 页面未找到。 请帮我解决这个问题。我正在尝试同时使用 tomcat 和 JBoss,但无法在两者中运行该应用程序。

最佳答案

此 servlet 不响应 HTTP 请求。它应该与 SIP 客户端一起工作,在它们之间交换消息。我认为您错过了所链接页面的最后一部分:

How to play with it Starts Two SIP Chat Clients. Point them to sip:just4fun@127.0.0.1:5080 Type your message and then click on the send button You should see the messages in both clients once they are both in the chat server (that is when they sent at least one message to it).

关于tomcat - 部署 mobicents 聊天服务器(sip servlet)时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25961700/

相关文章:

java - 在本地运行 Heroku Java 教程时 Tomcat 未启动; "A child container failed during start"找不到 webapp 路径

Tomcat 7 : still Cannot Log in Manager Application AFTER MODIFIED USERNAME & PW

java - 按下提交按钮后显示 404 错误并带有 Controller 消息如何解决

java - 使用 Spring 如何在 postHandle 拦截器中以及错误重定向的情况下获取 HttpServletResponse 的内容

java - Chat Application,如何存储聊天记录?

java - Windows Tomcat 服务 jvm -JvmSs 参数

tomcat - Office 2007 MIME 类型的问题,它们在 IE 所有其他浏览器中下载为 *.zip 正常

java - 在硬编码的服务器路径上上传文件 Servlet

java - 检查 JFrame 是否打开

node.js - Facebook 喜欢聊天