Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] CDATA in web.xml?

Hello,

Is CDATA supposed to work in a web.xml?

Trying to do this:

        ...
        <init-param>
            <param-name>login.trailer</param-name>
            <param-value><![CDATA[
<a href="" Access</a>
]]</param-value>
        </init-param>
        ...

Results in an exception:

org.xml.sax.SAXParseException; lineNumber: 54; columnNumber: 12; XML document structures must start and end within the same entity.
    at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
    at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178)

using Jetty 11.

If I comment out the init-param block, the webapp otherwise loads and runs.

Mike

--
Michael B Allen
Java AD DS Integration
https://www.ioplex.com/

Back to the top