I am using BRDPro 2.1.3 vesion installed from win-brdpro-213.zip<br />
I could run report as stand alone, but while I am trying to use report engine in tomcat I am getting following error.<br />
java.lang.NoSuchMethodError: org.mozilla.javascript.ImporterTopLevel.initStandardObjects(Lorg/mozilla/javascript/Context;Z)V<br />
<br />
root cause:<br />
<br />
java.lang.NoSuchMethodError: org.mozilla.javascript.ImporterTopLevel.initStandardObjects(Lorg/mozilla/javascript/Context;Z)V<br />
org.eclipse.birt.core.script.ScriptContext.<init>(ScriptContext.java:80)<br />
org.eclipse.birt.core.script.ScriptContext.<init>(ScriptContext.java:67)<br />
org.eclipse.birt.report.engine.executor.ExecutionContext.<init>(ExecutionContext.java:295)<br />
org.eclipse.birt.report.engine.api.impl.EngineTask.<init>(EngineTask.java:137)<br />
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.<init>(RunAndRenderTask.java:62)<br />
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.createRunAndRenderTask(ReportEngineHelper.java:292)<br />
org.eclipse.birt.report.engine.api.impl.ReportEngine.createRunAndRenderTask(ReportEngine.java:299)<br />
com.teamcenter.project.birt.servlet.WebReport.doGet(WebReport.java:90)<br />
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)<br />
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br />
com.teamcenter.project.servlet.LoginTimerFilter.doFilter(LoginTimerFilter.java:74)<br />
com.teamcenter.project.servlet.UTF8EncodingFilter.doFilter(UTF8EncodingFilter.java:50)<br />
<br />
BirtEngine.java is providing functionality to run engine and WebReport.java is used as servlet which will take request and used BirtEngine.class to run engine. test.html is used to send request.(all three files are attached)<br />
<br />
I found some info on EclipseBugs(<a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=105853'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=105853</a>) .<br />
<br />
It says old version of js.jar is getting load before BIRT's js.jar.<br />
On my machine under tomcat folder I have only one version of js.jar , which is copied from "installationdirActuate9BRDProDesktop Application SDKReportEnginelib"<br />
what is missing, any guess ??????<br />
---copied stuff from <a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=105853'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=105853</a> start
<br />
<br />
From: Kai Shen <br />
Sent: Wednesday, December 21, 2005 5:16 PM<br />
To: 'hpadmanabhan@mandtbank.com'<br />
Cc: Stanley ****<br />
Subject: Bugzilla Bug 105853 - Report Viewer sample fails with runtime<br />
error when used on application server (JRun4)<br />
<br />
The problem is because the application server contains a older version of<br />
Rhino's js.jar, while BIRT uses the latest version (1.6RC1). Because the js.jar<br />
in the application server is loaded before the one in BIRT, the older version<br />
of class org.mozilla.javascript.Context is loaded. Since the older version of<br />
class org.mozilla.javascript.Context doesn't contain function<br />
initStandardObjects, a runtime java.lang.NoSuchMethodError happened.<br />
<br />
To solve this kind of problem, the application server usually provides a<br />
configuration to allow loading application's java classes before the app<br />
server's. <br />
<br />
copied stuff end