title: Jasperreports: HTML component with external JavaScript File - HTML Export fails on Server (but not in Ireport)
body: <p>I wanted to chart data with the Google Chart API and display the result in Jasperserver Pro 5.2. I created a HTML-Componente containing the the full HTML code inclusive the 
  <code>&lt;script type='text/javascript' src='https://www.google.com/jsapi'&gt;</code> tag.
  The HTML Export works fine in iReport, but the HTML Component remains empty when called  on jasperserver. There is no error message.
  (btw: when called from iOS 7.0.1 (jaspersoft app) with my iphone the page is displayed correctly.)  I tried with different browsers, but always the same thing.</p>
  
  <p>Can anyone help?</p>
  
  <p>Please find attached the JRXML</p>
  
  <p>This is the JRXML code:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="HtmlComponentReport" pageWidth="595" pageHeight="842" columnWidth="515" leftMargin="40" rightMargin="40" topMargin="50" bottomMargin="50" uuid="b4ad5fd2-ee36-4fc4-a326-5600945b4633"&gt;
  &lt;property name="ireport.zoom" value="1.0"/&gt;
  &lt;property name="ireport.x" value="0"/&gt;
  &lt;property name="ireport.y" value="0"/&gt;
  &lt;parameter name="JRProjectID" class="java.lang.Integer"&gt;
  &lt;defaultValueExpression&gt;&lt;![CDATA[Integer.valueOf(287)]]&gt;&lt;/defaultValueExpression&gt;
   &lt;/parameter&gt;
  &lt;parameter name="chart" class="java.lang.String" isForPrompting="false"&gt;
   &lt;defaultValueExpression&gt;&lt;![CDATA["&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;&lt;script type='text/javascript' src='https://www.google.com/jsapi'&gt;&lt;/script&gt;&lt;script type='text/javascript'&gt;google.load('visualization', '1.0', {'packages':['corechart']});; google.setOnLoadCallback(drawChart);function drawChart() {var data = new google.visualization.DataTable();data.addColumn('string', 'Topping');data.addColumn('number', 'Slices');data.addRows('Mushrooms', 3],['Onions', 1],['Olives', 1],['Zucchini', 1],['Pepperoni', 2);var options = {'title':'How Much Pizza I Ate Last Night', 'width':400,'height':300};var chart = new google.visualization.PieChart(document.getElementById('chart_div'));chart.draw(data, options);}&lt;/script&gt;&lt;/head&gt;&lt;body&gt;&lt;div id='chart_div' style='width:400; height:300'&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;"]]&gt;&lt;/defaultValueExpression&gt;
  &lt;/parameter&gt;
   &lt;queryString&gt;
   &lt;![CDATA[select 1 as dummy]]&gt;
   &lt;/queryString&gt;
  &lt;field name="dummy" class="java.lang.Integer"/&gt;
   &lt;title&gt;
   &lt;band height="502"&gt;
   &lt;componentElement&gt;
   &lt;reportElement uuid="13361114-deb3-40d4-be5d-913b157ba7d3" x="0" y="0" width="515" height="472" backcolor="#ADD8E6"/&gt;
    &lt;hc:html xmlns:hc="http://jasperreports.sourceforge.net/htmlcomponent" xsi:schemaLocation="http://jasperreports.sourceforge.net/htmlcomponent http://jasperreports.sourceforge.net/xsd/htmlcomponent.xsd" scaleType="FillFrame" horizontalAlign="Left" verticalAlign="Top"&gt;
       &lt;hc:htmlContentExpression&gt;&lt;![CDATA[$P{chart}]]&gt;&lt;/hc:htmlContentExpression&gt;
   &lt;/hc:html&gt;
   &lt;/title&gt;
      &lt;/jasperReport&gt;
  </code></pre>
  
  <p>Thanks for your help!</p>