Skip to Content
author's profile photo Former Member
Former Member

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

Hi,

There are several other posts in various places but none solve the same problem I am having.

When I try to run the "CRJava Create Report From Scratch" in Eclipse, I get the following error in the browser:

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.

I've used FIddler to see the HTTP request, and it looks like the files in 1 & 3 are present (after I renamed the crystalreportviewers directory to crystalreportviewers120). I can't find any reference on my computer to #2.

I also used a javascript debugger in Firefox, and it shows that CrystalReportViewer.jsp is trying use bobj, but it's not defined.

Has anyone solved this problem, and if so, how?

Thanks, Ted

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 08, 2012 at 08:01 AM

    Hi,

    Please refer to the SAP Note : 1426803.

    Also check the name of the viewer is it 'crystalreportviewers120' or 'crystalreportviewers12' ?

    Let me know if this works,

    Regards,

    Rameez

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi iRameez,

      Your pointers worked!

      The key was to add these entries into web.xml:

      <context-param>

      <param-name>crystal_image_uri</param-name>

      <param-value>crystalreportviewers</param-value>

      </context-param>

      <context-param>

      <param-name>crystal_image_use_relative</param-name>

      <param-value>webapp</param-value>

      </context-param>

      They are discussed in the Viewers Java SDK Developer Guide referred to by the SAP note 1426803. I had not seen that guide previously.

      I also changed the name of the WebRoot\crystalreportviewers120 directory back to crystalreportviewers.

      Thanks for your help!

      Ted

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.