forwardToString results in cut-off response on Tomcat 8+

Description

[See discussion on mailing list "Problem with latest (3.0.1) dwrdemo.war"]

Starting from Tomcat 8.0 RC1 there seems to be a problem with DWR's DefaultWebContext.forwardToString() convenience method.
When used, it results in a cut-off response, f ex on the demo start page the call to Intro.getInsert() returns a cut/off string:

throw 'allowScriptTagRemoting is false.';
//#DWR-INSERT
//#DWR-REPLY
//#DWR-START#
(function(){
if(!window.dwr)return;
var dwr=window.dwr._[0];
dwr.engine.remote.handleCallback("0","0",["<!DOCTYPE html PUBLIC
\"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\"
\"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\">\n<html
xmlns=\"http:\

resulting in a "SyntaxError: unterminated string literal".

Status

Assignee

Mike Wilson

Reporter

Mike Wilson

Labels

None

Documentation Required

No

Components

Fix versions

Affects versions

3.0.1

Priority

Normal
Configure