This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 246538 - Under Linux - problem with Report generation, no popup menu for stat or log reports
Summary: Under Linux - problem with Report generation, no popup menu for stat or log r...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin D Simmonds CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 246557 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-08 05:40 EDT by Srinivas Reddy CLA
Modified: 2012-01-03 13:47 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srinivas Reddy CLA 2008-09-08 05:40:37 EDT
Build ID: COSMOS-1.0.0-200809031641

Steps To Reproduce:
1.Deploy COSMOS under linux box and Open COSMOSUI under Firefox browser
2.Go to "Monitoring Data Repository"->"server 33 tomcat..." right click over it
3.Go to "Logging Data Repository"->"access_log.cbe.xml", right click over it

Output:
- No options found for "Statistical Report" or "Top 10 Log Report"

Note: This is working fine on Windows Box.

More information:
Comment 1 Sheldon Lee-Loy CLA 2008-09-08 10:34:17 EDT
is there an exception in the apache log files?
Comment 2 Srinivas Reddy CLA 2008-09-09 00:35:09 EDT
(In reply to comment #1)
> is there an exception in the apache log files?

Yes.., here is what it shows : (I guess it's due to backslash usage in below path for reportDeployment.xml)

java.net.MalformedURLException: no protocol: /home/srinivas/cosmos/i13/apache-tomcat-5.5.26/webapps/COSMOSReportViewer/templates\reportDeployment.xml
        at java.net.URL.<init>(URL.java:567)
        at java.net.URL.<init>(URL.java:464)
        at java.net.URL.<init>(URL.java:413)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:146)
        at org.eclipse.cosmos.internal.dr.drs.service.outputter.ReportDeploymentHandler.parse(ReportDeploymentHandler.java:75)
        at org.apache.jsp.webcontent.report_jsp.jspInit(report_jsp.java:24)
        at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:79)
        at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:145)
        at org.apache.jasper.servlet.JspServletWrapper.getDependants(JspServletWrapper.java:249)
        at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:407)
        at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:333)
        at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:595)
Comment 3 Srinivas Reddy CLA 2008-09-09 00:53:54 EDT
Found the problem, it's due to the following code snippet :

Under COSMOSReportViewer/webcontent/report.jsp
rdh.parse(context.getRealPath("templates\\reportDeployment.xml"));

It should be ..
rdh.parse(context.getRealPath("templates/reportDeployment.xml"));

I fixed it locally and it works fine both on linux and windows platorms.
Comment 4 Sheldon Lee-Loy CLA 2008-09-09 10:40:48 EDT
Would it be possible to attach the patch and Martin or Leonard can apply it to the build.
Comment 5 Sheldon Lee-Loy CLA 2008-09-09 10:42:59 EDT
*** Bug 246557 has been marked as a duplicate of this bug. ***
Comment 6 Martin D Simmonds CLA 2008-09-11 05:49:40 EDT
Updated CVS with Srini's change
Comment 7 Martin D Simmonds CLA 2008-09-16 04:27:12 EDT
fixed
Comment 8 Srinivas Reddy CLA 2008-09-30 08:23:27 EDT
This is resolved and verified on latest i13 candidate driver.

Closing it as part of cleanup.