Re: Exceptions running ant war from latest source

2014-10-28 17:40 GMT+01:00 Yves Lafon <ylafon@w3.org>:

>
>
>> 2) But even if I fix that, "ant war" complains with this:
>>
>> ##############
>>
>
>     [javac] /home/user/build/2002/css-validator/build.xml:91: warning:
>> 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
>> set
>> to false for repeatable builds
>>    [javac] Compiling 1144 source files to
>> /home/user/build/2002/css-validator/build
>>    [javac] javac: invalid target release: 1.7
>>    [javac] Usage: javac <options> <source files>
>>    [javac] use -help for a list of possible options
>>
>
> This usually means that you are building it with a jdk6 or lower. As the
> diamond operator is used, you need to use jdk7 or higher for this.
> Thanks,
>
>
Thanks Yves, I've installed the "openjdk-7-jdk" package instead of
"default-jdk", and now I'm able to run "ant war" successfully following the
guide at https://github.com/tlvince/w3c-css-validator-guide

But now I get this error when I try to validate any site:

######################
HTTP Status 500 -
------------------------------

*type* Exception report

*message*

*description* *The server encountered an internal error () that prevented
it from fulfilling this request.*

*exception*

javax.servlet.ServletException: Servlet execution threw an exception

*root cause*

java.lang.NoClassDefFoundError: Could not initialize class
org.w3c.css.css.StyleSheetGenerator
 org.w3c.css.css.StyleReportFactory.getStyleReport(StyleReportFactory.java:18)
 org.w3c.css.servlet.CssValidator.handleRequest(CssValidator.java:730)
 org.w3c.css.servlet.CssValidator.doGet(CssValidator.java:371)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

*note* *The full stack trace of the root cause is available in the Apache
Tomcat/7.0.26 logs.*
######################

Received on Thursday, 30 October 2014 09:28:06 UTC