Re: 500 error, loading properties for language files

Andrei Doicin wrote:
> I'm speculating if the problem on this Centos 4.7
> is a result of some dodgy symbolic linking I was doing a while back on
> libcgj.jar to get something completely unrelated to install nicely ...
> 
> [root@io-dev23 java]# pwd
> /usr/share/java
> [root@io-dev23 java]# ls -l libgcj-3.4.*
> -rw-r--r--  1 root root 6236968 Jul 24 22:41 libgcj-3.4.3.jar
> lrwxrwxrwx  1 root root      16 Oct 23 16:32 libgcj-3.4.6.jar ->
> libgcj-3.4.3.jar
> 
> org.w3c.css.util.Messages: couldn't load properties de
>   java.io.FileNotFoundException:
> /file:/opt/apache-tomcat-5.5.27/webapps/css-validator/WEB-INF/lib/css-va
> lidator.jar!/org/w3c/css/util/Messages.properties.de
> (No such file or directory)

The code leading to that is:
java.io.InputStream f = 
Messages.class.getResourceAsStream("Messages.properties.de");

So basically, the JVM is unable to find the file it has found 1ms ago to 
build the correct URL :D
In fact,
/file:/opt/apache-tomcat-5.5.27/webapps/css-validator/WEB-INF/lib/css-validator.jar!/org/w3c/css/util/Messages.properties.de

Is strange, it should have been:
jar:/opt/apache-tomcat-5.5.27/webapps/css-validator/WEB-INF/lib/css-validator.jar!/org/w3c/css/util/Messages.properties.de

But maybe gcj knows how to handle 
file:/opt/apache-tomcat-5.5.27/webapps/css-validator/WEB-INF/lib/css-validator.jar!/org/w3c/css/util/Messages.properties.de 

correctly.
Still, the leading / is wrong. Whatever the correct URL is, it's 
completely internal to your JVM setup :D

Damien

Received on Friday, 14 November 2008 15:23:51 UTC