Tagged: codelive tomcat jsp jspx
- This topic has 0 replies, 1 voice, and was last updated 7 years, 4 months ago by jmaberle.
-
AuthorPosts
-
jmaberleParticipantIt is my first post in this forum, sorry for my bad english
– Codelive engine inject this javascript to the jsp before the body
<script>”undefined”==typeof CODE_LIVE&&(!function(e){var t={nonSecure:”51197″,secure:”51202″},c={nonSecure:”http://”,secure:”https://”},r={nonSecure:”127.0.0.1″,secure:”gapdebug.local.genuitec.com”},n=”https:”===window.location.protocol?”secure”:”nonSecure”;script=e.createElement(“script”),script.type=”text/javascript”,script.async=!0,script.src=c[n]+r[n]+”:”+t[n]+”/codelive-assets/bundle.js”,e.getElementsByTagName(“head”)[0].appendChild(script)}(document),CODE_LIVE=!0);</script></head>
– I advise to enclose the injected javascript by <![CDATA[…]]> to avoid the jsp compiler to parse
– the jsp compiler throws this exception
org.xml.sax.SAXParseException; systemId: file:/D:/apache-tomcat-8.5.11/wtpwebapps/cbp-workbench/WEB-INF/views/http_header.jspx; lineNumber: 51; columnNumber: 39; Le nom de l’identité doit immédiatement suivre le caractère “&” dans la référence d’entité.
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(Unknown Source)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:192) -
AuthorPosts