Google maps http/https link problem from a different machine


I am using a jasperserver dashboard on linux. Dashboard contains a google map as well. I can also access that machine on windows using its web link.

The problem is since map comes up with an http link, the browser blocks it..I also need it to be https link.

Can you help me with that?


deeperwhite's picture
Joined: May 18 2014 - 11:31pm
Last seen: 7 years 8 months ago

Even I am facing the same issue... Anyone with answer ?

nattargekar - 7 years 8 months ago

The problem is google maps comes with http. Since the link of dashboard is https, it blocks the map.

You have to convert the link of dashboard into http to solve that problem. You will need to change web.xml file as far as I understood.


deeperwhite - 7 years 8 months ago

Thanks for your comment @deeperwhite, but we want 'https' for map also.

nattargekar - 7 years 8 months ago
show 1 more...

Hi, I am not sure if there is a way to use https for map as well.

Please let me know if you find a way..I dont think anyone but you will write and help about it in this forum.


deeperwhite - 7 years 8 months ago

1 Answer:

For google maps displayed using the maps component of JasperReports / JasperServer, you can use the text editor of your choice to change all occurances of to in the three files named maps.js, jasperreportsmap.js, and MapElementHtmlTemplate.vm that can be found in the folder path net/sf/jasperreports/components/map/resources in the main jasperreports jar file.

That's the file in the WEB-INF/lib folder of JasperServer named something like jasperreports-5.5.0.jar.

If you are using the default map marker icons on your map, you may still get a warning message in your browser about unencrypted elements such as images, because of the references in these same files to the marker icon files at the non-SSL url that begins with .

I'm not sure what the proper https location for those marker files should be - but if you figure it out, please post the proper URL here.

jloovere's picture
Joined: Nov 20 2014 - 2:46pm
Last seen: 7 years 2 months ago