gwt - 运行 birt 时出现 error.CannotStartupOSGIPlatform 问题

标签 gwt birt

我正在将 Birt 4.6.0 实现到我的 gwt 应用程序中。不幸的是,每当我运行程序的特定部分时,我都会收到以下错误:

org.eclipse.birt.core.exception.BirtException: error.CannotStartupOSGIPlatform at org.eclipse.birt.core.framework.Platform.startup(Platform.java:81)

我进行了一些搜索,其中一个主题提到了一个 permissions error但我不确定那意味着什么。这是什么意思?

编辑 刚刚阅读了另一篇文章,它表明这可能是我的类路径有问题,但我已经将 ReportEngine/lib 中的所有 jar 文件添加到我的构建路径中。有人知道我应该包含哪些 jar 文件吗?

违规代码:

public static synchronized IReportEngine getBirtEngine(ServletContext sc) {
    if (birtEngine == null) {
        EngineConfig config = new EngineConfig();
        java.util.HashMap map = config.getAppContext();;
        map.put(EngineConstants.APPCONTEXT_CLASSLOADER_KEY, SegnalazioniDbManager.class.getClassLoader()); 
        config.setAppContext(map);
        IPlatformContext context = new PlatformServletContext(sc);
        config.setPlatformContext(context);


        try {
            Platform.startup(config); //problem begins here
            .....
            }


  [1]: http://developer.actuate.com/community/forum/index.php?/topic/20933-errorcannotstartuposgiplatform/

最佳答案

是的,确实是权限错误。

相关文件是:

WEB-INF/platform/configuration/org.eclipse.osgi/.manager/.fileTableLock

您需要授予 Birt 用户访问权限。

关于gwt - 运行 birt 时出现 error.CannotStartupOSGIPlatform 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44629066/

相关文章:

css - 在 Birt 中使用外部样式表

mysql - Windows 8.1 64 位 Tomcat 7.0.53 上的 BIRT 4.3.2 给出错误 'Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc. '

java - 使用 BIRT 创建报告

css - GWT CssResource 中的基本算法

java - 验证 GWT 组件需要很长时间

GWT工具包: preprocessing files on client side

java - Google Guice 中的计算常量

java - 如何通过 BIRT API 设置参数并将其传递给 BIRT 报告设计器创建的 BIRT 报告?

javascript - 运行 GWT 开发者模式时出错

mysql - 允许用户在 BIRT 中选择报告参数