W3C home > Mailing lists > Public > www-validator-css@w3.org > November 2008

Re: css-validator.jar build problem

From: Damien B <night.kame@gmail.com>
Date: Wed, 12 Nov 2008 16:21:52 +0100
Message-ID: <491AF490.2090603@gmail.com>
To: Andrei Doicin <Andrei.Doicin@redbeemedia.com>
CC: www-validator-css@w3.org

Andrei Doicin wrote:
> Hi Olivier,
> 
> Thanks for the idea. Far from silly, it results in significant progress. Using the exact path to each jar as you suggest, for the 5 prereq jars mentioned in the install doc, I reduce the number of build errors to 71, from 100.
> 
> If I throw velocity.jar into the mix as well (worth mentioning in the install doc maybe?), and use relative pathing from [VALIDATOR PATH] - like you're supposed to do for classpaths apparently, so the classpath is:
> 
> .:./WEB-INF/lib:./WEB-INF/lib/jigsaw.jar:./WEB-INF/lib/servlet-api.jar:./WEB-INF/lib/tagsoup-1.2.jar:./WEB-INF/lib/xercesImpl.jar:./WEB-INF/lib/xml-apis.jar:./WEB-INF/lib/velocity-1.5.jar
> 
> ....... this results in only 5 errors on the build, as pasted below. Not far to go now :).

FYI, in my environment, build.xml:
  <property name="servlet.lib" value="absolute/path/to/servlet-api.jar"/>

<pathid="build.class.path">
     <pathelementlocation="${servlet.lib}"/>
     <filesetdir="WEB-INF/lib">
         <includename="*.jar"/>
     </fileset>
</path>

And in WEB-INF/lib:
commons-beanutils-core.jar
commons-collections-3.1.jar
commons-lang-2.4.jar
jigsaw.jar
tagsoup-1.2.jar
velocity-1.5.jar
xercesImpl.jar
xml-apis.jar

I've sent a patch to remove the strict dependency on Xerces, but I don't 
know if it has been commited. I don't know if all the commons- are 
necessary, maybe I've added them for the patches I'm (lazily) working on.

Damien

>
>=======================================================================
>
>[root@io-dev23css-validator]#exportCLASSPATH=.:./WEB-INF/lib:./WEB-INF/lib/jigsaw.jar:./WEB-INF/lib/servlet-api.jar:./WEB-INF/lib/tagsoup-1.2.jar:./WEB-INF/lib/xercesImpl.jar:./WEB-INF/lib/xml-apis.jar:./WEB-INF/lib/velocity-1.5.jar
>[root@io-dev23css-validator]#ant
>Buildfile:build.xml
>
>build:
>[javac]Compiling824sourcefilesto/opt/tomcat/webapps/css-validator/build
>[javac]/opt/tomcat/webapps/css-validator/org/w3c/css/index/TranslationTableGenerator.java:21:packageorg.apache.commons.langdoesnotexist
>[javac]importorg.apache.commons.lang.StringEscapeUtils;
>[javac]^
>[javac]/opt/tomcat/webapps/css-validator/org/w3c/css/index/TranslationTableGenerator.java:113:cannotfindsymbol
>[javac]symbol:variableStringEscapeUtils
>[javac]location:classorg.w3c.css.index.TranslationTableGenerator
>[javac]translations_table=translations_table+"<p>"+StringEscapeUtils.escapeHtml(ac_default.getMsg().getString(property_name))+"</p></th>";
>[javac]^
>[javac]/opt/tomcat/webapps/css-validator/org/w3c/css/index/TranslationTableGenerator.java:124:cannotfindsymbol
>[javac]symbol:variableStringEscapeUtils
>[javac]location:classorg.w3c.css.index.TranslationTableGenerator
>[javac]translations_table=translations_table+"<tdclass=\"table_translation_missing\"><atitle=\"submitamissingtranslation\"href=\""+StringEscapeUtils.escapeHtml(mail_translation.toASCIIString())+"\">â</a></td>\n";
>[javac]^
>[javac]/opt/tomcat/webapps/css-validator/org/w3c/css/index/TranslationTableGenerator.java:127:cannotfindsymbol
>[javac]symbol:variableStringEscapeUtils
>[javac]location:classorg.w3c.css.index.TranslationTableGenerator
>[javac]translations_table=translations_table+"<tdclass=\"table_translation_missing\"><atitle=\"submitamissingtranslation\"href=\""+StringEscapeUtils.escapeHtml(mail_translation.toASCIIString())+"\">â</a></td>\n";
>[javac]^
>[javac]/opt/tomcat/webapps/css-validator/org/w3c/css/index/TranslationTableGenerator.java:130:cannotfindsymbol
>[javac]symbol:variableStringEscapeUtils
>[javac]location:classorg.w3c.css.index.TranslationTableGenerator
>[javac]translations_table=translations_table+"<tdclass=\"table_translation_ok\"><spantitle=\""+StringEscapeUtils.escapeHtml(property_translated)+"\">â</span></td>\n";
>[javac]^
>[javac]Note:SomeinputfilesuseoroverrideadeprecatedAPI.
>[javac]Note:Recompilewith-Xlint:deprecationfordetails.
>[javac]Note:Someinputfilesuseuncheckedorunsafeoperations.
>[javac]Note:Recompilewith-Xlint:uncheckedfordetails.
>[javac]5errors
>
>BUILDFAILED
>/opt/tomcat/webapps/css-validator/build.xml:37:Compilefailed;seethecompilererroroutputfordetails.
>
>Totaltime:4seconds
>
>-----OriginalMessage-----
>From:olivierThereaux[mailto:ot@w3.org]
>Sent:12November200813:43
>To:AndreiDoicin
>Cc:www-validator-css@w3.org
>Subject:Re:css-validator.jarbuildproblem
>
>HiAndrei,
>
>On12-Nov-08,at6:31AM,AndreiDoicinwrote:
>>IhaveanotherlittlesituationnowinstallingtheCSSvalidator.As
>>youwillseebelow,everythingappearstobeexactlyastheinstall
>>docsaysitshouldbei.e.therightenvvars,andprereqjars(the
>>latterofwhichareallbinarydownloadsbtw).
>>
>>Cananyonecommentonwhythisantbuildofthecss-validator.jar
>>failssobadly?DoImaybealsoneedsomethingcalledsax.jarand/or
>>jsdk.jarinWEB-INF/lib?Themachineinquestionisa64bitCentos
>>4.7btw.Ialsothrewavelocity.jarintotheprereqmix,this
>>didn'thelp.
>
>classpathstendtobeamysterytomenowandthentoo,soapologies
>inadvanceifmysuggestionissilly:haveyoutriedgivingtheexact
>pathtothevelocity(andindeed,jigsaw.jarfororg.w3c.http)inyour
>classpath?
>
>HTH,
Received on Wednesday, 12 November 2008 15:24:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:21 GMT