Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 04:05 Go to next message
harip kaligo is currently offline harip kaligoFriend
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

Re: Engine classpath issue in weblogic server [message #708134 is a reply to message #707797] Tue, 02 August 2011 13:54 Go to previous messageGo to next message
sam va is currently offline sam vaFriend
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] Wed, 03 August 2011 03:17 Go to previous message
harip kaligo is currently offline harip kaligoFriend
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 Mar 29 11:34:37 GMT 2024

Powered by FUDForum. Page generated in 0.02807 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top