[ 
http://jira.codehaus.org/browse/MOJO-1513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Bahdanau updated MOJO-1513:
--------------------------------

    Attachment: jasperreports-3.7.1.jar

I had the same issue and the problem was that the javac that is called by 
JRJavacCompiler was not able to allocate enough memory to compile the jasper 
reports.
To find this issue I've changed JRJavacCompiler  in jasperreports.jar file so 
it prints the error stack trace. 
I've attached changed jasperreports-3.7.1.jar that prints out the stackTrace 
for the error that happened when jasper reports are not compiled. 

Try to use this library instead of that one that comes from jasper reports - 
probably You'll see why You have the compilation error.

Hope this helps.

> Could not execute on Cent OS.
> -----------------------------
>
>                 Key: MOJO-1513
>                 URL: http://jira.codehaus.org/browse/MOJO-1513
>             Project: Mojo
>          Issue Type: Bug
>          Components: jasperreports
>         Environment: JDK 1.6.0_18, CentOS, Apache Maven 2.2.1
>            Reporter: Anton Murauyou
>            Priority: Minor
>         Attachments: jasperreports-3.7.1.jar
>
>
> Hi, guys.
> I have a very strange problem. I can't compile report design, though 
> everything works fine on my computer.
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] : org.codehaus.mojo.jasperreports.jasperreportsm...@15a4523
> Error compiling report design : 
> /home/esoft/teamcity/buildzone/auditdb/com.kn.audit.ejb/src/main/jasperreports/utopia/second_Recommendations.jrxml
> Error compiling report design : 
> /home/esoft/teamcity/buildzone/auditdb/com.kn.audit.ejb/src/main/jasperreports/utopia/second_Recommendations.jrxml
>  : Error compiling report java source files : 
> /home/esoft/teamcity/buildzone/auditdb/com.kn.audit.ejb/target/jasperreports/java/Recommendations_1268842314716_415224.java
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Error compiling report design : 
> /home/esoft/teamcity/buildzone/auditdb/com.kn.audit.ejb/src/main/jasperreports/utopia/second_Recommendations.jrxml
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>         at 
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoFailureException: Error compiling 
> report design : 
> /home/esoft/teamcity/buildzone/auditdb/com.kn.audit.ejb/src/main/jasperreports/utopia/second_Recommendations.jrxml
>         at 
> org.codehaus.mojo.jasperreports.JasperReportsMojo.compile(JasperReportsMojo.java:253)
>         at 
> org.codehaus.mojo.jasperreports.JasperReportsMojo.execute(JasperReportsMojo.java:187)
>         at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>         ... 17 more
> The plugins section in pom.xml looks this way:
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-compiler-plugin</artifactId>
>                 <configuration>
>                     <source>1.6</source>
>                     <target>1.6</target>
>                 </configuration>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-ejb-plugin</artifactId>
>                 <configuration>
>                     <ejbVersion>3.0</ejbVersion>
>                     <archive>
>                         <manifest>
>                             <addClasspath>true</addClasspath>
>                         </manifest>
>                     </archive>
>                 </configuration>
>             </plugin>
>             <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>jasperreports-maven-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <phase>compile</phase>
>                         <goals>
>                             <goal>compile-reports</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>                 <dependencies>
>                     <!--note this must be repeated here to pick up correct 
> xml validation -->
>                     <dependency>
>                         <groupId>jasperreports</groupId>
>                         <artifactId>jasperreports</artifactId>
>                         <version>3.7.1</version>
>                     </dependency>
>                     <dependency>
>                         <groupId>log4j</groupId>
>                         <artifactId>log4j</artifactId>
>                         <version>1.2.14</version>
>                     </dependency>
>                 </dependencies>
>             </plugin>
>         </plugins>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to