This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4560 - [build] package html.parser does not exist
Summary: [build] package html.parser does not exist
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Parser (show other bugs)
Version: CSS Validator
Hardware: Other Linux
: P2 critical
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-16 09:50 UTC by Abe Timmerman
Modified: 2008-02-29 15:05 UTC (History)
2 users (show)

See Also:


Attachments

Description Abe Timmerman 2007-05-16 09:50:39 UTC
I'm trying to build the css-validator classes on an Ubutu (edgy) box with the sun 1.5 jdk (packaged for ubuntu) and get a number of compile errors:

    [javac] /home/abeltje/develop/w3c-css/css-validator/html/tags/BaseTag.java:17: package html.parser does not exist
    [javac] import html.parser.*;
    [javac] ^
    [javac] /home/abeltje/develop/w3c-css/css-validator/html/tags/Flow.java:7: package html.tree does not exist
    [javac] import html.tree.*;
    [javac] ^
    [javac] /home/abeltje/develop/w3c-css/css-validator/html/tags/HtmlTree.java:8: package html.parser does not exist
    [javac] import html.parser.Attributes;
    [javac]                    ^

... lots more follow.

    ~$ PATH=/usr/lib/jvm/java-1.5.0-sun/bin:$PATH javac -version
    javac 1.5.0_08

The weird thing is, that is works on OS X (10.4) with:
    ~$ javac -version
    javac 1.5.0_07

Installing the OS X compiled classes on the Linux box sort of works, except for the case where one sends the uri of a html-page, then I get:
    Servlet has thrown exception:javax.servlet.ServletException: Timed out

HTH,
-- Abe.
Comment 1 Abe Timmerman 2007-05-26 11:53:37 UTC
Hi,

Looking through the repository, I can see that all *.java files in html/tags/ have been removed, but they still seem to be checked out.

Removing these files before building, resolves the issue.

HTH,
-- Abe.
Comment 2 Catalin Hritcu 2007-08-17 06:00:06 UTC
Abe, I don't think this is a fix. While this allows you to compile and get a jar file out, when running you will get the following exception:

org.w3c.css.css.XMLStyleSheetHandler: couldn't load catalog.xml
  no protocol: "jar:file:/Users/hritcu/JavaApps/css-validator/css-validator.jar!/org/w3c/css/util/xml/catalog.xml"
Aug 17, 2007 8:55:49 AM org.apache.velocity.runtime.log.JdkLogChute log
INFO: FileResourceLoader : adding path 'file:/Users/hritcu/JavaApps/css-validator/css-validator.jar!/org/w3c/css/css/'
Aug 17, 2007 8:55:49 AM org.apache.velocity.runtime.log.JdkLogChute log
SEVERE: ResourceManager : unable to find resource 'text.properties' in any resource loader.
Unable to find resource 'text.properties'
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'text.properties'
        at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:452)
        at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:335)
        at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
        at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1077)
        at org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.java:303)
        at org.apache.velocity.app.Velocity.getTemplate(Velocity.java:503)
        at org.w3c.css.css.StyleSheetGenerator.<init>(StyleSheetGenerator.java:164)
        at org.w3c.css.css.StyleReportFactory.getStyleReport(StyleReportFactory.java:19)
        at org.w3c.css.css.CssValidator.handleRequest(CssValidator.java:176)
        at org.w3c.css.css.CssValidator.main(CssValidator.java:149)
java.lang.NullPointerException
        at org.w3c.css.css.StyleSheetGenerator.print(StyleSheetGenerator.java:421)
        at org.w3c.css.css.CssValidator.handleRequest(CssValidator.java:185)
        at org.w3c.css.css.CssValidator.main(CssValidator.java:149)
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
  <head>
    <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
    <title>CSS Validator : Error</title>
    <link type="text/css" rel='stylesheet' href='http://jigsaw.w3.org/css-validator/style/error.css' />
  </head>

  <body>
    <div>
      <a href="http://www.w3.org/"><img src="http://www.w3.org/Icons/w3c_home" alt="w3c" /></a>
    </div>
    <hr />
    <div class="t1">CSS</div>
    <div class="t2">Validator</div>
    <div class="t3">Error</div>
      
<h2>Target: http://www.w3.org/</h2>
<div class="error">
<p>Oups! Internal error!</p><p>
</p></div>
<hr />
<p><img src='images/mwcss.gif' alt='made with CSS' /></p>
<address><a href='Email.html'>www-validator-css</a></address>
</body></html>
Comment 3 Yves Lafon 2008-02-29 15:05:06 UTC
build.xml is amended to remove the unnecessary pathes.