hello everybody, I am facing a problem In BIRT a reporting tool I am wrote one jsp for display a report in pdf formate on web. when i run this jsp wblogic server gives a error == <u><b>"Org.mozilla.javascript.ImporterTopLevel.initStandardObjects( Lorg/mozilla/javascript/Context;Z)V "</b></u>I am using a weblogic server. I attech my jsp code also, plz help me if any one know the solution
<b>and error show in weblogic console is</b>
java.lang.NoSuchMethodError: org.mozilla.javascript.ImporterTopLevel.initStandar dObjects(Lorg/mozilla/javas cript/Context;Z)V at org.eclipse.birt.core.script.ScriptContext.<init>(ScriptContext.java: 81) at org.eclipse.birt.report.engine.executor.ExecutionContext.<init>(Execu tio nContext.java:248) at org.eclipse.birt.report.engine.api.impl.EngineTask.<init>(EngineTask. jav a:118) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.<init>(RunAn dRe nderTask.java:54) at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.createRunA ndRenderT ask(ReportEngineHelper.java:215) at org.eclipse.birt.report.engine.api.ReportEngine.createRunAndRenderTas k(ReportE ngine.java:258) at resources.jsp.Pdf.run(Pdf.java:81) at jsp_servlet._resources._jsp.__test._jspService(Test.jsp:123) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletS tubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:4 19) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:4 63) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt er.java:2 61) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(Web AppServletContext.java:6724) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject. java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletCont ext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2 644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) >
<u>< i><b>ReportBIRT.jsp</b></i></u>
public void returnFile(String filename, OutputStream fout) throws FileNotFoundException, IOException { InputStream in = null; try { in = new BufferedInputStream(new FileInputStream(filename)); byte[ ] buf = new byte[4 * 1024]; // 4K buffer int bytesRead; while ((bytesRead = in.read(buf)) != -1) { fout.write(buf, 0, bytesRead); } } finally { if (in != null) in.close( ); } }