Can't find bundle even if the files are present - jasperserver

I have added 3 resource bundles for the languages english, french and portugese. I have added these in WEB-INF/bundles path. I have used $R{} for the all the labels in my report. I haven't added any resource bundles in the JasperReports Server repository.
My understanding was that, since I have used $R for my labels, JasperReports Server first checks within the report and repository if the relevant .properties file is present and once found will do the translation. If not found it will search in WEB-INF/bundles.
Since, I have not added the .properties files in report or repository , it must search in WEB-INF/bundles.
But, when I run the report I get the error
java.util.MissingResourceException: Can't find bundle for base name language, locale en_US
Any ideas on this would of great help

Got it! Had to put the files in WEB-INF/classes instead of WEB-INF/bundles
Thanks

Related

Setting Recursive tag ON does not searching sub folders for .NET projects

I am a newbie to doxygen tool. I've followed the doxygen configuration guide for generating a HTML document out of my C# source files. I am able to generate the HTML output, but I identified that it is generating output of the files that exists in the selected source folder only, where as the files present inside the sub directories of the source folder are skipped/ignored. Per help guide, I've checked the "Recursive" option in the wizard. Is there anything still we need to configure?
Could anyone help me out for resolving this issue. Thanks in advance.
Regards
Badri

Eclipse associating *.mod files with DTD, validation fails for Jetty mod file

I recently brought an existing maven project into Eclipse 2020-03. The project contains a jetty folder which itself contains a file:
modules/somefile.mod
The *.mod file pattern seems to be associated with the DTD content type, and this association is "locked". Because my file is not a DTD, it fails the validation.
Eclipse's Bugzilla lists a 7-year old bug, Bug 420688, which describes this problem, but the workarounds there don't seem to work for me.
The validation error I get is
The markup declarations contained or pointed to by the document type declaration must be well-formed.
Is there a way to
Disable the validation of this particular file, or preferably
Disassociate it from the DTD content type?
Thanks for any advice or direction.

where to find Jasperreport 's specific packages?

friend ,where can I find jasperreport's package
net.sf.jasperreports.jdbc.concurrency?
I now use jasperreports-4.0.0.jar, but there not exit this package. In which version can I find the package? thanks first :)
The following directories contain all the JAR files used by iReport and JasperReports:
$IREPORT_HOME/ireport/modules/ext
$IREPORT_HOME/ide10/modules/ext
Where $IREPORT_HOME is the installation directory for iReport.
Use http://www.findjar.com/ to find JAR files containing specific classes.
If you have to find a specific package, I would guess that the CLASSPATH is either not being set properly or there is a conflicting JAR file somewhere.
Without knowing why you want to find a specific package, it is difficult to answer the question.

How to use AIDL files in eclipse

I am compiling an app which is a sample app that uses an api. The api contains interface files (java files) and aidl files. Now I have problem in one of the interface file it cannot recognize the one of these aidl files exists in my project.
I have linked the whole api to the build path.
Does anyone has any idea ??
I had the same error, but it was fixed when I cleaned and rebuilded the project.
Projects -> clean project so it can automatically rebuild.
Look closely at your manifest file, check that the package etc are
spelled as you'd expect.
Also dont forget to paste the server's *.aidl and parcelable implementation (java) to your client project. These files has to have the same name and package as they were in the server project.
Here is some similar posts which might help:
ITelephony.aidl not compiling in eclipse
There are basically two possibilities.
(most likely) you need to make the folder that contains aidl files source folder. if you haven't done so, please do it.
You need a clean build.

Problems deploying WAR file from Netbeans to Tomcat

I'm trying to configure build.xml files for build forge, but it seems like I am having trouble with the libraries required for the java servlet pages. I am actually trying to use OWASP's AntiSamy library but I keep getting a Policy Exception followed by a file not found
org.owasp.validator.html.PolicyException: java.io.FileNotFoundException: C:\Program%20Files \Apache%20Software%20Foundation\apache-tomcat-6.0.29\webapps\XSSDemo\WEB-INF\classes\...\antisamy.xml (The system cannot find the path specified)
The antisamy.xml file is definitely in this location, however.
So I tried using Netbeans to clean and build a WAR file that I would have expected to work, since the web app works fine when I run it through Netbeans. However, I get the same problem. Is there possible some reference that Netbeans is creating when I run the app through the ide that is not occurring in the WAR deployment? Could the URL Encoding in the antisamy.xml location be causing problems?
Thanks for the help.
Edit: I compressed the long class path into the three dots here. The actual response has the actual class path. I am not getting any kind of security errors.
The problem I had was not actually with the deployment--it was the file reference itself in my java servlet. The encoding in the path '%20' in the Program Files folder caused a FileNotFoundException. The reason this did not occur in netbeans is because the deployed files are in a c:\users... folder and there are no spaces to be encoded. The also explained why the application ran well on other computers with their tomcat folders directly on the root directory. This is the actual solution to my problem. Thanks for all your help.