adding jars in the classpath of the engine [message #707797] |
Tue, 02 August 2011 04:05 |
harip kaligo Messages: 74 Registered: July 2011 |
Member |
|
|
We have integrated birt engine with weblogic and deployed it as an ear.
We are referencing some java classes in birt rptdesign while creating a rptdocument.
We have added the resources to the classpath using the below code:
EngineConfig config = new EngineConfig();
StringBuffer classPathString=getFilesInFolder(birtProperties.getJavaLibraries(key)).append(birtProperties.getJavaProperties(key));
//config.setProperty(EngineConstants.WEBAPP_CLASSPATH_KEY, classPathString);
config.setResourcePath(birtProperties.getBirtResources(key));
config.getAppContext().put(EngineConstants.APPCONTEXT_CLASSLOADER_KEY,Thread.currentThread().getContextClassLoader());
config.getAppContext().put(EngineConstants.WEBAPP_CLASSPATH_KEY, classPathString);
while creating a rptdocument using birtengine we are getting the below exception:
A BIRT exception occurred. See next exception for more information.
Error evaluating Javascript expression. Script engine error: ReferenceError: "CcerBirtProperties" is not defined. (/report/data-sources/oda-data-source[@id="1542"]/method[@name="beforeOpen"]#3)
Script source: /report/data-sources/oda-data-source[@id="1542"]/method[@name="beforeOpen"], line: 0, text:
__bm_beforeOpen().
Any idea how to resolve this issue.
Thanks.
[Updated on: Wed, 03 August 2011 04:27] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03196 seconds