We are using a Jbos_5.1.0 where we deploy our software. I am using the BIRT Jars Files from the BIRT RUNTIME 3.7.2. I created an *.rpdtdesign and wanted to add data while running the jboss. So i created a custom java eventhandler class. If I test the class in Designer Enviroment I get the exepted report. When i try to create the Report in Runtime Enviroment I get following issue: <br />
<br />
<span style='color: #FF0000'>The following items have errors:<br />
<br />
Table (id = 23):<br />
+ A BIRT exception occurred. See next exception for more information.<br />
Invalid javascript expression: dataSetRow["columnname"] (Element ID:23) </span><br />
<br />
and in Logger:<br />
<span style='color: #9ACD32'>WARNING: can not load the class from file:/C:/Programme/../AppServer/jboss-5.1.0.GA/bin/ReportDataPrepare.jar<br />
java.io.FileNotFoundException: C:\Programme\..\AppServer\jboss-5.1.0.GA\bin\ReportDataPrepare.jar</span><br />
<br />
Here the fetch script:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
@Override
public boolean fetch(IDataSetInstance dataSet, IUpdatableDataSetRow row)
throws ScriptException {
try {
data = textread.createData();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
_rowCount = data.size();
try {
if (_rowIndex < _rowCount) {
String str = String.valueOf(_rowIndex);
// Column name festlegen und werte stringweise ziehen
setColumnInRow(row, COLUMNNAME, data.get(str));
// go to next row
_rowIndex++;
return true;
}
} catch (ScriptException e) {
e.printStackTrace();
}
return super.fetch(dataSet, row);
}</pre>
<br />
I know that if i want to succeed this way, i have to set the path to the jar-files. Like : <pre class='_prettyXprint _lang-auto _linenums:0'>EngineConfig config = new EngineConfig();
config.setProperty(EngineConstants.WEBAPP_CLASSPATH_KEY, "c:\temp\eh.jar;c:\java\meh.jar");</pre>In this case where i deploy an EAR to start the appserver. I dont know how to get the direct path to the EventHandler Jar file.<br />
Any ideas? <br />
<br />
My aim is to create reports out of the data created by our application. so I actually have no database. So I wantd to create different EventHandler-Classses and Template Files for different use cases. So it is easy to create new Report Generation Workflows.<br />
This data are information about the running processes. I am new at BIRT and tried to develop an easy option for getting any kind of reports, only by having a *.rptdesing file and the runtime enviroment. May be I can push the data otherwise into the report? or should I use BIRT otherwise like a Servlet ? My Major Issue is a solution to set a path to the jar files...