Re: Exceptions running ant war from latest source
Jaime Iniesta <[email protected]> Thu, 30 Oct 2014 10:27:17 +0100
| Newsgroups | gmane.org.w3c.validator.css |
|---|---|
| Message-ID | <CAKFFWV_73ciDrCc=4JNX-BXpi5xTFS9LURag-62ktrBKP3Whfg@mail.gmail.com> |
--f46d043c815ec545ff0506a07d67 Content-Type: text/plain; charset=UTF-8 2014-10-28 17:40 GMT+01:00 Yves Lafon <[email protected]>: > > >> 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.* ###################### --f46d043c815ec545ff0506a07d67 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div><div><span style=3D"font-f= amily:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(10= 2,102,102)"><br></span><div></div></div></div> <br><div class=3D"gmail_quote">2014-10-28 17:40 GMT+01:00 Yves Lafon <span = dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">ylafon@w= 3.org</a>></span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:= 0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);= border-left-style:solid;padding-left:1ex"><span class=3D""><br> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-= left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p= adding-left:1ex"> <br> 2) But even if I fix that, "ant war" complains with this:<br> <br> ##############<br> </blockquote> <br> </span><span class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0= px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);b= order-left-style:solid;padding-left:1ex"> =C2=A0 =C2=A0[javac] /home/user/build/2002/css-<u></u>validator/build.xml:9= 1: warning:<br> 'includeantruntime' was not set, defaulting to build.sysclasspath= =3Dlast; set<br> to false for repeatable builds<br> =C2=A0 =C2=A0[javac] Compiling 1144 source files to<br> /home/user/build/2002/css-<u></u>validator/build<br> =C2=A0 =C2=A0[javac] javac: invalid target release: 1.7<br> =C2=A0 =C2=A0[javac] Usage: javac <options> <source files><br> =C2=A0 =C2=A0[javac] use -help for a list of possible options<br> </blockquote> <br></span> This usually means that you are building it with a jdk6 or lower. As the di= amond operator is used, you need to use jdk7 or higher for this.<br> Thanks,<span class=3D""><font color=3D"#888888"><br> <br></font></span></blockquote><div><br></div>Thanks Yves, I've install= ed the "openjdk-7-jdk" package instead of "default-jdk"= , and now I'm able to run "ant war" successfully following th= e guide at <a href=3D"https://github.com/tlvince/w3c-css-validator-guide">h= ttps://github.com/tlvince/w3c-css-validator-guide</a> <div><br></div><div>B= ut now I get this error when I try to validate any site:</div><div><br></di= v><div>######################</div><div><h1 style=3D"font-family:Tahoma,Ari= al,sans-serif;color:white;font-size:22px;background-color:rgb(82,93,118)">H= TTP Status 500 -</h1><hr size=3D"1" noshade style=3D"color:rgb(82,93,118);f= ont-family:Tahoma,Arial,sans-serif;font-size:medium"><p style=3D"font-famil= y:Tahoma,Arial,sans-serif;color:rgb(0,0,0);font-size:12px;background-image:= initial;background-repeat:initial"><b style=3D"color:white;background-color= :rgb(82,93,118)">type</b>=C2=A0Exception report</p><p style=3D"font-family:= Tahoma,Arial,sans-serif;color:rgb(0,0,0);font-size:12px;background-image:in= itial;background-repeat:initial"><b style=3D"color:white;background-color:r= gb(82,93,118)">message</b><u></u></p><p style=3D"font-family:Tahoma,Arial,s= ans-serif;color:rgb(0,0,0);font-size:12px;background-image:initial;backgrou= nd-repeat:initial"><b style=3D"color:white;background-color:rgb(82,93,118)"= >description</b>=C2=A0<u>The server encountered an internal error () that p= revented it from fulfilling this request.</u></p><p style=3D"font-family:Ta= homa,Arial,sans-serif;color:rgb(0,0,0);font-size:12px;background-image:init= ial;background-repeat:initial"><b style=3D"color:white;background-color:rgb= (82,93,118)">exception</b></p><pre style=3D"color:rgb(0,0,0)">javax.servlet= .ServletException: Servlet execution threw an exception </pre><p style=3D"font-family:Tahoma,Arial,sans-serif;color:rgb(0,0,0);font= -size:12px;background-image:initial;background-repeat:initial"></p><p style= =3D"font-family:Tahoma,Arial,sans-serif;color:rgb(0,0,0);font-size:12px;bac= kground-image:initial;background-repeat:initial"><b style=3D"color:white;ba= ckground-color:rgb(82,93,118)">root cause</b></p><pre style=3D"color:rgb(0,= 0,0)">java.lang.NoClassDefFoundError: Could not initialize class org.w3c.cs= s.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) </pre><p style=3D"font-family:Tahoma,Arial,sans-serif;color:rgb(0,0,0);font= -size:12px;background-image:initial;background-repeat:initial"></p><p style= =3D"font-family:Tahoma,Arial,sans-serif;color:rgb(0,0,0);font-size:12px;bac= kground-image:initial;background-repeat:initial"><b style=3D"color:white;ba= ckground-color:rgb(82,93,118)">note</b>=C2=A0<u>The full stack trace of the= root cause is available in the Apache Tomcat/7.0.26 logs.</u></p></div><di= v>######################</div></div></div></div> --f46d043c815ec545ff0506a07d67--