<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>4560</bug_id>
          
          <creation_ts>2007-05-16 09:50:39 +0000</creation_ts>
          <short_desc>[build] package html.parser does not exist</short_desc>
          <delta_ts>2008-02-29 15:05:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>Parser</component>
          <version>CSS Validator</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abe Timmerman">abeltje</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          <cc>abeltje</cc>
    
    <cc>catalin.hritcu</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15097</commentid>
    <comment_count>0</comment_count>
    <who name="Abe Timmerman">abeltje</who>
    <bug_when>2007-05-16 09:50:39 +0000</bug_when>
    <thetext>I&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15210</commentid>
    <comment_count>1</comment_count>
    <who name="Abe Timmerman">abeltje</who>
    <bug_when>2007-05-26 11:53:37 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16173</commentid>
    <comment_count>2</comment_count>
    <who name="Catalin Hritcu">catalin.hritcu</who>
    <bug_when>2007-08-17 06:00:06 +0000</bug_when>
    <thetext>Abe, I don&apos;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&apos;t load catalog.xml
  no protocol: &quot;jar:file:/Users/hritcu/JavaApps/css-validator/css-validator.jar!/org/w3c/css/util/xml/catalog.xml&quot;
Aug 17, 2007 8:55:49 AM org.apache.velocity.runtime.log.JdkLogChute log
INFO: FileResourceLoader : adding path &apos;file:/Users/hritcu/JavaApps/css-validator/css-validator.jar!/org/w3c/css/css/&apos;
Aug 17, 2007 8:55:49 AM org.apache.velocity.runtime.log.JdkLogChute log
SEVERE: ResourceManager : unable to find resource &apos;text.properties&apos; in any resource loader.
Unable to find resource &apos;text.properties&apos;
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource &apos;text.properties&apos;
        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.&lt;init&gt;(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)
&lt;!DOCTYPE html PUBLIC &apos;-//W3C//DTD XHTML 1.0 Strict//EN&apos;
                      &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html lang=&apos;en&apos; xml:lang=&apos;en&apos; xmlns=&apos;http://www.w3.org/1999/xhtml&apos;&gt;
  &lt;head&gt;
    &lt;meta name=&quot;ROBOTS&quot; content=&quot;NOINDEX, NOFOLLOW&quot; /&gt;
    &lt;title&gt;CSS Validator : Error&lt;/title&gt;
    &lt;link type=&quot;text/css&quot; rel=&apos;stylesheet&apos; href=&apos;http://jigsaw.w3.org/css-validator/style/error.css&apos; /&gt;
  &lt;/head&gt;

  &lt;body&gt;
    &lt;div&gt;
      &lt;a href=&quot;http://www.w3.org/&quot;&gt;&lt;img src=&quot;http://www.w3.org/Icons/w3c_home&quot; alt=&quot;w3c&quot; /&gt;&lt;/a&gt;
    &lt;/div&gt;
    &lt;hr /&gt;
    &lt;div class=&quot;t1&quot;&gt;CSS&lt;/div&gt;
    &lt;div class=&quot;t2&quot;&gt;Validator&lt;/div&gt;
    &lt;div class=&quot;t3&quot;&gt;Error&lt;/div&gt;
      
&lt;h2&gt;Target: http://www.w3.org/&lt;/h2&gt;
&lt;div class=&quot;error&quot;&gt;
&lt;p&gt;Oups! Internal error!&lt;/p&gt;&lt;p&gt;
&lt;/p&gt;&lt;/div&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;img src=&apos;images/mwcss.gif&apos; alt=&apos;made with CSS&apos; /&gt;&lt;/p&gt;
&lt;address&gt;&lt;a href=&apos;Email.html&apos;&gt;www-validator-css&lt;/a&gt;&lt;/address&gt;
&lt;/body&gt;&lt;/html&gt;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19233</commentid>
    <comment_count>3</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2008-02-29 15:05:06 +0000</bug_when>
    <thetext>build.xml is amended to remove the unnecessary pathes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>