Missing bundle.js on JasperServer

0

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: 3 years 3 months ago

Havent found a good solution for this yet

scott_33 - 3 years 8 months ago

3 Answers:

1

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
66920
Joined: Apr 24 2010 - 4:31pm
Last seen: 1 year 5 months ago
0

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: 3 years 3 months ago
0

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: 3 years 3 months ago
Feedback
randomness