hi all,<br />
<br />
I'm working on the DynamicReport Example : <a class='bbc_url' href='
http://wiki.eclipse.org/Java_-_Dynamic_Report_Servlet_(BIRT)'>http://wiki.eclipse.org/Java_-_Dynamic_Report_Servlet_(BIRT)</a> which throws an error:<br />
<br />
<em class='bbc'><span style='color: #FF0000'>HTTP Status 500 - <br />
<br />
description: The server encountered an internal error that prevented it from fulfilling this request.<br />
<br />
exception: <br />
java.lang.NullPointerException<br />
BirtEngine.getBirtEngine(BirtEngine.java:81)<br />
WebReport.doGet(WebReport.java:66)<br />
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)<br />
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</span></em><br />
<br />
This is my folder structure underneath the Tomcat folder:<br />
<br />
webapps<br />
__->DynamicReport<br />
____->Reports<br />
______->DynamicTableExample.rpttemplate<br />
____->WEB-INF <br />
______->lib<br />
______->platform<br />
______->web.xml<br />
____->Dynamic.html<br />
<br />
These are my points I did to run the example:<br />
<br />
1. Created a a DynamicReport/WEB-INF/lib underneath the Tomcat webapps directory<br />
2. Copied all the jars in the birt-runtime-4_2_1/ReportEngine/lib into my DynamicReport/WEB-INF/lib<br />
3. Created a director named platform in my WEB-INF folder<br />
4. Copied from my BIRT All in one Designer Package eclipse-reporting-juno-SR1-win32-x86_64/eclipse/configuration and eclipse-reporting-juno-SR1-win32-x86_64/eclipse/plugin<br />
5. Created a Java Projec which includes the BirtEngine.java , DynamicReport.java and BirtConfig.properties<br />
6. Added all external jars from birt-runtime-4_2_1/ReportEngine/lib to my Java Project + the serlvet-api.jar from the Tomcat libary<br />
7. Exported my Project as an Jar file to DynamicReport/WEB-INF/lib<br />
8. Created the web.xml and placed it in DynamicReport/WEB-INF<br />
9. Created trhe Dynamic.html and placed it in the DynamicReport folder<br />
10. started tomcat 7.0.34<br />
11. Called Dynamic.html<br />
<br />
I Use:<br />
birt runtime 4.2.1<br />
tomcat 7.0.34<br />
<br />
Thanks guys and Cheers!