title: How to add a geoserver layer to openlayers?
body: <p>I am trying to add a geoserver layer with 2 points on the openlayers. But I only get the map without the points. This is what I try:</p>
  
  <pre><code>     &lt;html&gt;
       &lt;head&gt;
         &lt;title&gt;OpenLayers Example&lt;/title&gt;
         &lt;script src="http://openlayers.org/api/OpenLayers.js"&gt;&lt;/script&gt;
       &lt;/head&gt;
       &lt;body&gt;
         &lt;div style="width:100%; height:100%" id="map"&gt;&lt;/div&gt;
         &lt;script defer="defer" type="text/javascript"&gt;
           var map = new OpenLayers.Map('map');
  
  
          var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
            "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
  
  
           var cabin= new OpenLayers.Layer.WMS(
                  "Cabins",
                  "http://localhost:8080/geoserver/wms",
                  {layers: "cite::obj_geom",
                      transparent: false,
                      TILED: false,
                      styles: "point"
                  },
          {isBaseLayer: false,
              displayInLayerSwitcher: true,
              format: "image/png",
              visibility: false,
              displayOutsideMaxExtent: false,
              projection: new OpenLayers.Projection("EPSG:900913")
  
          }
        );    
  
      map.addLayers([wms,cabin]);
      map.zoomToMaxExtent();
  
    &lt;/script&gt;
  
    &lt;/body&gt;
    &lt;/html&gt;
  </code></pre>
  
  <p>What am I doing wrong? I thought it was the projections but I changed it to EPSG:900913, the same with the openlayers map projection.</p>