JSAPI error in JBoss (dojo)

Discussion created by adrianrb on Feb 1, 2011
Hi all!

I´ve running ArcGis JSAPI locally succefully from Apache + PHP 5, but I need to replace business classes from PHP from Java due to company rules.

So, I´ve copied the source to jboss deploy folder.
The app starts but is showing erros in Firebug now:

unterminated string literal

It appears that jboss can´t be able to send the (big) string of the ESRI jsapi (2.1), that contains the dojo library...

I´ve already recopied the api, redeployed, confirmed the path in HTML (always relative) but can´t solve it.

Any ideas?


* ESRI jsapi 2.1
* Jboss 5
* ExtJS 3.3.0 (NOTE it´s working properly, as you can see in the menu image attached; the path in HTML is the same)

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>GEO-TE Web</title>
    <!-- Tema padrão da ESRI e carga da ESRI JS-API -->
    <link rel="stylesheet" type="text/css" href="/frameworks_js/arcgis_js_api/library/2.1/arcgis/js/dojo/dijit/themes/tundra/tundra.css">
    <link rel="stylesheet" type="text/css" href="/frameworks_js/arcgis_js_api/library/2.1/arcgis/js/dojo/dojox/grid/resources/Grid.css">
    <link rel="stylesheet" type="text/css" href="/frameworks_js/arcgis_js_api/library/2.1/arcgis/js/dojo/dojox/grid/resources/tundraGrid.css">

    <script type="text/javascript" src="/frameworks_js/arcgis_js_api/library/2.1/arcgis/"></script>
    <!-- Tema padrão da ESRI e carga da ESRI JS-API -->

    <script type="text/javascript" src="copel/js/util.js"></script>
    <script type="text/javascript" src="copel/js/number-format.js"></script>

    <!-- Ext JS -->
    <link rel="stylesheet" type="text/css" href="/frameworks_js/ext-3.3.0/resources/css/ext-all.css" />
    <link rel="stylesheet" type="text/css" href="/frameworks_js/ext-3.3.0/resources/css/xtheme-gray.css" />
    <script type="text/javascript" src="/frameworks_js/ext-3.3.0/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="/frameworks_js/ext-3.3.0/ext-all.js"></script>
    <!-- Ext JS -->

    <script type="text/javascript" src="mapa.js"></script>
<body style="leftmargin: 0px; topmargin: 0px;" >

    <div id="map" class="tundra" style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"></div>  
    <div id="coord_XY" ></div>

Thx in advance,

COPEL Telecom S/A