It seems to work better if you use Rein's XML parser, i.e. add this to your resin.conf:


<system-property javax.xml.parsers.DocumentBuilderFactory="com.caucho.xml.parsers.XmlDocumentBuilderFactory" /> <system-property javax.xml.parsers.SAXParserFactory="com.caucho.xml.parsers.XmlSAXParserFactory" />

There is a bug that looks very similar to this: http://bugs.caucho.com/view.php?id=1647 that was marked as fixed in version 3.1.1 -- maybe it's not completely fixed after all?


- Erik -


Olaf Krische wrote:
Hello Erik,

thank you for your answer. And yes, you were right about the missing 'jsp' .
My heart started to bump. I have changed the example accordingly. Sadly, the
error will not disappear:

/indexXML.jsp:1: org.xml.sax.SAXParseException: The prefix "c" for element
"c:set" is not bound.

1:  <?xml version="1.0" encoding="UTF-8"?>
2:  <jsp:root xmlns="http://www.w3.org/1999/xhtml";
xmlns:jsp="http://java.sun.com/JSP/Page";
xmlns:c="http://java.sun.com/jsp/jstl/core"; version="2.1">
3:


Erik Forkalsrud wrote:
Olaf Krische wrote:
1. Download Resin 3.1 snapshot (resin-3.1.s080126)
2. Starting with "java -jar lib/resin.jar start"
3. http://localhost:8080/resin-doc/index.jsp

Works perfectly.

4. Now i add to resin-doc a new file "indexXML.jsp".
5. I add the standard.jar (1.0.6) to resin-doc/WEB-INF/lib/
6. Receiving now a SAXParseException, when calling
http://localhost:8080/resin-doc/indexXML.jsp
I think in resin 3.1.x you should use http://java.sun.com/jsp/jstl/core for the "c" JSTL tags. (note the extra "/jsp/")


The changed indexXML.jsp:

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns="http://www.w3.org/1999/xhtml";
xmlns:jsp="http://java.sun.com/JSP/Page";
xmlns:c="http://java.sun.com/jsp/jstl/core"; version="2.1">

<c:set var="locale">de_AT</c:set>
<c:out value="${locale}"/>

</jsp:root>

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to