On Sun, 13 Apr 2014 15:06:06 -0400 hafid ouazib <[email protected]> wrote:
> Hi, > I created a new report using iReport and localization works fine when > I run it with iReport, > but when I try to run it inside my application(with eclipse), I put > the .jasper report and properties files(traduction_en_CA.properties, > traduction_fr_FR.properties, traduction.properties) in Ressources > folder of my app > I get an error: > Since you are losing this in eclipse, you should probably check the settings for the Resources filtering. There can be a list of things, like "*.eomodeld" and such, that need to matched to be included and another list of things to be excluded. And localization means there is another step to the copying that needs to occur.... These lists can be attached to your project or the workspace or, you know, the usual eclipse places. Do the .jasper files show up inside the copy of the Resources folder that eclipse makes when it builds? The ".properties" files would be included by default, but perhaps not the jasper files. - ray > MissingResourceException: Can't find bundle for base name traduction, > locale fr_FR > at > java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499) > at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322) > at java.util.ResourceBundle.getBundle(ResourceBundle.java:1028) > at > net.sf.jasperreports.engine.util.JRResourcesUtil.loadResourceBundle(JRResourcesUtil.java:571) > at > net.sf.jasperreports.engine.util.JRResourcesUtil.loadResourceBundle(JRResourcesUtil.java:509) > at > net.sf.jasperreports.engine.fill.JRFillDataset.loadResourceBundle(JRFillDataset.java:534) > at > net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:569) > at > net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1276) > at > net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:897) > at > net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:841) > at > net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58) > at > net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417) > at > net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247) > at > net.sf.jasperreports.engine.JasperRunManager.runReportToPdfFile(JasperRunManager.java:122) > > any idea?? _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
