Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Charts not appearing in WebSphere - works in Tomcat
Charts not appearing in WebSphere - works in Tomcat [message #205493] Fri, 08 December 2006 02:01
Eclipse UserFriend
Originally posted by: home4slc.pacbell.net

This is a multi-part message in MIME format.
--------------030308040106030303030206
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I have a very simple report that only contains a simple pie chart using
the sample database. I put this rptdesign in my birt.war file to use
with the WebViewerExample in Tomcat. The only thing I added to the
default web.xml was a directory for the BIRT log to be sent to, and set
logging to finest.

The chart renders correctly. The html for the image from this page is
shown below:


<img id="AUTOGENBOOKMARK_1"
src="/WebViewerExample/run?__imageID=custom7.png" alt="" style=" width:
212pt; height: 130pt;">


Now I took the same war file and following these instructions:

http://wiki.eclipse.org/index.php/Birt_WebSphere_Deployment

creating the META-INF directory and application.xml file that WebSphere
5.1 needs to deploy an ear.

My report did not render my chart, and oddly enough nothing was written
to the BIRT log file even though I used the same web.xml file.

The html where the image was supposed to appear is missing the img tag
altogether:

<div style=" text-align:left; width: 212pt;"></div>

I've also fooled around with a report that does not contain a chart
which, when a csv export is made on tomcat exports all of the rows of
the report. Running the same report on WebSphere and exporting the rows
to a csv file consistently exports only *one* row.

Has anyone figured out how to render charts on WebSphere 5.1 (or other
versions) using a super-simple example that I can emulate? My web.xml
is attached.

Also, there is a similar post to mine here:

news://news.eclipse.org:119/eiusar$uig$1@utils.eclipse.org

which I will go back through to see if I have not done everything I need
to to get this to work, however, if someone can tell me what may be the
problem, I'd certainly appreciate it.

Regards,

Susan



--------------030308040106030303030206
Content-Type: text/xml;
name="web.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="web.xml"

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app id="WebApp_1165541375511">
<display-name>Eclipse BIRT Report Viewer</display-name>
<context-param id="ContextParam_1165541375511">
<param-name>BIRT_VIEWER_LOCALE</param-name>
<param-value>en-US</param-value>
</context-param>
<context-param id="ContextParam_1165541375512">
<param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
<param-value></param-value>
</context-param>
<context-param id="ContextParam_1165541375513">
<param-name>BIRT_VIEWER_DOCUMENT_FOLDER</param-name>
<param-value></param-value>
</context-param>
<context-param id="ContextParam_1165541375514">
<param-name>DOCUMENT_FOLDER_ACCESS_ONLY</param-name>
<param-value>false</param-value>
</context-param>
<context-param id="ContextParam_1165541375515">
<param-name>BIRT_VIEWER_IMAGE_DIR</param-name>
<param-value></param-value>
</context-param>
<context-param id="ContextParam_1165541375516">
<param-name>BIRT_VIEWER_LOG_DIR</param-name>
<param-value>C:/temp/BirtLogDir/tomcat</param-value>
</context-param>
<context-param id="ContextParam_1165541375517">
<param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
<param-value>OFF</param-value>
</context-param>
<context-param id="ContextParam_1165541375518">
<param-name>BIRT_VIEWER_SCRIPTLIB_DIR</param-name>
<param-value></param-value>
</context-param>
<context-param id="ContextParam_1165541375519">
<param-name>BIRT_RESOURCE_PATH</param-name>
<param-value></param-value>
</context-param>
<context-param id="ContextParam_1165541375520">
<param-name>BIRT_VIEWER_MAX_ROWS</param-name>
<param-value></param-value>
</context-param>
<context-param id="ContextParam_1165541375521">
<param-name>BIRT_OVERWRITE_DOCUMENT</param-name>
<param-value>true</param-value>
</context-param>
<listener id="Listener_1165541375521">
<listener-class> org.eclipse.birt.report.listener.ViewerServletContextListene r </listener-class>
</listener>
<servlet id="Servlet_1165541330026">
<servlet-name>ViewerServlet</servlet-name>
<servlet-class>org.eclipse.birt.report.servlet.ViewerServlet </servlet-class>
</servlet>
<servlet id="Servlet_1165541330027">
<servlet-name>EngineServlet</servlet-name>
<servlet-class>org.eclipse.birt.report.servlet.BirtEngineServlet </servlet-class>
</servlet>
<servlet-mapping id="ServletMapping_1165541375531">
<servlet-name>ViewerServlet</servlet-name>
<url-pattern>/frameset</url-pattern>
</servlet-mapping>
<servlet-mapping id="ServletMapping_1165541375532">
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/run</url-pattern>
</servlet-mapping>
<servlet-mapping id="ServletMapping_1165541375533">
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/download</url-pattern>
</servlet-mapping>
<servlet-mapping id="ServletMapping_1165541375534">
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/parameter</url-pattern>
</servlet-mapping>
</web-app>

--------------030308040106030303030206--
Previous Topic:Couple of questions on centering / sizing
Next Topic:pdf export for text element containing html table
Goto Forum:
  


Current Time: Tue Jul 16 10:17:27 GMT 2024

Powered by FUDForum. Page generated in 0.02604 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top