This content has been marked as final. Show 3 replies
How are you establishing that it is actually reading the keys? Have you iterated over the returnvalue of propertyNames()? By default, getProperty(String) will return null if it can't find the entry, not throw an error. Is it possible that the file is not being read and you have handled the exception somewhere so you don't get an error output?
My guess is that this would be some kind of path or permissions issue, but I would expect this to throw a FileNotFoundException. Any rational explanation for this behavior that I can come up with would throw an exception somewhere so I suspect it is either getting swallowed or there is an entry in the log files of your server for it.
Well i'm using getProperty(...), but if java could't read the file, the keys weren't read.
But I can get the keys, just not the values. On tomcat logs until the moment i can't get any output, no IOException is throw at loadFromXml.
Some update on this problem, when I try to access the same file but on the plain text format, iot works fine.