cancel
Showing results for 
Search instead for 
Did you mean: 

Images do not render - But CSS is picked up by CrystalViewer

Former Member
0 Kudos

I have copied the crystalreportviewers directory and the required jars as stated in the documentation.

webreporting.jar has the CrystalReportViewerServlet. But the servlet does not seem to render the image on screen.

img src="../CrystalReportViewerHandler?dynamicimage=crystal123316977788056741.png" border="0" width="768px" height="82px">

Here is my web.xml


        <context-param>
                <param-name>crystal_image_uri</param-name>
                <param-value>/MyTestApp/crystalreportviewers</param-value>
        </context-param>   
        <context-param>
                	<param-name>crystal_servlet_uri</param-name>
                	<param-value>CrystalReportViewerServlet</param-value>
        </context-param>  
        <servlet>
      	        	<servlet-name>CrystalReportViewerServlet</servlet-name>
                	<servlet-class>com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet</servlet-class>
        </servlet>
        <servlet-mapping>
               	 <servlet-name>CrystalReportViewerServlet</servlet-name>
                	<url-pattern>/CrystalReportViewerHandler</url-pattern>
        </servlet-mapping>

What am i missing?

The app and the BOE servers are on different boxes.

Thanks,

JM

Accepted Solutions (0)

Answers (1)

Answers (1)

ted_ueda
Active Contributor
0 Kudos

Right after you get the report with the blank image, what happens if you get the postback URL, and paste it into the web browser Address, then run explicitly?

What do you see? An error message?

If you don't want to interrupt the flow, you can always look at the HTTP traffic using [Fiddler|http://www.fiddlertool.com].

Sincerely,

Ted Ueda

Former Member
0 Kudos

Ted,

Fiddler is an amazing tool. I put a "." after "http://localhost.:8080" so that fiddler could work. and I noticed the errors.

For all the 3 images I noticed the 404 error:

HTTP Status 404 - /CrystalReportViewerHandler</h1>

<b>message</b> <u>/CrystalReportViewerHandler</u>

<b>description</b> <u>The requested resource (/CrystalReportViewerHandler) is not available.</u>

I have the webreporting.jar in the web-inf/lib folder.


        <context-param>
                	<param-name>crystal_servlet_uri</param-name>
                	<param-value>CrystalReportViewerServlet</param-value>
        </context-param>  
        <servlet>
      	        	<servlet-name>CrystalReportViewerServlet</servlet-name>
                	<servlet-class>com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet</servlet-class>
        </servlet>
        <servlet-mapping>
               	 <servlet-name>CrystalReportViewerServlet</servlet-name>
                	<url-pattern>/CrystalReportViewerHandler</url-pattern>
        </servlet-mapping>

Should I also deploy the CrystalReport.war on my tomcat instance.?

JM

ted_ueda
Active Contributor
0 Kudos

If the Web App Server is on Windows, what if you run [Filemon|http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx]?

Do you see the image file being created in the temp file, then being read by the Java process?

Sincerely,

Ted Ueda

Former Member
0 Kudos

Yes, I found the png files copied to the temp location on the windows box under ..\Local settings\temp.

FILEMON results:

a)

I followed the process tree and it seems to be failing at

\wtpwebapps\ROOT\CrystalReportViewerHandler - NOT FOUND

But ROOT is not the name of my webapp

b) It does a QUERY for PNGEncoder inside web-inf\classes and says PATH NOT FOUND.

But then, in the next line it does a READ in web-inf\lib\MetafileRenderer.jar - SUCCESS

Even Fiddler showed me the issue with CrystalReportViewerHandler.

HTTP Status 404 - /CrystalReportViewerHandler message /CrystalReportViewerHandler

description The requested resource (/CrystalReportViewerHandler) is not available.

So how do I determine if this Servlet is loaded? Does it come with the crystal reports war or is it sufficient

if webreporting.jar is loaded with the webapp

Edited by: jam mend on Jan 28, 2009 11:55 PM

ted_ueda
Active Contributor
0 Kudos

What happens when you get rid of the crystal_servlet_uri setting?

Sincerely,

Ted Ueda

Former Member
0 Kudos

I get the following error message:::

The viewer was unable to find the resources required to render the report.

Please check the following to resolve the issue.

1. Verify that ../../crystalreportviewers120/ is accessible to your WebApp and is the correct path to the viewer resources.

2. You may customize this location by altering the crystal_image_uri and crystal_image_use_relative properties in the web.xml.

3. Validate that the file crv.js exists at ../../crystalreportviewers120/js/crviewer/crv.js.