IReport 中 java.lang.ClassNotFoundException:...CompilationFailedException 异常的处理
java.lang.ClassNotFoundException: org.codehaus.groovy.control.CompilationFailedException from BaseClassLoader@40109310{VFSClassLoaderPolicy@27204c{orts.engine.component, org.primefaces.component.chart.ohlc, com.opensymphony.module.sitemesh.velocity, org.primefaces.component.mindmap, org.apache at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.getConstructor(Class.java:1657) at net.sf.jasperreports.engine.JasperCompileManager.getCompiler(JasperCompileManager.java:690) at net.sf.jasperreports.engine.JasperCompileManager.getEvaluator(JasperCompileManager.java:263)
解决方案:设置模板的"language"属性为java
结果:可以正常导出与打印报表