【问题标题】:error.CannotStartupOSGIPlatform issue when running birt运行 birt 时出现 error.CannotStartupOSGIPlatform 问题
【发布时间】:2017-06-19 11:12:35
【问题描述】:

我正在将 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/

【问题讨论】:

    标签: gwt birt


    【解决方案1】:

    是的,确实是权限错误。

    相关文件为:

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

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

    【讨论】:

      猜你喜欢
      • 2021-06-14
      • 1970-01-01
      • 2016-06-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-08
      相关资源
      最近更新 更多