Jump to content

Vizualise.js does not render report


mvarnoux

Recommended Posts

Hi,

 

I have to test vizualise.js, and I met an issue to display a report.

 

here is my code :

 

<html><head><script src="http://serverjasper:8080/jasperserver-pro/client/visualize.js?logLevel=debug"></script><title>My Report</title></head><body><script>visualize({    auth: {        name: "foeoj",        password: "lfjoff",organization: "organization_1"}}, function (v) {    //render report from provided resource    v("#container").report({        resource: "/rapport/rapport",        error: handleError    });    //show error    function handleError(err) {        alert(err.message);    }});</script><div id="container"></div></body></html>[/code]
 
 
When I test it on jsfiddle, it works fine and display my report.
 
When I put the code in a html plage, on my tomcat server,  it displays a whole blank page.
 
I hope someone can help.
 
Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

 

I have been able to make it work on the server where is installed tomcat,  

According to https://community.jaspersoft.com/wiki/visualizejs-troubleshooting, I had to point scripts to http://127.0.0.1:8080/jasperserver-pro/client/visualize.js and your browser to http://localhost:8080/blah/sample.html.

So that's fine. But now, I need to make it work from the LAN

Does somedy knows how to do that ?

Link to comment
Share on other sites

You will need to publish your file(s) to your production Web server, while making sure that your JasperReports Server remains online, too.  The JasperReports Server will also need to be up, online and available to your users across the network.  It looks like you are still working in a sandbox environment, maybe your won laptop.  Let me know if this helps.    

Link to comment
Share on other sites

Hi,

 

Thank you for your answer. Every things are online, and I am not working in a Sandbox.

 

In facts, this really this to be related to the bug describe here : https://community.jaspersoft.com/wiki/visualizejs-troubleshooting

I have made some others tests publishing my web page on another application server which is not a tomcat, and every thing is working fine.

But I would like to publish my file on the same web app that jasper, so I need a workaround to make it work with tomcat.

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...