BBB 中的奇怪错误记录

BBB 中的奇怪错误记录

我已经安装了大蓝按钮在 Debian Stretch 中。然而,当在第一页中使用“演示”用户登录时,我在 Firefox 中收到 Tomcat/Java 错误,抱怨缺少bbb_api_conf.jsp文件,如下所示。

该怎么办?

HTTP Status 500 - /demo1.jsp (line: 38, column: 1) /bbb_api.jsp (line: 36, column: 1) File [bbb_api_conf.jsp] not found

type Exception report

message /demo1.jsp (line: 38, column: 1) /bbb_api.jsp (line: 36, column: 1) File [bbb_api_conf.jsp] not found

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /demo1.jsp (line: 38, column: 1) /bbb_api.jsp (line: 36, column: 1) File [bbb_api_conf.jsp] not found
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:291)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:97)
    org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:348)
    org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:381)
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484)
    org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1800)
    org.apache.jasper.compiler.Parser.parse(Parser.java:142)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)
    org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:127)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:197)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:372)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:600)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:368)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/8.5.8 (Debian) logs.

答案1

该错误提示配置文件bbb_api_conf.jsp丢失。

检查github在项目中,可以按原样找到该文件:

<%!
// This is the security salt that must match the value set in the BigBlueButton server
// You can get this by executing `bbb-conf --salt`
String salt = "";

// This is the URL for the BigBlueButton server
String BigBlueButtonURL = "";
%>

根据文件的建议,我们运行:

$sudo bbb-conf --salt

   URL: http://bbb.internal/bigbluebutton/
  Salt: 5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx5

因此该文件将被放置/var/lib/tomcat8/webapps/demo/bbb_api_conf.jsp为:

<%!
// This is the security salt that must match the value set in the BigBlueButton server
// You can get this by executing `bbb-conf --salt`
String salt = "5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx5";

// This is the URL for the BigBlueButton server
String BigBlueButtonURL = "http://bbb.internal/bigbluebutton/";
%>

并且还需要做的是:

sudo chown tomcat8.tomcat8 /var/lib/tomcat8/webapps/demo

之后,BBB 正确打开。

bbb

相关内容