on 01-28-2009 7:19 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.