Missing bundle.js on JasperServer

I have having issues embedding Heatmap(High Charts) chart to by website.

When I try to load the report via URL in the browser using default superuser/superuser account

http://ec2-34-207-164-70.compute-1.amazonaws.com/jasperserver-pro/rest_v2/reports/public/Samples/Reports/01._Geographic_Results_by_Segment_Report.html

I kept getting this javascript error

GET 404 - http://localhost:8080/jasperserver-pro/com/jaspersoft/ji/adhoc/jr/requir...

It appeared the jasper server is missing some JS libraries any tips on how to resolve this issue?

Edit: The AdhocView + the Report are all created with JapserServer on a browser not JasperStudio

scott_33's picture
Joined: Feb 20 2017 - 12:08pm
Last seen: 5 years 7 months ago

Havent found a good solution for this yet

scott_33 - 6 years 1 week ago

3 Answers:

You're using Adhoc View to create your report. Adhoc View doesn't use Jaspersoft Studio so you shouldn't be uploading any file to JasperReports Server. Just create your report from JasperReports Server using your web browser.

hozawa's picture
170493
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 9 months ago

I can confirm that this is not just an issue with the report that i created. Even using the sample report from a fresh install from JasperSite (local,vm) 

using this report
http://localhost:8080/jasperserver-pro/rest_v2/reports/public/Samples/Re...

 

The bundle.js 404 error is present. I think there is a bug in the high-chart integration (could just be the version i am working with. I did find a few hotfixes for version 6.3.0 i can try to apply those hotfixes and see if the problem will go away) 

scott_33's picture
Joined: Feb 20 2017 - 12:08pm
Last seen: 5 years 7 months ago

Got a solution:

 

The problem can be fixed by adding the following line to WEB-INF/classes/jasperreports.properties:

com.jaspersoft.ji.adhoc.bundle.js$context.url=reportresource?resource=com/jaspersoft/ji/adhoc/jr/require/bundle.js

scott_33's picture
Joined: Feb 20 2017 - 12:08pm
Last seen: 5 years 7 months ago
Feedback
randomness