- This topic has 9 replies, 3 voices, and was last updated 16 years, 3 months ago by Srinivasa.
-
AuthorPosts
-
SrinivasaMemberHi
I have developed a report with 6.5.1GA. I have deployed the Report Web App through Eclipse Deployment tool and it was successful.
After that when I run the weblogic 9.2 server(No issues when started) and put the url in the browser, I got the following exception in browser.
java.lang.NoSuchMethodError: org.mozilla.javascript.ImporterTopLevel.initStandardObjects(Lorg/mozilla/javascript/Context;Z)V
at org.eclipse.birt.core.script.ScriptContext.(ScriptContext.java:80)
at org.eclipse.birt.report.engine.executor.ExecutionContext.(ExecutionContext.java:306)
at org.eclipse.birt.report.engine.api.impl.EngineTask.(EngineTask.java:159)
at org.eclipse.birt.report.engine.api.impl.EngineTask.(EngineTask.java:175)
at org.eclipse.birt.report.engine.api.impl.GetParameterDefinitionTask.(GetParameterDefinitionTask.java:92)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.createGetParameterDefinitionTask(ReportEngineHelper.java:298)
at org.eclipse.birt.report.engine.api.impl.ReportEngine.createGetParameterDefinitionTask(ReportEngine.java:318)
at org.eclipse.birt.report.service.ReportEngineService.createGetParameterDefinitionTask(Unknown Source)
at org.eclipse.birt.report.service.BirtViewerReportService.getParameterDefinitionTask(Unknown Source)
at org.eclipse.birt.report.service.BirtViewerReportService.getParameterDefinitions(Unknown Source)
at org.eclipse.birt.report.context.ViewerAttributeBean.__initParameters(Unknown Source)
at org.eclipse.birt.report.context.ViewerAttributeBean.__init(Unknown Source)
at org.eclipse.birt.report.context.BaseAttributeBean.init(Unknown Source)
at org.eclipse.birt.report.context.ViewerAttributeBean.(Unknown Source)
at org.eclipse.birt.report.context.BirtContext.__init(Unknown Source)
at org.eclipse.birt.report.context.BaseContext.(Unknown Source)
at org.eclipse.birt.report.context.BirtContext.(Unknown Source)
at org.eclipse.birt.report.servlet.ViewerServlet.__getContext(ViewerServlet.java:151)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)Thanks in advance and appreciate some inputs.
Bye
SrinivasaMemberi have noticed two js.jars in the package deployed.
one under \report-engine\platform\plugins\org.mozilla.rhino_1.6.0.v20070531\lib
second one in the report web libraries created by the report wizard.
why 2 js.jars are included in the deployed package. why eclipse does not use one of them?
thanks
Loyal WaterMemberSeems like a BIRT bug. Can you refer to this link:-
https://bugs.eclipse.org/bugs/show_bug.cgi?id=105853
SrinivasaMemberHi Nipun
You are refering to bug 3 years back and it is fixed in subsequent releases.
Why it is happening in the most recent release MyEclipse 6.5.1 GA?
How can I fix this js.jar matter?
Can you relase a patch immediately?
SrinivasaMemberI am looking forward to hear some updates from any of the experts…
Loyal WaterMemberYou could refer to the workaround mentioned in the above link till I got this issue checked by my team. I hope the workaround helps for now.
SrinivasaMemberHi Nipun
That work around is not working. I have also tried by putting the latest js.jar in startWeblogic.cmd file. I have tried all options I got in google.
The problem is weblogic 9.2 has embedded the class “org.mozilla.javascript.ImporterTopLevel” in weblogic.jar. It is not a separate JAR by it self.
I have a feeling that the project is referring to weblogic classes in run time.
Appreciate if there is way to fix this issue. I am really stuck in the middle. Appreciate any help.
garypinotMemberHi skadiy000,
I’ve met the same problem as yours. I’ve found some ways for solving the problem, hope this 2 ways could help you.1. Choose the “Servers” panel on myEclilpse -> Right click on the “Weblogic 9.x” you configured under the “Servers” panel -> choose “Configure” -> you can see there are “JDK”, “Launch”, “Paths” under WebLogic 9.x, click on the “Paths” -> then add the js.jar under \report-engine\platform\plugins\org.mozilla.rhino_1.6.0.v20070531\lib to the “Prepend to classpath”
After that, you should no longer see the error messages2. While using Weblogic server, there should be a jdk150_06 (or other version) folder or jrockit (Depends on the JDK you chose); you can simple put the js.jar under \report-engine\platform\plugins\org.mozilla.rhino_1.6.0.v20070531\lib to the \jre\lib\ext path under the JDK folder. In this way, the server will run the js.jar you put there first prior to the original js.jar in the server.
I hope the above two ways could help you out of the trouble.
SrinivasaMemberHi Graypinot
Thanks a lot for the inputs. It worked well for me.
One clarification:
How do you fix this for testing and production environments?
We have to write these steps in the deployment document to do the same thing by the deployment engineer?
Thanks
SrinivasaMemberHi All
I have noticed that when I export data as a xls format file from firefox, I see a dialog box that says open or save as. the save as option is storing the file in xml format.
Is there any way we can save as *.xls file directly instead of an XML file?
Thanks in advance
-
AuthorPosts