Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Issue enabling New Relic Browser - "Copy/Paste Javascript Code"


#1

Hi,
When i try to enable new relic browswer , i get the below exception.
[Servlet Error]-[Faces Servlet]: javax.faces.view.facelets.FaceletException: Error Parsing /WEB-INF/view/
Error Traced[line: 165] Element type “n.length” must be followed by either attribute specifications, “>” or “/>”.
at org.apache.myfaces.view.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:743)
at org.apache.myfaces.view.facelets.compiler.Compiler.compile(Compiler.java:128)

I am not even able to log into the app. as i pasted JS code in a common xhtml which will be used by all the screens in my application.
I


#2

It sounds like you might want to add a CDATA tag around the Browser snippet to escape the script tag. The JavaScript snippet won’t pass XML validation, but you can flag it as character data to avoid evaluating it as XML.