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
Status: RESOLVED FIXED
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
URL: http://lists.w3.org/Archives/Public/p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-19 16:06 UTC by Dominique Hazael-Massieux
Modified: 2009-01-21 07:04 UTC (History)
2 users (show)

See Also:


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

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
  java.io.FileNotFoundException: \file:\C:\Proyectos\mobileok-ref\lib\css-validator.jar!\org\w3c\css\util\Messages.properties.en (El nombre de archivo, directorio o etiqueta del volumen no es vĂ¡lido) for all messages files.

Digging a bit through org.w3c.css.util.Messages.java 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.
"""
http://lists.w3.org/Archives/Public/public-mobileok-checker/2008Mar/0034.html
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 http://lists.w3.org/Archives/Public/www-validator-css/2008Nov/0027.html and http://lists.w3.org/Archives/Public/www-validator-css/2008Nov/0018.html
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 http://www.w3.org 
]]
Comment 3 Marshall Roch 2009-01-21 07:04:46 UTC
Works for me. Thanks!