This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 5578 - Jar of CSS-validator has problem loading messages properties
Summary: Jar of CSS-validator has problem loading messages properties
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
Depends on:
Reported: 2008-03-19 16:06 UTC by Dominique Hazael-Massieux
Modified: 2009-01-21 07:04 UTC (History)
2 users (show)

See Also:

Removes Messages.adjustURL (6.47 KB, patch)
2009-01-19 22:29 UTC, Marshall Roch

Description Dominique Hazael-Massieux 2008-03-19 16:06:24 UTC
Launching the tester gives me the next warning 
org.w3c.css.util.Messages: couldn't load properties en \file:\C:\Proyectos\mobileok-ref\lib\css-validator.jar!\org\w3c\css\util\ (El nombre de archivo, directorio o etiqueta del volumen no es vĂ¡lido) for all messages files.

Digging a bit through code I reached where locales are inicialized and messages files loaded. In order to load a messages file the URL pointing at it is cleaned through adjustURL method. This method doesn't consider file:/ (with only one slash '/') option so I ended with an URL as file:///file:/......

After modifying this class so adjustURL method is not used and replacing the css library and I managed to launch ContentFormatSupportTest 7 with success.
Comment 1 Marshall Roch 2009-01-19 22:29:30 UTC
Created attachment 615 [details]
Removes Messages.adjustURL

Removes Messages.adjustURL, which breaks when running css-validator.jar from the command line.

Fixes from and
Comment 2 Jean-Guilhem Rouel 2009-01-20 14:58:43 UTC
Patch applied in latest revision. Please update and give it a try.

> ant jar
> java -jar css-validator.jar 
Comment 3 Marshall Roch 2009-01-21 07:04:46 UTC
Works for me. Thanks!