Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] URI

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: luca <passani AT eunet.no>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] URI
  • Date: Mon, 05 Apr 2004 00:52:10 +0200

Hallo,

I have this line in my servlet:

String path = "file:///C:/Program Files/Apache Group/Tomcat
4.1/webapps/wurfl/WEB-INF/wurfl.xml";
ObjectsManager.getWurflInstance(path);

(which boils down to a
Builder parser = new Builder();
Document doc = parser.build(path);
)

which produces the error I report at the end. What am I doing wrong?
using d21........

thanks

luca

org.apache.jasper.JasperException: URIs cannot contain 0x20
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
:
root cause

nu.xom.MalformedURIException: URIs cannot contain 0x20
at nu.xom.Verifier.checkURI(Verifier.java:218)
at nu.xom.ParentNode.setActualBaseURI(ParentNode.java:396)
at nu.xom.Document.setBaseURI(Document.java:304)
at nu.xom.XOMHandler.startDocument(XOMHandler.java:88)
at
org.apache.xerces.parsers.AbstractSAXParser.startDocument(AbstractSAXParser.java:279)
at
org.apache.xerces.impl.XMLNamespaceBinder.startDocument(XMLNamespaceBinder.java:445)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(XMLDTDValidator.java:616)
at
org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(XMLDocumentScannerImpl.java:431)
at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:889)
at
org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager.java:753)
at
org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScannerImpl.java:260)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:499)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
at nu.xom.Builder.build(Builder.java:645)
at nu.xom.Builder.build(Builder.java:411)





Archive powered by MHonArc 2.6.24.

Top of Page