JSTL XML Taglib - org.xml.sax.SAXParseException: Premature end of file.
843838Aug 5 2006 — edited Aug 7 2006I am currently getting a SAXParseException when trying to use the JSTL XML taglib. I have an example from IBM primer working but when I try to use it on my own XML it doesn't work. I always get this:
org.jboss.logging.util.LoggerStream - [Fatal Error] :-1:-1: Premature end of file.
org.jboss.logging.util.LoggerStream - ApplicationDispatcher[]: Servlet.service() for servlet jsp threw exception
org.jboss.logging.util.LoggerStream - org.xml.sax.SAXParseException: Premature end of file.
org.jboss.logging.util.LoggerStream - at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
Also here is a snippet of my jsp code:
<%@ taglib prefix="c" uri="/WEB-INF/taglibs/c.tld" %>
<%@ taglib prefix="x" uri="/WEB-INF/taglibs/x.tld" %>
<c:import var="xml" url="/usr/local/mnt/config.xml"/>
<x:parse var="doc" xml="${xml}"/>
Thanks in advance.