Hello,<br />
I was trying to follow an example of creating a scripted report located here:<br />
<a class='bbc_url' href='
http://www.vogella.de/articles/EclipseBIRT/article.html#birtdeploying_tomcat'>Reporting with Eclipse BIRT and Java Objects (POJO's) - Tutorial</a>.<br />
<br />
I am using eclipse 3.3 with the Birt plugin. I created a new report project and set it up with a data set etc and created a Mock class in a package located in another project already existing on the workspace. When I slick on the "preview results" i see the report. However when I swap out the dao with an actual DAO it blows up with an error.<br />
<br />
A BIRT exception occurred.<br />
Plug-in Provider:Eclipse.org<br />
Plug-in Name:BIRT Data Engine<br />
Plug-in ID:org.eclipse.birt.data<br />
Version:2.2.2.r22x_v20071212<br />
Error Code:data.engine.BirtException<br />
Error Message:A BIRT exception occurred: Error evaluating Javascript expression. Script engine error: TypeError: [JavaPackage gov.faa.ads.dao.impl.CustomerDaoImpl] is not a function, it is org.mozilla.javascript.NativeJavaPackage. (DataSet[setCustomers].__bm_open#4)<br />
Script source: DataSet[setCustomers].__bm_open, line: 1, text:<br />
__bm_open(). See next exception for more information.<br />
Error evaluating Javascript expression. Script engine error: TypeError: [JavaPackage dao.impl.CustomerDaoImpl] is not a function, it is org.mozilla.javascript.NativeJavaPackage. (DataSet[setCustomers].__bm_open#4)<br />
Script source: DataSet[setCustomers].__bm_open, line: 1, text:<br />
__bm_open()<br />
<br />
I use the following code to load the class in the open script:<br />
<br />
customerDAO=new Packages.dao.impl.CustomerDaoImpl();<br />
customer=customerDAO.getCustomer("1");<br />
<br />
I even tried to include the class in the WEB-INF folder of the <br />
<br />
C:eclipse_europaeclipsepluginsorg.eclipse.birt.report.viewer_2.2.2.r22x_v20071213birtWEB-INF but it still didn't work.<br />
<br />
Any suggestions would be great,