JSAPI error in JBoss (dojo)

653
0
02-01-2011 08:13 AM
Adrian_R_Barbosa
New Contributor
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
if(!dojo._hasResource["dijit._base.man...itOffScreen\"\r\n\t\tdojoAttachPoint=\


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?

Info:

* 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)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <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="https://community.esri.com/frameworks_js/arcgis_js_api/library/2.1/arcgis/js/dojo/dijit/themes/tundra/tundra.css">
    <link rel="stylesheet" type="text/css" href="https://community.esri.com/frameworks_js/arcgis_js_api/library/2.1/arcgis/js/dojo/dojox/grid/resources/Grid.css">
    <link rel="stylesheet" type="text/css" href="https://community.esri.com/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="https://community.esri.com/frameworks_js/ext-3.3.0/resources/css/ext-all.css" />
    <link rel="stylesheet" type="text/css" href="https://community.esri.com/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>
 
</head>
<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>
    
</body>
</html>


Thx in advance,

Adrian
COPEL Telecom S/A
http://www.copel.com
0 Kudos
0 Replies