|
Re: extension point [org.eclipse.birt.report.model.reportItemModel] is not found The output form [message #157449 is a reply to message #157089] |
Mon, 01 May 2006 15:56 |
|
Take a look at the attached example. You will need to create a new web app,
like WebReport, and put all the jars from the Report Engine directory
(Report Engine Download) in the lib folder under WEB-INF. Copy the plugins
(Below Report Engine Directory) directory to the new webapps/webreport
directory.
So you would have
webapps/webreport/plugins (plugins from the RE directory)
and
webapps/webreport/WEB-INF/lib (all the RE jars)
Source for the servlet is in the jar file.
Jason
"Girish" <girisha@cybage.com> wrote in message
news:e2t31s$g5t$1@utils.eclipse.org...
> Hello People ,
> I have the following code in a jsp file which should just render a very
> simple rptdesign page.
> However, when I try to view my jsp in a browser, I get the following
> exception at the 'runAndRenderReport.run();' statement.
>
> SEVERE: Message:The extension point
> [org.eclipse.birt.report.model.reportItemModel] is not found. Error
> code:EXTENSION_POINT_NOT_FOUND
> org.eclipse.birt.report.engine.api.EngineException: The
> output format html is not supported.
>
> I have seen numerous similar queries posted on the group but none of them
> contained a reply. I hope this issue has a solution.
>
> Kindly help me out with this matter. Thanks in advance.
>
>
> myReport.jsp
>
> String reportToRender = "C:/Program Files/Apache Group/Tomcat
> 4.1/webapps/birt-viewer/report/renderReport.rptdesign";
> EngineConfig config1 = new EngineConfig();
> config1.setEngineHome("C:/Program Files/Apache
> Group/Tomcat4.1/webapps/birt-viewer/");
> ReportEngine engine = new ReportEngine(config1);
> IReportRunnable report = null;
> try{
> report = engine.openReportDesign(reportToRender);
> }
> catch (EngineException e) {
> System.err.println("Report " + reportToRender + " not found!\n");
> engine.destroy();
>
> }
> IRunAndRenderTask runAndRenderReport = null;
> runAndRenderReport = engine.createRunAndRenderTask(report);
>
> HTMLRenderOption html_ro = new HTMLRenderOption();
> html_ro.setOutputStream(response.getOutputStream());
> html_ro.setOutputFormat("html");
> runAndRenderReport.setRenderOption(html_ro);
> try{
> runAndRenderReport.run();
> }
> catch(EngineException e){
> e.printStackTrace();
>
> }
> runAndRenderReport.close();
> engine.destroy();
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03390 seconds