<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000099">
<font size="-1"><font face="Verdana">Hi all, <br>
<br>
I am very happy with openlayers, so happy that I have been trying to
convert my application to a porlet . <br>
I am using Liferay portal as dev environment and I have successfully
managed to load OpenLayers.js within my portlet .... but I am facing an
error : <br>
<br>
<blockquote type="cite"><span
 class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened">
  <div class="errorTitle">this.projection is null</div>
  <div class="errorTrace">
  <div class="objectBox objectBox-stackFrame"><a class="objectLink">setMap()</a>(<a
 class="objectLink objectLink-object"><span class="objectTitle">Object</span>
tileSize=<span class="objectPropValue">w=256,h=256</span></a><span
 class="arrayComma"></span>)<span
 class="objectLink-sourceLink objectLink">OpenLaye...897537000 (line
1069)</span></div>
  <div class="objectBox objectBox-stackFrame"><a class="objectLink">resetLayersZIndex()</a>(<a
 class="objectLink objectLink-object"><span class="objectTitle">Object</span>
options=<span class="objectPropValue">Object</span> singleTile=<span
 class="objectPropValue">true</span></a><span class="arrayComma"></span>)<span
 class="objectLink-sourceLink objectLink">OpenLaye...897537000 (line
811)</span></div>
  <div class="objectBox objectBox-stackFrame"><a class="objectLink">addLayer()</a>(<span
 class="objectBox objectBox-string">"_1_WAR_test_INSTANCE_V18w_:frmWMSTest:vtsMap"</span><span
 class="arrayComma">, </span><span class="objectBox objectBox-string">"_1_WAR_test_INSTANCE_V18w_:frmWMSTest:j_id29"</span><span
 class="arrayComma"></span>)<span
 class="objectLink-sourceLink objectLink">LTk1NDgwMjc1Nw== (line 1215)</span></div>
  <div class="objectBox objectBox-stackFrame"><a class="objectLink">(?)</a>()<span
 class="objectLink-sourceLink objectLink">vts2 (line 37)</span></div>
  </div>
  <div class="errorSourceBox errorSource-exec"><span class="errorSource">this.units=this.projection.getUnits()||t...;this.div.style.display=show?"":"none";}</span></div>
  </span></blockquote>
<br>
The error is thrown at line 1069 .<br>
<br>
Now, before going heads up in debugging, I was wondering if anybody has
successfully used OpenLayers within a portlet environment and/or if
they have faced this errror before.<br>
<br>
<br>
<br>
TIA<br>
<br>
Marco<br>
<br>
</font></font>
</body>
</html>