Page 1 of 1

I18n.properties not found after upgrade to 2.6

Posted: Sun Apr 25, 2010 9:07 pm
by tbraber
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.

Re: I18n.properties not found after upgrade to 2.6

Posted: Mon Apr 26, 2010 8:04 pm
by support
Since 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.6

Posted: Tue Apr 27, 2010 7:19 am
by tbraber
It 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.6

Posted: Tue Apr 27, 2010 6:58 pm
by support
Language 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.6

Posted: Tue Apr 27, 2010 8:32 pm
by tbraber
No problem, I will detect the language in my application and point to the correct file.

Re: I18n.properties not found after upgrade to 2.6

Posted: Sun May 02, 2010 5:06 pm
by support
You have a sample at:
viewtopic.php?f=2&t=478