【发布时间】: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/
【问题讨论】: