The jar provided on the following link has some errors:
http://jigsaw.w3.org/css-validator/DOWNLOAD.html
After google, I found out that the jar has some bugs in it, and the code needs to be checkout and fixed by the developer, so I have checkout the src of the css-validator and build it, found some errors. I fixed some path related errors, now it runs but still gives other errors. I think its better to find some other alternate to test the css validity as part of the build.
After fixing couple of things, I still get the following error:
D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\css-validator>java -jar css-validator.jar http://www.w3.org/
{output=text, medium=all, warning=2, profile=css21, lang=en}
org.w3c.css.css.XMLStyleSheetHandler: couldn't load catalog.xml
no protocol: "jar:file:/D:/work/development/head/svn/ossrepo/icefaces/trunk/icefaces/css-validator/css-validator.jar!/org/w3c/css/util/xml/catalog.xml"
5-Nov-2008 12:36:25 PM org.apache.velocity.runtime.log.JdkLogChute log
INFO: Velocity not initialized yet. Calling init()...
5-Nov-2008 12:36:25 PM org.apache.velocity.runtime.log.JdkLogChute log
INFO: FileResourceLoader : adding path '.'
5-Nov-2008 12:36:25 PM org.apache.velocity.runtime.log.JdkLogChute log
SEVERE: ResourceManager : unable to find resource 'text.properties' in any resource loader.
Unable to find resource 'text.properties'
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'text.properties'
at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:452)
at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:335)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1077)
at org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.java:303)
at org.apache.velocity.app.Velocity.getTemplate(Velocity.java:503)
at org.w3c.css.css.StyleSheetGenerator.<init>(StyleSheetGenerator.java:161)
at org.w3c.css.css.StyleReportFactory.getStyleReport(StyleReportFactory.java:19)
at org.w3c.css.css.CssValidator.handleRequest(CssValidator.java:179)
at org.w3c.css.css.CssValidator.main(CssValidator.java:152)
java.lang.NullPointerException
at org.w3c.css.css.StyleSheetGenerator.print(StyleSheetGenerator.java:419)
at org.w3c.css.css.CssValidator.handleRequest(CssValidator.java:192)
at org.w3c.css.css.CssValidator.main(CssValidator.java:152)
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
<title>CSS Validator : Error</title>
<link type="text/css" rel='stylesheet' href='http://jigsaw.w3.org/css-validator/style/error.css' />
</head>
<body>
<div>
<a href="http://www.w3.org/"><img src="http://www.w3.org/Icons/w3c_home" alt="w3c" /></a>
</div>
<hr />
<div class="t1">CSS</div>
<div class="t2">Validator</div>
<div class="t3">Error</div>
<h2>Target: http://www.w3.org/</h2>
<div class="error">
<p>Oups! Internal error!</p><p>
</p></div>
<hr />
<p><img src='images/mwcss.gif' alt='made with CSS' /></p>
<address><a href='Email.html'>www-validator-css</a></address>
</body></html>
Please fix the existing theme stylesheets so they pass the W3C tests, then take a look at having the test run with each build.