Search code examples
javajasper-reportsjasperstarter

JasperStarter - use MongoDB - JRRuntimeException


/home/x/jasperstarter/bin/jasperstarter cp -i test.jrxml
....
    at de.cenote.jasperstarter.App.main(App.java:103)
        Caused by: net.sf.jasperreports.engine.JRRuntimeException: No query executer factory registered for the 'MongoDbQuery' language.
    at net.sf.jasperreports.engine.util.JRQueryExecuterUtils.getExecuterFactory(JRQueryExecuterUtils.java:114)
    at net.sf.jasperreports.engine.design.JRDesignDataset.queryLanguageChanged(JRDesignDataset.java:1163)
    at net.sf.jasperreports.engine.design.JRDesignDataset.setQuery(JRDesignDataset.java:630)
    at net.sf.jasperreports.engine.design.JasperDesign.setQuery(JasperDesign.java:791)
    ... 30 more

    input file: "test.jrxml" is not a valid jrxml file

Trying to compile a .jrxml file into .jasper report with JasperStarter on command line.

Throws Exception not beeing able to find the MongoDB driver.

the .jrxml file IS valid, as I can compile it using iReports.

I need a command line working tool to compile - what do I need to do to get further with this...


Solution

  • On installing the JasperServer Commnunity Version (5.1.0),

    there will be 2 folders with jars libs:

    /opt/jasperreports-server-cp-5.1.0/apache-tomcat/webapps/jasperserver/WEB-INF/lib
    
    /opt/jasperreports-server-cp-5.1.0/buildomatic/conf_source/ieCe/lib
    

    One of these HAS the datasource jars, the other DOES NOT.

    Try both, one will succeed.