cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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