Exception in thread "main" java.lang.NoClassDefFoundError

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Exception in thread "main" java.lang.NoClassDefFoundError

SancheZZS .
Hello!
I have an exception after test run css-validator

root@debian8:/var/lib/tomcat8/webapps/css-validator# java -jar
css-validator.jar http://www.w3.org/

{vextwarning=false, output=text, lang=en, warning=2, medium=all, profile=css3}
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
        at org.apache.commons.digester.Digester.<init>(Digester.java:319)
        at org.apache.velocity.tools.config.XmlFactoryConfiguration.read(XmlFactoryConfiguration.java:117)
        at org.apache.velocity.tools.config.FileFactoryConfiguration.read(FileFactoryConfiguration.java:140)
        at org.apache.velocity.tools.config.FileFactoryConfiguration.read(FileFactoryConfiguration.java:116)
        at org.apache.velocity.tools.config.FileFactoryConfiguration.read(FileFactoryConfiguration.java:91)
        at org.apache.velocity.tools.config.FileFactoryConfiguration.read(FileFactoryConfiguration.java:69)
        at org.apache.velocity.tools.config.FileFactoryConfiguration.read(FileFactoryConfiguration.java:59)
        at org.apache.velocity.tools.config.ConfigurationUtils.getDefaultTools(ConfigurationUtils.java:79)
        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.logging.LogFactory
        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)
        ... 16 more


Please suggest any solution.