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

RE: css-validator.jar build problem

From: Andrei Doicin <Andrei.Doicin@redbeemedia.com>
Date: Wed, 12 Nov 2008 15:11:42 -0000
Message-ID: <E2900B612AA36C4D9C6005C0CBAB481E03E82816@RBMXCU1015.redbeemedia.net>
To: "olivier Thereaux" <ot@w3.org>
Cc: <www-validator-css@w3.org>

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 :).

=======================================================================

[root@io-dev23 css-validator]# export CLASSPATH=.:./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-dev23 css-validator]# ant
Buildfile: build.xml

build:
    [javac] Compiling 824 source files to /opt/tomcat/webapps/css-validator/build
    [javac] /opt/tomcat/webapps/css-validator/org/w3c/css/index/TranslationTableGenerator.java:21: package org.apache.commons.lang does not exist
    [javac] import org.apache.commons.lang.StringEscapeUtils;
    [javac]                               ^
    [javac] /opt/tomcat/webapps/css-validator/org/w3c/css/index/TranslationTableGenerator.java:113: cannot find symbol
    [javac] symbol  : variable StringEscapeUtils
    [javac] location: class org.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: cannot find symbol
    [javac] symbol  : variable StringEscapeUtils
    [javac] location: class org.w3c.css.index.TranslationTableGenerator
    [javac]                                         translations_table = translations_table + "<td class=\"table_translation_missing\"><a title=\"submit a missing translation\" href=\""+StringEscapeUtils.escapeHtml(mail_translation.toASCIIString())+"\">â</a></td>\n";
    [javac]                                                                                                                                                                               ^
    [javac] /opt/tomcat/webapps/css-validator/org/w3c/css/index/TranslationTableGenerator.java:127: cannot find symbol
    [javac] symbol  : variable StringEscapeUtils
    [javac] location: class org.w3c.css.index.TranslationTableGenerator
    [javac]                                         translations_table = translations_table + "<td class=\"table_translation_missing\"><a title=\"submit a missing translation\" href=\""+StringEscapeUtils.escapeHtml(mail_translation.toASCIIString())+"\">â</a></td>\n";
    [javac]                                                                                                                                                                               ^
    [javac] /opt/tomcat/webapps/css-validator/org/w3c/css/index/TranslationTableGenerator.java:130: cannot find symbol
    [javac] symbol  : variable StringEscapeUtils
    [javac] location: class org.w3c.css.index.TranslationTableGenerator
    [javac]                                     translations_table = translations_table + "<td class=\"table_translation_ok\"><span title=\""+StringEscapeUtils.escapeHtml(property_translated)+"\">â</span></td>\n";
    [javac]                                                                                                                                   ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 5 errors

BUILD FAILED
/opt/tomcat/webapps/css-validator/build.xml:37: Compile failed; see the compiler error output for details.

Total time: 4 seconds

-----Original Message-----
From: olivier Thereaux [mailto:ot@w3.org] 
Sent: 12 November 2008 13:43
To: Andrei Doicin
Cc: www-validator-css@w3.org
Subject: Re: css-validator.jar build problem

Hi Andrei,

On 12-Nov-08, at 6:31 AM, Andrei Doicin wrote:
> I have another little situation now installing the CSS validator. As  
> you will see below, everything appears to be exactly as the install  
> doc says it should be i.e. the right env vars, and prereq jars (the  
> latter of which are all binary downloads btw).
>
> Can anyone comment on why this ant build of the css-validator.jar  
> fails so badly? Do I maybe also need something called sax.jar and/or  
> jsdk.jar in WEB-INF/lib? The machine in question is a 64 bit Centos  
> 4.7 btw. I also threw a velocity.jar into the prereq mix, this  
> didn't help.

classpaths tend to be a mystery to me now and then too, so apologies  
in advance if my suggestion is silly: have you tried giving the exact  
path to the velocity (and indeed, jigsaw.jar for org.w3c.http) in your  
classpath?

HTH,
-- 
olivier


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

______________________________________________________________________
This email may contain confidential information. If you receive it in error please immediately advise the sender and delete it from your system without copying, distributing or taking any action in reliance upon it. Red Bee Media Limited has taken precautions in respect of its email communications to preserve confidentiality and to ensure that any attachment has been checked for viruses. However, we cannot accept liability for any damage sustained as a result of interceptions and software viruses and you should take your own precautions before responding to us by email and carry out your own virus checks before opening any attachment.

Red Bee Media Limited 
Registered No: 04257461 England 
Registered Office: BC2 A1 Broadcast Centre, 201 Wood Lane, London W12 7TP

____________________________________________________________________
Received on Wednesday, 12 November 2008 15:12:23 GMT

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