mulam_anil Posted November 17, 2007 Share Posted November 17, 2007 i am generating reports using jasper report in dwr.it shows some like thisErrors were encountered when compiling report expressions class file:D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:4: package net.sf.jasperreports.engine does not existimport net.sf.jasperreports.engine.*;^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:5: package net.sf.jasperreports.engine.fill does not existimport net.sf.jasperreports.engine.fill.*;^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:13: package net.sf.jasperreports.engine does not existimport net.sf.jasperreports.engine.*;^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:15: package net.sf.jasperreports.engine.data does not existimport net.sf.jasperreports.engine.data.*;^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:21: cannot find symbolsymbol: class JREvaluatorpublic class item_1195287830437_658743 extends JREvaluator ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:28: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 private JRFillParameter parameter_REPORT_LOCALE = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:29: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 private JRFillParameter parameter_REPORT_VIRTUALIZER = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:30: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 private JRFillParameter parameter_REPORT_TIME_ZONE = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:31: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 private JRFillParameter parameter_REPORT_MAX_COUNT = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:32: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 private JRFillParameter parameter_REPORT_SCRIPTLET = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:33: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 private JRFillParameter parameter_REPORT_PARAMETERS_MAP = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:34: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 private JRFillParameter parameter_REPORT_CONNECTION = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:35: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 private JRFillParameter parameter_REPORT_CLASS_LOADER = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:36: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 private JRFillParameter parameter_REPORT_URL_HANDLER_FACTORY = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:37: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 private JRFillParameter parameter_REPORT_RESOURCE_BUNDLE = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:38: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 private JRFillParameter parameter_REPORT_DATA_SOURCE = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:39: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 private JRFillParameter parameter_IS_IGNORE_PAGINATION = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:40: cannot find symbolsymbol : class JRFillFieldlocation: class item_1195287830437_658743 private JRFillField field_rate = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:41: cannot find symbolsymbol : class JRFillFieldlocation: class item_1195287830437_658743 private JRFillField field_item_id = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:42: cannot find symbolsymbol : class JRFillFieldlocation: class item_1195287830437_658743 private JRFillField field_name = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:43: cannot find symbolsymbol : class JRFillFieldlocation: class item_1195287830437_658743 private JRFillField field_manf_company = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:44: cannot find symbolsymbol : class JRFillVariablelocation: class item_1195287830437_658743 private JRFillVariable variable_PAGE_NUMBER = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:45: cannot find symbolsymbol : class JRFillVariablelocation: class item_1195287830437_658743 private JRFillVariable variable_COLUMN_NUMBER = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:46: cannot find symbolsymbol : class JRFillVariablelocation: class item_1195287830437_658743 private JRFillVariable variable_REPORT_COUNT = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:47: cannot find symbolsymbol : class JRFillVariablelocation: class item_1195287830437_658743 private JRFillVariable variable_PAGE_COUNT = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:48: cannot find symbolsymbol : class JRFillVariablelocation: class item_1195287830437_658743 private JRFillVariable variable_COLUMN_COUNT = null; ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:71: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 parameter_REPORT_LOCALE = (JRFillParameter)pm.get("REPORT_LOCALE"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:72: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 parameter_REPORT_VIRTUALIZER = (JRFillParameter)pm.get("REPORT_VIRTUALIZER"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:73: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 parameter_REPORT_TIME_ZONE = (JRFillParameter)pm.get("REPORT_TIME_ZONE"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:74: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 parameter_REPORT_MAX_COUNT = (JRFillParameter)pm.get("REPORT_MAX_COUNT"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:75: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 parameter_REPORT_SCRIPTLET = (JRFillParameter)pm.get("REPORT_SCRIPTLET"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:76: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 parameter_REPORT_PARAMETERS_MAP = (JRFillParameter)pm.get("REPORT_PARAMETERS_MAP"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:77: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 parameter_REPORT_CONNECTION = (JRFillParameter)pm.get("REPORT_CONNECTION"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:78: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 parameter_REPORT_CLASS_LOADER = (JRFillParameter)pm.get("REPORT_CLASS_LOADER"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:79: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 parameter_REPORT_URL_HANDLER_FACTORY = (JRFillParameter)pm.get("REPORT_URL_HANDLER_FACTORY"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:80: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 parameter_REPORT_RESOURCE_BUNDLE = (JRFillParameter)pm.get("REPORT_RESOURCE_BUNDLE"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:81: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 parameter_REPORT_DATA_SOURCE = (JRFillParameter)pm.get("REPORT_DATA_SOURCE"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:82: cannot find symbolsymbol : class JRFillParameterlocation: class item_1195287830437_658743 parameter_IS_IGNORE_PAGINATION = (JRFillParameter)pm.get("IS_IGNORE_PAGINATION"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:91: cannot find symbolsymbol : class JRFillFieldlocation: class item_1195287830437_658743 field_rate = (JRFillField)fm.get("rate"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:92: cannot find symbolsymbol : class JRFillFieldlocation: class item_1195287830437_658743 field_item_id = (JRFillField)fm.get("item_id"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:93: cannot find symbolsymbol : class JRFillFieldlocation: class item_1195287830437_658743 field_name = (JRFillField)fm.get("name"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:94: cannot find symbolsymbol : class JRFillFieldlocation: class item_1195287830437_658743 field_manf_company = (JRFillField)fm.get("manf_company"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:103: cannot find symbolsymbol : class JRFillVariablelocation: class item_1195287830437_658743 variable_PAGE_NUMBER = (JRFillVariable)vm.get("PAGE_NUMBER"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:104: cannot find symbolsymbol : class JRFillVariablelocation: class item_1195287830437_658743 variable_COLUMN_NUMBER = (JRFillVariable)vm.get("COLUMN_NUMBER"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:105: cannot find symbolsymbol : class JRFillVariablelocation: class item_1195287830437_658743 variable_REPORT_COUNT = (JRFillVariable)vm.get("REPORT_COUNT"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:106: cannot find symbolsymbol : class JRFillVariablelocation: class item_1195287830437_658743 variable_PAGE_COUNT = (JRFillVariable)vm.get("PAGE_COUNT"); ^D:Program FilesApache Software FoundationTomcat 5.0item_1195287830437_658743.java:107: cannot find symbolsymbol : class JRFillVariablelocation: class item_1195287830437_658743 variable_COLUMN_COUNT = (JRFillVariable)vm.get("COLUMN_COUNT");please help me regard this Link to comment Share on other sites More sharing options...
martynhiemstra Posted November 20, 2007 Share Posted November 20, 2007 I am willing to help but first this. Please first learn how to program and use Java. This is a very simple and basic Java error. It says that it can't find a certain package, namely net.sf.jasperreport. If you had searched this forum or visited the jasperreport site you would have discovered that you need to put the jasperreport*.jar file in your classpath. This will solve the problem. Link to comment Share on other sites More sharing options...
NickyDavid Posted December 4, 2007 Share Posted December 4, 2007 Hello, I am getting the same error. I do have the jasperreports .jar file in the classpath. I understand Tomcat is not finding the jasperreports compiler but can you give me any pointers on which setup I might be missing? The jasperreports works fine in Eclipse environment (where I am using JasperAssistant to preview the report). But when I use a servlet to display the report in pdf in the browser, I get this error. Any help will be greatly appreciated. Thanks,Nicky Link to comment Share on other sites More sharing options...
lucianc Posted December 5, 2007 Share Posted December 5, 2007 See this FAQ. HTH,Lucian Link to comment Share on other sites More sharing options...
NickyDavid Posted December 6, 2007 Share Posted December 6, 2007 Thanks Lucian. I included the jdt compiler jar and it works now. There is something I dont understand though...I started working on this current project about a year ago and used jasperreports-1.2.2 with Tomcat 4.1. Every setting was the same as it is now and it was working. I had checked it into CVS. And now when I had to return to this project, I just pulled everything down from CVS. The jdt compiler was not included then. Can you suggest why it might have been working previously? Thanks a bunch again for your help. -Nicky Link to comment Share on other sites More sharing options...
lucianc Posted December 6, 2007 Share Posted December 6, 2007 NickyDavid wrote:The jdt compiler was not included then. Can you suggest why it might have been working previously? Are you using the same Tomcat version? Tomcat also uses the Eclipse JDT classes to compile JSPs, and maybe older Tomcat versions were including the JDT classes on the web applications' classloaders. Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now