Re: Exception running css-validator.jar built from latest source (regardless of the URL being tested)

On Wed, 22 Oct 2014, Jon Cram wrote:

> Hi,
>
> I used a copy the .jar to run the CSS validator from the command line. I 
> periodically build a new copy of the .jar to incorporate fixes and changes.
>
> I built a new copy of the .jar about an hour ago. The build was successful 
> but on execution an exception is raised.

Looks like a jar was missing in the classpath, I updated build.xml and it 
should be ok now.
Thanks for the report,

>
> Here's how I built the .jar:
> sudo mkdir /usr/share/css-validator
> cd /usr/share/css-validator
> sudo CVSROOT=:pserver:anonymous:anonymous@dev.w3.org:/sources/public cvs 
> checkout 2002/css-validator
> cd 2002/css-validator/
> sudo ant jar
>
> And here's how I'm executing it:
> cd /usr/share/css-validator/2002/validator
> java -jar css-validator.jar http://example.com
>
> An exception is raised no matter the URL that is being tested:
> {vextwarning=false, output=text, lang=en, warning=2, medium=all, 
> profile=css3}
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/commons/digester/RuleSet
>    at 
> org.apache.velocity.tools.config.ConfigurationUtils.getDefaultTools(ConfigurationUtils.java:77)
>    at 
> org.apache.velocity.tools.config.ConfigurationUtils.getAutoLoaded(ConfigurationUtils.java:176)
>    at 
> org.apache.velocity.tools.ToolManager.autoConfigure(ToolManager.java:74)
>    at org.apache.velocity.tools.ToolManager.<init>(ToolManager.java:68)
>    at org.apache.velocity.tools.ToolManager.<init>(ToolManager.java:54)
>    at 
> org.w3c.css.css.StyleSheetGenerator.<clinit>(StyleSheetGenerator.java:97)
>    at 
> org.w3c.css.css.StyleReportFactory.getStyleReport(StyleReportFactory.java:18)
>    at org.w3c.css.css.CssValidator.handleRequest(CssValidator.java:184)
>    at org.w3c.css.css.CssValidator.main(CssValidator.java:157)
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.commons.digester.RuleSet
>    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>    at java.security.AccessController.doPrivileged(Native Method)
>    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>    ... 9 more
>
>
> I can't say I really know where to start with this and I'm sure anyone who 
> does have a clue will need some more information.
>
> Anything I can do to help?
>
> Cheers,
> Jon
>

-- 
Baroula que barouleras, au tiƩu toujou t'entourneras.

         ~~Yves

Received on Friday, 24 October 2014 15:10:59 UTC