degroodt.nicolas Posted March 1, 2018 Share Posted March 1, 2018 Hello,I did install jasperserver 6.4 community edition via bundle. When I deploy a report with custom component (highchart) on the server. It run into a loop.Checking into the browser console, I got this error:Uncaught Error: No define call for cv-componenthttp://requirejs.org/docs/errors.html#nodefineat makeError (require.js:1)at Object.completeLoad (require.js:1)at HTMLScriptElement.onScriptLoad (require.js:1)I have checked the reference to phantomjs and require.js and it looks that the bundle install set them well:/opt/jasperreports-server-cp-6.4.2/apache-tomcat/webapps/jasperserver/WEB-INF/classes/jasperreports.propertiesnet.sf.jasperreports.phantomjs.executable.path=/opt/jasperreports-server-cp-6.4.2/phantomjs/bin/phantomjscom.jaspersoft.jasperreports.components.customvisualization.phantomjs.executable.path=/opt/jasperreports-server-cp-6.4.2/phantomjs/bin/phantomjsnet.sf.jasperreports.web.resource.pattern.customvisualization.scripts=com/jaspersoft/jasperreports/customvisualization/resources/requirecom.jaspersoft.jasperreports.components.customvisualization.require.js=file:////opt/jasperreports-server-cp-6.4.2/apache-tomcat/webapps/jasperserver/optimized-scripts/bower_components/requirejs/require.jsCould you please help Link to comment Share on other sites More sharing options...
mlopez_1 Posted March 1, 2018 Share Posted March 1, 2018 It seems to be a browser compatibility problem.What is your browser version ?Mariano Link to comment Share on other sites More sharing options...
degroodt.nicolas Posted March 1, 2018 Author Share Posted March 1, 2018 Hello,Thanks for this quick respons:It does not work withfirefox ESR 45.5.1Chrome portable Version 63.0.3239.132 Chrome Version 64.0.3282.186 (Build officiel) (64 bits) Thanks a lot Link to comment Share on other sites More sharing options...
mlopez_1 Posted March 1, 2018 Share Posted March 1, 2018 It seems that are not too old.You must probe with actual versions. Firefox 58.0 works fine and Chrome Version 64.0.3282.186 (Build officiel) (64 bits) is exactly what i have.Mariano Link to comment Share on other sites More sharing options...
degroodt.nicolas Posted March 1, 2018 Author Share Posted March 1, 2018 Same issue with your version of ChromeHere an example : http://www.filedropper.com/examplebug Link to comment Share on other sites More sharing options...
degroodt.nicolas Posted March 2, 2018 Author Share Posted March 2, 2018 Hello Mariano,Did you succeed to run in on your server?Thanks a lot Link to comment Share on other sites More sharing options...
mlopez_1 Posted March 2, 2018 Share Posted March 2, 2018 Hi Nicolas, sorry but I don't run it.For me, only with older browser versions gave javascript problems.Perhaps, some browser configuration could be the cause.Mariano Link to comment Share on other sites More sharing options...
Solution degroodt.nicolas Posted March 6, 2018 Author Solution Share Posted March 6, 2018 I succeeded and it was an error in the bundled configuration file./opt/jasperreports-server-cp-6.4.2/apache-tomcat/webapps/jasperserver/WEB-INF/classes/jasperreports.propertiesGood config is : net.sf.jasperreports.phantomjs.executable.path=/opt/jasperreports-server-cp-6.4.2/phantomjs/bin/phantomjscom.jaspersoft.jasperreports.components.customvisualization.phantomjs.executable.path=/opt/jasperreports-server-cp-6.4.2/phantomjs/bin/phantomjsnet.sf.jasperreports.web.resource.pattern.customvisualization.scripts=com/jaspersoft/jasperreports/customvisualization/resources/require.*com.jaspersoft.jasperreports.components.customvisualization.require.js=file:////opt/jasperreports-server-cp-6.4.2/apache-tomcat/webapps/jasperserver/optimized-scripts/bower_components/requirejs/require.js Have a look to the require.* syntax. Cheers Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now