Re: Exception running css-validator.jar built from latest source (regardless of the URL being tested)
Yves Lafon <[email protected]> Fri, 24 Oct 2014 11:10:57 -0400 (EDT)
| Newsgroups | gmane.org.w3c.validator.css |
|---|---|
| Message-ID | <[email protected]> |
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= =20 > periodically build a new copy of the .jar to incorporate fixes and change= s. > > I built a new copy of the .jar about an hour ago. The build was successfu= l=20 > but on execution an exception is raised. Looks like a jar was missing in the classpath, I updated build.xml and it= =20 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=3D:pserver:anonymous:[email protected]:/sources/public cv= s=20 > 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=3Dfalse, output=3Dtext, lang=3Den, warning=3D2, medium=3Dall= ,=20 > profile=3Dcss3} > Exception in thread "main" java.lang.NoClassDefFoundError:=20 > org/apache/commons/digester/RuleSet > at=20 > org.apache.velocity.tools.config.ConfigurationUtils.getDefaultTools(Confi= gurationUtils.java:77) > at=20 > org.apache.velocity.tools.config.ConfigurationUtils.getAutoLoaded(Configu= rationUtils.java:176) > at=20 > 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=20 > org.w3c.css.css.StyleSheetGenerator.<clinit>(StyleSheetGenerator.java:97) > at=20 > 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:=20 > 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 wh= o=20 > does have a clue will need some more information. > > Anything I can do to help? > > Cheers, > Jon > --=20 Baroula que barouleras, au ti=C3=A9u toujou t'entourneras. ~~Yves