[imps] validator front end not talking to servlet

Rancid Iodine rancid.iodine at gmail.com
Wed Apr 18 06:03:27 PDT 2012


OK that sounds good. I always thought the 2 went hand in hand i.e. any
legacy w3c markup validator from v1.2 upwards (which I perceived as "the
front end"), and the valdiator.nu servlet, but if we can do away with the
legacy validator in view of duplication of functionality, all the better.

At this point then, I have stopped the apache which hosted the legacy
markup validator, and fired up the servlet on port 80 like so:

python build/build.py --port=80 --local run &

We can see it's listening:

[root at vp-w3c-validator12 tmp]# netstat -ltunp | grep 80
tcp        0      0 :::80                       :::*
LISTEN      4402/java

Even so, I am encountering the same problem as before: although it's
possible to telnet to port 80 on this host from wherever (btw I run the
servlet on port 80 as it's the "generally open" port in our network), it's
still not possible to browse port 80 on this host, not even from the local
machine using any command line browser like lynx, links or w3m.

As I now get a never-ending "HTTP request sent, awaiting response... ", the
next thing would be to try and diagnose the problem using tcpdump.

Can you think of any obvious reason the servlet would not reply to the http
request?

In case anyone can spot anything, this is how it's going down:

[root at vp-w3c-validator12 checker]# python build/build.py --port=80 --local
run &
[1] 4436

[root at vp-w3c-validator12 checker]# java -XX:-DontCompileHugeMethods
-Xms131072k -Xmx131072k -XX:ThreadStackSize=2048 -classpath
./dependencies/commons-codec-1.4/commons-codec-1.4.jar:./dependencies/commons-httpclient-3.1/commons-httpclient-3.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-1.1.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-adapters-1.1.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-api-1.1.1.jar:./dependencies/icu4j-charsets-4_4_2.jar:./dependencies/icu4j-4_4_2.jar:./dependencies/iri-0.5/lib/iri.jar:./dependencies/jetty-6.1.26/lib/servlet-api-2.5-20081211.jar:./dependencies/jetty-6.1.26/lib/jetty-6.1.26.jar:./dependencies/jetty-6.1.26/lib/jetty-util-6.1.26.jar:./dependencies/jetty-6.1.26/lib/ext/jetty-ajp-6.1.26.jar:./dependencies/apache-log4j-1.2.15/log4j-1.2.15.jar:./dependencies/rhino1_7R1/js.jar:./dependencies/xerces-2_9_1/xercesImpl.jar:./dependencies/xerces-2_9_1/xml-apis.jar:./dependencies/slf4j-1.5.2/slf4j-log4j12-1.5.2.jar:./dependencies/commons-fileupload-1.2.1/lib/commons-fileupload-1.2.1.jar:./dependencies/isorelax.jar:./dependencies/mozilla/intl/chardet/java/dist/lib/chardet.jar:./dependencies/saxon9.jar:./jars/non-schema.jar:./jars/io-xml-util.jar:./jars/htmlparser.jar:./jars/hs-aelfred2.jar:./jars/html5-datatypes.jar:./jars/validator.jar:jing-trang/build/jing.jar
-Dnu.validator.servlet.log4j-properties=validator/log4j.properties
-Dnu.validator.servlet.version=3
-Dnu.validator.servlet.service-name=Validator.nu
-Dorg.whattf.datatype.lang-registry=file:local-entities/
www.iana.org/assignments/language-subtag-registry-Dorg.whattf.datatype.charset-registry=file:local-entities/
www.iana.org/assignments/character-sets -Dorg.whattf.datatype.warn=true
-Dnu.validator.servlet.about-page=http://about.validator.nu/-Dnu.validator.servlet.style-sheet=style.css
-Dnu.validator.servlet.icon=icon.png
-Dnu.validator.servlet.script=script.js
-Dnu.validator.spec.microsyntax-descriptions=file:local-entities/
wiki.whatwg.org/wiki/MicrosyntaxDescriptions-Dnu.validator.spec.alt-advice=file:local-entities/
wiki.whatwg.org/wiki/Validator.nu_alt_advice-Dnu.validator.spec.html5-load=file:validator/spec/html5.html
-Dnu.validator.spec.html5-link=
http://www.whatwg.org/specs/web-apps/current-work/-Dnu.validator.servlet.max-file-size=7340032
-Dnu.validator.servlet.connection-timeout=5000
-Dnu.validator.servlet.socket-timeout=5000
-Dnu.validator.servlet.use-local-copies=1
-Dnu.validator.servlet.w3cbranding=0
-Dorg.mortbay.http.HttpRequest.maxFormContentSize=7340032
-Dnu.validator.servlet.host.generic= -Dnu.validator.servlet.host.html5=
-Dnu.validator.servlet.host.parsetree=
-Dnu.validator.servlet.path.generic=/
-Dnu.validator.servlet.path.html5=/html5/
-Dnu.validator.servlet.path.parsetree=/parsetree/
-Dnu.validator.servlet.path.about=./validator/site/
nu.validator.servlet.Main 80
2012-04-18 13:57:43.723:INFO::Logging to STDERR via
org.mortbay.log.StdErrLog
nu.validator.servlet.VerifierServletTransaction - Starting static
initializer.
nu.validator.servlet.VerifierServletTransaction - Starting to loop over
config file lines.
nu.validator.servlet.VerifierServletTransaction - Finished reading config.
nu.validator.servlet.VerifierServletTransaction - Converted config to
arrays.
nu.validator.servlet.VerifierServletTransaction - Prepared namespace array.
nu.validator.servlet.VerifierServletTransaction - Parsed doctype numbers
into ints.
nu.validator.servlet.VerifierServletTransaction - The cache path prefix is:
null
nu.validator.servlet.VerifierServletTransaction - Parsing set up. Starting
to read schemas.
nu.validator.servlet.VerifierServletTransaction - Will load schema:
http://s.validator.nu/html5.rnc
nu.validator.servlet.VerifierServletTransaction - Will load schema:
http://s.validator.nu/html5-rdfalite.rnc
nu.validator.servlet.VerifierServletTransaction - Will load schema:
http://s.validator.nu/xhtml10/xhtml-strict.rnc
nu.validator.servlet.VerifierServletTransaction - Will load schema:
http://s.validator.nu/xhtml10/xhtml.sch
nu.validator.servlet.VerifierServletTransaction - Will load schema:
http://s.validator.nu/xhtml10/xhtml-transitional.rnc
nu.validator.servlet.VerifierServletTransaction - Will load schema:
http://s.validator.nu/xhtml10/xhtml-frameset.rnc
nu.validator.servlet.VerifierServletTransaction - Will load schema:
http://s.validator.nu/xhtml5.rnc
nu.validator.servlet.VerifierServletTransaction - Will load schema:
http://s.validator.nu/xhtml5-rdfalite.rnc
nu.validator.servlet.VerifierServletTransaction - Will load schema:
http://s.validator.nu/xhtml1-ruby-rdf-svg-mathml.rnc
nu.validator.servlet.VerifierServletTransaction - Will load schema:
http://s.validator.nu/svg-xhtml5-rdf-mathml.rnc
nu.validator.servlet.VerifierServletTransaction - Schemas read.
nu.validator.servlet.VerifierServletTransaction - Reading spec.
nu.validator.servlet.VerifierServletTransaction - Spec read.
nu.validator.servlet.VerifierServletTransaction - Initialization complete.
2012-04-18 13:57:52.147:INFO::jetty-6.1.26
2012-04-18 13:57:52.271:INFO::Started SocketConnector at 0.0.0.0:80

[1]+  Stopped                 python build/build.py --port=80 --local run
[root at vp-w3c-validator12 checker]# netstat -ltunp | grep 80
tcp        0      0 :::80                       :::*
LISTEN      4436/java
udp        0      0 0.0.0.0:806                 0.0.0.0:*
1054/rpc.statd

[root at vp-w3c-validator12 checker]# wget http://127.0.0.1
--2012-04-18 13:58:14--  http://127.0.0.1/
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... ^C

[root at vp-w3c-validator12 checker]# wget http://127.0.0.1/
--2012-04-18 13:58:19--  http://127.0.0.1/
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... ^C

[root at vp-w3c-validator12 checker]# wget http://127.0.0.1/html5/
--2012-04-18 13:58:33--  http://127.0.0.1/html5/
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... ^C

[root at vp-w3c-validator12 checker]# wget http://localhost/html5/
--2012-04-18 13:58:49--  http://localhost/html5/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... ^C

[root at vp-w3c-validator12 checker]# time wget http://localhost/html5/
--2012-04-18 13:59:01--  http://localhost/html5/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... ^C

real    0m4.440s
user    0m0.002s
sys     0m0.003s

Many thanks,

Andrei

On 18 April 2012 12:07, Michael[tm] Smith <mike at w3.org> wrote:

> Rancid Iodine <rancid.iodine at gmail.com>, 2012-04-17 17:57 +0100:
>
> > It's possible to telnet to this service on that port (or indeed whatever
> > other port xxx I make the servlet run on using "python build/build
> > --port=xxx --local run "),
>
> You should also be able to open http://localhost:8888 in your browser and
> you'll get the validator.nu UI.
>
> > but the markup validator "front end" seems to have a problem talking to
> > the servlet.
>
> Which front end? The front end is at http://localhost:8888
>
> > The problem is seen to be a "504 gateway timeout" according to the markup
> > validator, and shown thus:
> >
> > External Checker not available
> >
> > Checking the Document Type of this document requires the help of an
> > external tool which was either not enabled in this validator, or is
> > currently unavailable. Check in the validator's system configuration that
> > HTML5 Validator is enabled and functional.
> >
> > The error encountered was: 504 Gateway Time-out
>
> Ah. Those messages are not coming from the validator.nu backend.
>
> It seems like what you are doing is, you have an instance of the legacy W3C
> validator service installed (either through some package or from the
> sources at http://dvcs.w3.org/hg/markup-validator) and you are trying to
> get that to communicate with the separate validator.nu instance you've
> built and installed.
>
> If that's the case I can't help you, because I don't work on that code. The
> best places to get help are:
>
>  http://lists.w3.org/Archives/Public/www-validator/
>  http://lists.w3.org/Archives/Public/public-qa-dev/
>
> As far as I can see from what you've described, the validator.nu backend
> is
> working as expected. The problem is that your legacy W3C validator instance
> is not reaching it for some reason.
>
> FWIW, I'd recommend not running a legacy W3C validator instance at all.
> Just make the front end at http://localhost:8888 available. It's capable
> for checking HTML4 and XHTML1 documents, not just HTML5 docs. And it does a
> much better job of checking HTML4 and XHTML1 docs than the legacy W3C
> validator does.
>
>  --Mike
>
> --
> Michael[tm] Smith http://people.w3.org/mike
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/implementors-whatwg.org/attachments/20120418/dc6eab49/attachment-0003.htm>


More information about the Implementors mailing list