Hi Rodrigo;
Only errors.properties is avaibale in the binary & this is not a bug.
If you want to get error messages localized to a locale of you choice, you need to
add a message file with the format errors_<LOCALE>.properties to the classpath.
If a message bundle is not available for the locale of user, the application
(Rampart in this case) should pick the messages from the default bundle (i.e.
errors.properties) rather than complaining of the missing bundle. This is what
I suggested here [1].
Just go through [1] & you can get an idea of what to include in your jira.
[1] http://marc.theaimsgroup.com/?l=axis-dev&m=116583812603458&w=2
Thanks,
/sumedha
Rodrigo Ruiz wrote:
Hi Ruchith, Sumedha,
I am searching for some information to write a JIRA report for this problem.
Looking at the source code of RampartException, I have found that:
* It uses the standard java.util.ResourceBundle class
* Only errors.properties is present in the org.apache.rampart package
So, the code should fail for all locales, or for none! There should be
no difference at all for German locales!
The only guesses I can make are:
* The Axis2 binaries Sumedha uses do not include errors.properties
* A extrange ClassLoader issue prevents ResourceBundle from finding the
file.
The first case would be a building/packaging problem, probably very easy
to fix. The second case might be a really difficult one.
Sumedha, could you please verify that
org.apache.rampart.errors.properties is not missing in your binaries?
If it is present, a full stacktrace would be required for tracking the
problem, as the real source will be in a totally different location.
Best regards,
Rodrigo Ruiz
Ruchith Fernando wrote:
This seems to be a bug in Rampart. Sumedha also pointed this out here [1].
Please file a JIRA.
Thanks,
Ruchith
[1] http://marc.theaimsgroup.com/?l=axis-dev&m=116583812603458&w=2
On 12/11/06, Rodrigo Ruiz <[EMAIL PROTECTED]> wrote:
Hi,
I thought ResourceBundles were smart enough to use the default bundle
when a specific one was not found; so, if errors.properties is present
in the classpath, why does Rampart complain at all?
Best regards,
Rodrigo Ruiz
Ruchith Fernando wrote:
Hi,
Since your locale is DE you you will have to have
"errors_de.properties" file available in the classpath in the
"org.apache.rampart" package.
Simply copy the content of this file [1] into the errors_de.properties
file. Optionally you can translate messages :-)
Thanks,
Ruchith
[1]
https://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/modules/security/src/org/apache/rampart/errors.properties
On 12/11/06, Daniel Wehrle <[EMAIL PROTECTED]> wrote:
Hi,
I tried to do a little Axis2 sample on my German Windows. I connect
to a
.Net web service using wssecurity,
so I use rampart for the UsernameToken.
But by sending a message I got an stack trace ending with:
Caused by: _java.lang.RuntimeException_: Can't find bundle for base
name
org.apache.rampart.errors, locale de_DE
at
org.apache.rampart.RampartException.<clinit>(_RampartException.java:36_)
What I am doing wrong?
Thanks
-- Daniel Wehrle
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
-------------------------------------------------------------------
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca [EMAIL PROTECTED]
Baleares - Spain Tel: +34 971 435 085
http://www.gridsystems.com/ Fax: +34 971 435 082
-------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]