Jump to content
We've recently updated our Privacy Statement, available here ×

jasperreport 6.4 No define call for cv-component


degroodt.nicolas
Go to solution Solved by degroodt.nicolas,

Recommended Posts

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-component
http://requirejs.org/docs/errors.html#nodefine
at 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.properties

net.sf.jasperreports.phantomjs.executable.path=/opt/jasperreports-server-cp-6.4.2/phantomjs/bin/phantomjs
com.jaspersoft.jasperreports.components.customvisualization.phantomjs.executable.path=/opt/jasperreports-server-cp-6.4.2/phantomjs/bin/phantomjs
net.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

Could you please help

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

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

Good config is :

 

net.sf.jasperreports.phantomjs.executable.path=/opt/jasperreports-server-cp-6.4.2/phantomjs/bin/phantomjs
com.jaspersoft.jasperreports.components.customvisualization.phantomjs.executable.path=/opt/jasperreports-server-cp-6.4.2/phantomjs/bin/phantomjs
net.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

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