Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsError in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1016958/#msg_1016958
For that i have followed the sample servlet that is provided here : http://wiki.eclipse.org/Servlet_Example_(BIRT)_2.1
( I have changed - report's name to MainReport.rptdesign in WebReport.java & setEngineHome in BirtEngine.java )
I have added WebViewerExample(renamed it as birt) in the "webapps" directory of "Tomcat". I have also added commonloggin jars in tomcats lib.
It is working fine(i am able to access & see the reports on URL like : h
But the problem arises when I try to access these reports from the eclipse using the servlets in the DynamicWebProject.
I am getting the error http 404 - requested resource is not available.
Please let me know if I am missing some step or doing something wrong
Your help is much appreciated.]]>Brij Kumar2013-03-08T11:03:34-00:00Re: Error in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1017064/#msg_1017064
Jason]]>Jason Weathersby2013-03-08T19:24:00-00:00Re: Error in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1017114/#msg_1017114
But I am still not able to access my reports using the servlet .(But able to access them if I start tomcat using startup.bat and then directly opening the Url h ttp://localhost:8080/birt/frameset?__report=MainReport.rptdesign )
Also copied the jars from ReportEngine\lib to birt\Web-Inf lib (though it already had those jars but i rechecked that by replacing those jars) . Now I am struck. Please help me out.
I am now getting the error ...
... 7 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.birt.core.exception.BirtException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
... 21 more
Mar 09, 2013 6:36:17 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:675)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Mar 09, 2013 6:36:17 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.startup.Catalina.start(Catalina.java:675)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more]]>Brij Kumar2013-03-09T13:26:43-00:00Re: Error in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1017359/#msg_1017359
Jason]]>Jason Weathersby2013-03-11T16:56:47-00:00Re: Error in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1017597/#msg_1017597
Thanks in advance!!]]>Brij Kumar2013-03-12T07:06:27-00:00Re: Error in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1017628/#msg_1017628
Brij Kumar2013-03-12T08:33:29-00:00Re: Error in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1018272/#msg_1018272
Sorry for the late reply. I just tested this on my system using a dynamic web project and it worked for me. Look at the attached image of my project structure. I put a red box around the lib folder where you need to import the BIRT runtime libs. These libs are located in the runtime download /ReportEngine/lib folder. I also had to add the servlet-api.jar to the build path.
Jason]]>Jason Weathersby2013-03-13T14:40:59-00:00Re: Error in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1018620/#msg_1018620
Now the WebReport Servlet is running fine without any error.(I guess the reason for the error was -that I didn't make Report folder underneath WebContent of my workspace , thinking that it will take the myReports.rptdesign from the Report folder of birt inside the tomcat javascript: insertTag(document.post_form.msg_body, '', ' '); )
But the issue that I am facing right now is that Report is not getting displayed properly... a blank report is getting displayed when I run the report from the servlet. (but the example report available as SalesInvoice.rptdesign is working fine as expected even from servlets)
But if I directly double-click on the MainReport.rptdesign and preview it ,then it is displayed properly without any issue.
Your help is much appreciated !!]]>Brij Kumar2013-03-14T07:55:35-00:00Re: Error in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1018840/#msg_1018840
Jason]]>Jason Weathersby2013-03-14T15:00:41-00:00Re: Error in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1018970/#msg_1018970
( Actually MainReport is displaying a piechart of Sample SoapDistribution and there is another Drill through report , SubReport.rptdesign which will show UserDistribution for a particular Soap when a particular section of MainReports Piechart is clicked )]]>Brij Kumar2013-03-14T20:07:37-00:00Re: Error in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1021119/#msg_1021119
Sorry for the late reply. Any chance you could try the attached report that uses the sample db? I am trying to determine if this is an image issue or a data source.
]]>Jason Weathersby2013-03-19T14:57:03-00:00Re: Error in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1021456/#msg_1021456
Thanks for replying, The reports that uses sampleDB are working fine. But I don't know why the reports with other datasources are not working ( now even in the preview option of eclipse are not working , while results are shown in the Dataset Preview Results option ... this means db connection is well established )]]>Brij Kumar2013-03-20T06:07:57-00:00Re: Error in Accessing Reports Using Servlet
https://www.eclipse.org/forums/index.php/mv/msg/458069/1022381/#msg_1022381
]]>Jason Weathersby2013-03-21T19:20:29-00:00