W3C home > Mailing lists > Public > www-validator-css@w3.org > January 2009

Possible bug in IndexGenerator.java

From: Eric Chan <erchan2000@gmail.com>
Date: Sat, 31 Jan 2009 05:41:47 -0500
Message-ID: <c1fc446e0901310241o3dd4d039qef1e614c5096097c@mail.gmail.com>
To: "www-validator-css@w3.org" <www-validator-css@w3.org>
I'm looking through the code because I'm having trouble setting up CSS
Validator after downloading it from your website thru CSS.

I compiled from source and everything seemed fine.

When I launch the servlet, it keeps saying ResourceNotFound (validator.vm
file).

I noticed that we are using Velocity 1.6.1 in default mode
(FileResourceLoader).

However, the file validator.vm is stored in css-validator.jar, which is a
JAR file. Shouldn't we be using JarResourceLoader for all this?

Whenever the code in Velocity tries to access the validator.vm file in
css-validator.jar, the "canRead()" API returns false.

I have verified using IDE Java debug tool that it's not possible to access
the validator.vm within css-validator.jar using  the java File API.
However, JarEntry (first getting the JarFile object) seems to be OK.

Am i missing something here?

Thanks.
Received on Saturday, 31 January 2009 19:59:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:21 GMT