- From: Dominique Hazael-Massieux <dom@w3.org>
- Date: Mon, 21 Jan 2008 11:27:55 +0100
- To: Sean Owen <srowen@google.com>
- Cc: public-mobileok-checker <public-mobileok-checker@w3.org>
Le dimanche 20 janvier 2008 à 14:54 -0500, Sean Owen a écrit : > Yes, more changes were need to make sure DTDs resolve not from the > local filesystem, but from the classpath, where appropriate. It appear > to work correctly for me now. It doesn't for me... Both from a local build and from the checked-in deploy.jar, I get a FileNotFound exception when I run the jar from elsewhere than the build directory: java -jar mobileok-ref/mobileOK-Basic-RI-1.0-deploy.jar -m wml.moki -r wml.results http://www.w3.org/2005/MWI/Tests/ Info: Writing MOKI document to wml.moki Info: Writing result document to wml.results Exception in thread "main" org.w3c.mwi.mobileok.basic.TestException: java.io.FileNotFoundException: /home/dom/dev.w3.org/2007/dtd/www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd (No such file or directory) at org.w3c.mwi.mobileok.basic.HTTPXHTMLResource.validateMarkup(HTTPXHTMLResource.java:559) at org.w3c.mwi.mobileok.basic.HTTPXHTMLResource.<init>(HTTPXHTMLResource.java:98) at org.w3c.mwi.mobileok.basic.Preprocessor.preprocess(Preprocessor.java:30) at org.w3c.mwi.mobileok.basic.Tester.getPreprocessorResults(Tester.java:79) at org.w3c.mwi.mobileok.basic.Tester.main(Tester.java:191) Caused by: java.io.FileNotFoundException: /home/dom/dev.w3.org/2007/dtd/www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at java.io.FileInputStream.<init>(FileInputStream.java:66) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:653) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1316) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1283) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1168) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1068) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:988) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.w3c.mwi.mobileok.basic.HTTPXHTMLResource.validateMarkup(HTTPXHTMLResource.java:548) ... 4 more HTH, Dom
Received on Monday, 21 January 2008 10:28:37 UTC