After upgrade from 2.4 to 2.6 the Applet will not load any more. The error is:
SEVERE: Cannot load i18n.properties
java.io.FileNotFoundException: http://127.0.0.1/sfdemo/start/i18n.properties
It looks like the javaupload is looking at the wrong location because I have set the codebase to:
/sfdemo/public/applets where the i18n.properties file is located.
The location /sfdemo/start/ is where the html page was started from that loaded the javascript, that loaded the applet
The exact code was working fine in version 2.4.
I18n.properties not found after upgrade to 2.6Re: I18n.properties not found after upgrade to 2.6Since 2.6 .properties files are loaded from document base location. We have to remove it from codebase to avoid security warning since JRE 1.6.0_19. However, you can setup full absolute URL in resources parameter such as:
<PARAM NAME="resources" VALUE="http://yourserver.com/whatyouwant/i18n"> Does it help? Re: I18n.properties not found after upgrade to 2.6It is looking for the i18N file at the right location now but it only uses the default i18n.properties file, not the i18n_xx.properties language specific files I have added.
Although if I change the default i18n.properties file this will be seen in the applet. Re: I18n.properties not found after upgrade to 2.6Language auto-detection has been removed because of new security issue. You can re-enable it by using: <PARAM NAME="localeresources" VALUE="true">
Then you can keep your former "resources" parameter based on CODEBASE. However, you will get the warning The only good solution is to auto-detect language yourself and then setup the correct i18n_xx parameter accordingly. Re: I18n.properties not found after upgrade to 2.6No problem, I will detect the language in my application and point to the correct file.
Re: I18n.properties not found after upgrade to 2.6You have a sample at:
viewtopic.php?f=2&t=478 |