Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » adding jars in the classpath of the engine(adding jars in the classpath of the engine)
adding jars in the classpath of the engine [message #707797] Tue, 02 August 2011 00:05 Go to next message
harip kaligo is currently offline 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 00:27]

Report message to a moderator

Re: Engine classpath issue in weblogic server [message #708134 is a reply to message #707797] Tue, 02 August 2011 09:54 Go to previous messageGo to next message
sam va is currently offline sam va
Messages: 121
Registered: July 2011
Senior Member
Did you try adding in the report, the jar files / property files?
Re: Engine classpath issue in weblogic server [message #708649 is a reply to message #708134] Tue, 02 August 2011 23:17 Go to previous message
harip kaligo is currently offline harip kaligo
Messages: 74
Registered: July 2011
Member
Yes we included jars and property files in the report.
Previous Topic:Can Grow Like Crystal Report
Next Topic:Empty Table
Goto Forum:
  


Current Time: Fri Aug 22 03:56:26 EDT 2014

Powered by FUDForum. Page generated in 0.01544 seconds