Article - CS393087
Compiling Jasper Report with the function JasperCompileManager.compileReport no longer works after upgrading in Windchill PDMLink
Modified: 01-Apr-2024
Applies To
- Windchill PDMLink 12.1
Description
- Compiling Jasper Report file (.jrxml) on the Windchill server with the function JasperCompileManager.compileReport( worked in Windchill 12.0.2.7, but no longer works after upgrading to 12.1.2.
- Observe below error in the logs after executing command: com.ptc.wbr.jasper.util.JRXMLCompiler.getCompiledJasper
2023-05-18 19:26:09,244 ERROR [ajp-nio-127.0.0.1-8010-exec-1] com.ptc.jca.error wcadmin - ---------- JCA Exception ---------- java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/env/INameEnvironment at net.sf.jasperreports.engine.JasperCompileManager.getJavaCompiler(JasperCompileManager.java:739) at net.sf.jasperreports.engine.JasperCompileManager.getCompiler(JasperCompileManager.java:856) at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:358) at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:291) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:576) at com.ptc.wbr.jasper.util.JRXMLCompiler.getCompiledJasper(JRXMLCompiler.java:160) at org.apache.jsp.netmarkets.jsp.jasperCompile_jsp._jspService(jasperCompile_jsp.java:391)
- The same command works in 12.0.2.7 release due to 3rd party ecj.jar content being present in wc3rdpartylibs.jar.
This is a printer-friendly version of Article 393087 and may be out of date. For the latest version click CS393087