Jasperreports Maven Plugin Error Compiling Report Java Source Files
Contents |
Contacts Get a quote Your source for insights and trends in software development AllDeveloper BlogIndustry NewsMobile DevelopmentOur NewsWeb DevelopmentWhite Papers Error compiling JasperReports report with
Jasper-compiler-jdt
Maven January 31, 2011 by Softteco Was configuring a new server net.sf.jasperreports.engine.jrexception: error compiling report java source files for our application. Checked out sources from SVN and started compiling them with Maven. One of the pom.xml files contains instructions which precompile report JRXML files into JASPER files by the means of jasperreports-maven-plugin plugin. I was greatly confused when saw something like this:Error compiling report design : /home/andy/Sources/trunk/service/src/main/resources/com/softteco/jasperreports/data.jrxml : Error compiling report java source files : /home/andy/Sources/trunk/service/target/jasperreports/java/TableOfContentsReport_1296471173962_463866.java Hm, lets try running maven with "-X -e" options to see more details. org.apache.maven.BuildFailureException: Error compiling report design : //home/andy/Sources/trunk/service/src/main/resources/com/softteco/jasperreports/data.jrxml…..Caused by: org.apache.maven.plugin.MojoFailureException: Error compiling report design : /home/andy/Sources/trunk/service/src/main/resources/com/softteco/jasperreports/data.jrxml at org.codehaus.mojo.jasperreports.JasperReportsMojo.compile(JasperReportsMojo.java:253) No more additional information. Thanks God it's open source. Debugging plugin has shown that the problem occurs because javac executable is not found. So the problem has been solved quite trivially: just add path for JAVA_HOME into PATH variable. Tags: jasperreportsjavamavenreports 5 Responses Anonymous April 19, 2011 at 6:22 pm · Reply → Is there a way to specify to path to javac within Eclipse? This would be better than requiring an system environment variable to be set externally.
Bill Андрэй Панасюк April 20, 2011 at 6:39 am · Reply → Yeah, you're right.
Since this was for the remote server which I can access via SSH only - the solution was fine. On my own host I've pointed /usr/bin/javac to JDK via alternatives, so it's not a problem.
If you'll have a look into http://bit.ly/eDEx4G - you'll find a parameter named compiler. The default value is JRJavacCompiler. It's pretty Arne December 9, 2013 at 2:35 pm · Reply → Hi
this post is fairly old but since it is the first one that pops up on Google when searching for "MojoFailureException jasperreports-maven-plugi
Community Contact Login/Register Download Now ProductsAnswersExchangeDocsWikiPlanetTracker You are hereHome » Answers » Error compiling report java source files Error compiling report java source files Posted on May 3, 2007 at 3:53pm 0 Hi I´m trying to compile a report in this way JasperReport report = JasperCompileManager.compileReport(this.getClass().getClassLoader().getResourceAsStream(resumenCorteComite.xml)); that instruction run well in a OC4J Container in Windows xp but when I try to run this one in a OC4J Container in a Solaris I get the http://www.softteco.com/blog/error-compiling-jasperreports-report-with-maven/ follow error: Caused by: java.io.IOException: javac: not found at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.
this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ build failure When running assemble.pl http://opennms.530661.n2.nabble.com/build-failure-td5829051.html for 1.8.7 I get the following error. In order to get it to run error free I has to delete ALL the jasper report .jrxml files and remove them from jasper-reports.xml. Am I missing something, or perhaps have the wrong version of something? INFO] Compiling report file: 95thPercentileTrafficRate_LastMonth.jrxml [INFO] ------------------------------------------------------------------------ [ERROR] error compiling BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] : org.codehaus.mojo.jasperreports.JasperReportsMojo@3ce5cd19 Error compiling report design : /opt/opennms/opennms-1.8.7-1/source/ opennms-base-assembly/target/classes/etc/report-templates/ 95thPercentileTrafficRate_LastMonth.jrxml Error compiling report design : /opt/opennms/opennms-1.8.7-1/source/ opennms-base-assembly/target/classes/etc/report-templates/ 95thPercentileTrafficRate_LastMonth.jrxml : Error compiling report java source files : /opt/opennms/opennms-1.8.7-1/source/opennms-base- assembly/target/jasperreports/java/ j575thPercentileTrafficRate_1291929463848_274693.java --Bill-- ------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, error compiling report improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQopennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-devel Benjamin Reed Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: build failure -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/9/10 6:35 PM, Bill Ayres wrote: > When running assemble.pl for 1.8.7 I get the following error. In order > to get it to run error free I has to delete ALL the jasper > report .jrxml files and remove them from jasper-reports.xml. Am I > missing something, or perhaps have the wrong version of something? Hm, I can't reproduce this locally; we have seen some problems with the jasperreport plugin not honoring $JAVA_HOME, though. What does "`which java` -version" print? - -- Benjamin Reed The OpenNMS Group http://www.opennms.org/-----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.1