W3C home > Mailing lists > Public > www-validator-css@w3.org > January 2007

Local Install Problem

From: Shem Page <Shem.Page@redvespa.com>
Date: Wed, 17 Jan 2007 14:11:31 +1300
Message-ID: <4939C09F30588E458C1886C11A78FD3107C800@redsbs.RedVespa.local>
To: <www-validator-css@w3.org>
I hope somebody can please point out what I have done wrong because I'm
completely stumped.
 
I have recently been trying to get many of the w3.org services running
on a local machine so we can validate websites while they are still in
development. For this purpose I have made a clean install of ubuntu 6.10
server, with supporting software such as apache, tomcat etc.
 
I'm having troubles with the css-validator install.
I've installed tomcat 5.5 and their servlet examples work fine. 
If I simply use the supplied css-validator.jar package from the download
page can copy things to the webapps dir of tomcat, executing a check
from css-validator/validator.html simply spits back #!/usr/local/bin/zsh
-f umask 002 PACKAGE=org.w3c.css.css

# CLASSPATH=/u/crash/0/w3c/plehegar/www430/validator.zip
CLASSPATH=~/www430:.
export CLASSPATH

# PATH=/u/koala/2/koala/plehegar/JFC/jdk1.2/bin:$PATH
java
-Djava.protocol.handler.pkgs="org.w3c.www.protocol|sun.net.www.protocol"
$PACKAGE.StyleSheetCom $@
 
IF I try the complete build process as described by
http://jigsaw.w3.org/css-validator/DOWNLOAD.html my build fails with
many warnings and a few errors which I'll add below.

If you can help me get the validator working please offer some advice. 

Output from CLASSPATH=.:./WEB-INF/lib:$CLASSPATH ant
======================================================
Buildfile: build.xml
build:
    [javac] Compiling 871 source files to
/var/lib/tomcat5.5/webapps/css-validator/build
    [javac] ----------
    [javac] 1. WARNING in
/var/lib/tomcat5.5/webapps/css-validator/org/w3c/css/css/CssParser.java
(at line 10)
    [javac]  import java.io.IOException;
    [javac]         ^^^^^^^^^^^^^^^^^^^
    [javac] The import java.io.IOException is never used
    [javac] ----------
    [javac] ----------
    [javac] 2. WARNING in
/var/lib/tomcat5.5/webapps/css-validator/org/w3c/css/css/CssRuleList.jav
a (at line 26)
    [javac]  String pseudopage = new String();
    [javac]         ^^^^^^^^^^
    [javac] The local variable pseudopage is never read
    [javac] ----------
    [javac] ----------
    [javac] 3. WARNING in
/var/lib/tomcat5.5/webapps/css-validator/org/w3c/css/css/CssStyleRule.ja
va (at line 108)
    [javac]  private boolean important;
    [javac]                  ^^^^^^^^^
    [javac] The field CssStyleRule.important is never read locally
    [javac] ----------
    [javac] ----------
    [javac] 4. ERROR in
/var/lib/tomcat5.5/webapps/css-validator/org/w3c/css/css/CssValidator.ja
va (at line 28)
    [javac]  import org.w3c.tools.resources.ProtocolException;
    [javac]         ^^^^^^^^^^^^^
    [javac] The import org.w3c.tools cannot be resolved
    [javac] ----------
    [javac] 5. ERROR in
/var/lib/tomcat5.5/webapps/css-validator/org/w3c/css/css/CssValidator.ja
va (at line 153)
    [javac]  } catch (ProtocolException pex) {
    [javac]           ^^^^^^^^^^^^^^^^^
    [javac] ProtocolException cannot be resolved to a type
    [javac] ----------
    [javac] 6. ERROR in
/var/lib/tomcat5.5/webapps/css-validator/org/w3c/css/css/CssValidator.ja
va (at line 155)
    [javac]  pex.printStackTrace();
    [javac]  ^^^
    [javac] pex cannot be resolved
...... continued in attached file
 
Thanks for any help you can offer
Shem
 



Received on Wednesday, 17 January 2007 15:23:59 GMT

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