Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSTL XML Taglib - org.xml.sax.SAXParseException: Premature end of file.

843838Aug 5 2006 — edited Aug 7 2006
I 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 4 2006
Added on Aug 5 2006
3 comments
884 views