OSGI platform failing to start [message #693390] |
Wed, 06 July 2011 07:28  |
Eclipse User |
|
|
|
Hi,
I'm creating a swt/jface viewer to display BIRT graphs. I could do it with a browser RCP but still struggling for viewer as I need an instance of chart but OSGI platform is failing to start.
Here is a code snippet,
IReportEngine engine = null;
EngineConfig config = null;
// Configure the Engine and start the Platform
config = new EngineConfig();
config.setEngineHome("C:/birt-runtime-3_7_0/ReportEngine");
// set log config using ( null, Level ) if you do not want a log file
config.setLogConfig(null, Level.FINE);
//start birt platform and create factories
Platform.startup(config);
Leading to errors,
org.eclipse.birt.core.exception.BirtException: error.CannotStartupOSGIPlatform
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:92)
Please provide some pointers or if any help docs.
Response awaited.
Thanks in advance,
Vrushali.
|
|
|
|
|
|
|
|
|
Re: OSGI platform failing to start [message #695319 is a reply to message #694586] |
Mon, 11 July 2011 09:47   |
Eclipse User |
|
|
|
Hello Jason,
I checked the libs the app .. removed some old libs that were still in the project, but still
continues with the same error!
I Debugs the source code and the error occurs at this point:
09:32:08,710 ERROR [STDERR] org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
09:32:08,713 ERROR [STDERR] at org.eclipse.birt.core.framework.Platform.startup(Platform.java:90)
09:32:08,715 ERROR [STDERR] at org.eclipse.birt.report.service.ReportEngineService.setEngineContext(ReportEngineService.java:328)
09:32:08,716 ERROR [STDERR] at org.eclipse.birt.report.service.BirtViewerReportService.setContext(BirtViewerReportService.java:1022)
09:32:08,717 ERROR [STDERR] at org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.java:62)
...
09:32:08,790 ERROR [STDERR] Caused by: org.eclipse.birt.core.exception.BirtException: Could not start the Framework - C:\jboss-4.2.2.GA\server\default\.\deploy\jdoctor.ear\jdoctor_web.war\WEB-INF\platformC:\jboss-4.2.2.GA\server\default\.\deploy\jdoctor.ear\jdoctor_web.war\WEB-INF\platform
09:32:08,791 ERROR [STDERR] at org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:87)
09:32:08,791 ERROR [STDERR] at org.eclipse.birt.core.framework.Platform.startup(Platform.java:78)
Do you have any idea what might be?
Att,
Robson
|
|
|
|
|
Re: OSGI platform failing to start [message #782361 is a reply to message #694484] |
Mon, 23 January 2012 10:45  |
Eclipse User |
|
|
|
Hi Jason,
I am on migration my app. from BIRT 2.5.2 to 3.7.1. My application uses BIRT for creation PDFs, so i followed the mirgation instructions and put all the libs from ReportEngine/lib to my WEB-INF/lib. The app. worked fine on Tomcat 6 and 7 but on Websphere 8.0.0.2 on Fedora 16 i have get the exception:
"org.eclipse.birt.core.exception.BirtException: error.CannotStartupOSGIPlatform
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:81) "
you have wrote:
>...If you use the pojo
>runtime, make sure all the libs in the reportengine/lib directory are in
>your build path.
does it mean that that it is necesary to have all the libs from re/lib im my build path during the compilation? I compile my app. with maven and for the compilation i use only three artifacts from BIRT re/lib directory:
org.eclipse.birt.runtime_3.7.1.v20110913-1734
com.ibm.icu_4.4.2.v20110208
com.lowagie.text_2.1.7.v201004222200
thanks
|
|
|
Powered by
FUDForum. Page generated in 0.28780 seconds