This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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.
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.
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>
build.xml is amended to remove the unnecessary pathes.