Saturday, July 19, 2008

BIRT in WebLogic

I recently faced an issue with running BIRT reports [embedded into a web application] to run on WebLogic 9.2 Application Server.

The exception when the report was executed:

java.lang.NoSuchMethodError: initStandardObjects
at org.eclipse.birt.core.script.ScriptContext.(ScriptContext.java:80)
at org.eclipse.birt.report.engine.executor.ExecutionContext.(ExecutionContext.java:313)
at org.eclipse.birt.report.engine.api.impl.EngineTask.(EngineTask.java:160)
at org.eclipse.birt.report.engine.api.impl.EngineTask.(EngineTask.java:176)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.(RunAndRenderTask.java:54)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.createRunAndRenderTask(ReportEngineHelper.java:292)
at org.eclipse.birt.report.engine.api.impl.ReportEngine.createRunAndRenderTask(ReportEngine.java:303)

This I guess is due to the version mis-match of the Rhino jar [js.jar] used by BIRT and WebLogic.

Anyway, this is how I resolved the issue to move along...
Edited setDomainEnv.sh to include the following line:
EXT_PRE_CLASSPATH =
This solved the issue for me...hope this helps someone else with a similar issue.