Jump to content

Recommended Posts

Posted

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.
 
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

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.    

Posted

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.

 

 

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...