Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi i want to use geoserver+openlayers in LifeRay portlet. My main question its how to do this? I mean how to include geoserver in liferay, how to open geoserver's admin panel in liferay. Next question its how to use deafult geoserver's css. When i create simple html page i use

<link href="http://localhost:8080/geoserver/openlayers/theme/default/style.css" type="text/css"/>

But in LifeRay all css gonna be include in file liferay-portlet.xml can someone say how to add this css in this file?

Next question: how to use wms? In html i use this

layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
    "http://localhost:8080/geoserver/wms", {layers: 'cite:filedata', transparent: true, format: "image/png"});

I gonna change this link to wms to use this in portlet?

And final question: i try add OpenLayers.js in layfray-portlet.xml but after deploy my portlet i dont see any map controls on the page just empty DIV.

this is part of liferay-portlet.xml


That what i get. enter image description here

Im foget say about one thing. I see a error in firebug with this text:

localhost:8080/poller/receive error 404 Not Found

Anyone have ideas?

share|improve this question
Okay, No w i see the map controls. I add style.css in lifray-portlet.xml and copy directory with images and css from geoserver to lifray css directory. But im still dont know how to use geoserver in liferay. – Kliver Max Jun 26 '12 at 10:36
Okey, i understand im dummy. To geoserver is work just needed put it in liferay's tomcat directory. Path to WMS still same, nothing need to change. – Kliver Max Jun 26 '12 at 11:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.