Re: css-validator.jar build problem

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 UTC