Note that there are some explanatory texts on larger screens.

plurals
  1. POJSP compilation error upon changing XML parser to Xerces
    primarykey
    data
    text
    <p>All, I'm working on a java webapp that we deploy in the Resin web app server. I have been doing some XML parsing for a new part of the application, and realized that our app was using <a href="http://www.caucho.com/resin-3.0/xml/jaxp.xtps" rel="nofollow noreferrer">Resin classes</a> to do the parsing. I wanted to get away from that and use something more standard for a number of reasons, so I set these system properties in my resin config file (and added the xerces jar to my classpath):</p> <pre><code>&lt;system-property javax.xml.parsers.DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/&gt; &lt;system-property javax.xml.parsers.SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"/&gt; </code></pre> <p>And, now I'm getting JSP compilation errors on several pages (I guess Resin's built in parser was more lenient). The error reads:</p> <pre><code>org.xml.sax.SAXParseException: The value of attribute "title" associated with an element type "display:column" must not contain the '&lt;' character. </code></pre> <p>And, the 'display:column' tag on some pages does indeed contain markup in the 'title' attribute. Here's an example:</p> <pre><code>&lt;display:column scope='col' class=" appealColorBG selectAllWidth" title="&lt;span class='centerThis'&gt;&lt;label for='selectAll'&gt;Select All&lt;/label&gt;&lt;br /&gt; &lt;input type='checkbox' name='selectAll' id='selectAll' onClick='selectAllCheckboxes();'/&gt;&lt;/span&gt; " &gt; </code></pre> <p>That's some ugly JSP code, I know, but it's also code that's already in production, so I'm hesitant to change it. </p> <p>Does anyone know of a way that I can set xerces so that it will allow the JSP to compile as is?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload