The full error message should be logged in the GeoServer logs. (In the GeoServer data directory, logs/geoserver.log). It may also be useful to check out the OpenLayers previews in the GeoServer web console - are the previews for the layers you're using working ok?
The only unusual thing I see about your OpenLayers configuration is the use of a URL array where there are several instances of the same URL. I don't think it will cause any problems, but I'd recommend using a single URL just for simplicity unless you actually have multiple domain names in use. -- David Winslow OpenGeo - http://opengeo.org/ On Sun, Jan 9, 2011 at 2:31 PM, Ragnvald Larsen <[email protected]>wrote: > Using Geoserver 2.0.2 on Windows. Half of the tiles in my overlays fail to > display. The missing tiles and the produced tiles form a very nice > chessboard pattern. Not very useful. I have tried to figure out what the > problem could be, and I have so far not succeeded. The code is available > below. As for the map just think of a chessboard where every other square > says: > > > > “code=”LayerNotDefined” could not find la [rest is gone off the tile] > > Inos:inos_1990” > > > > Cheers! > > > > Ragnvald > > > > <script type = "text/javascript"> > > var format = 'image/png'; > > > > var map,inos_1990; > > > > function init(){ > > > > map_controls = [ new OpenLayers.Control.OverviewMap(), > > new > OpenLayers.Control.LayerSwitcher({'ascending':true}), > > new OpenLayers.Control.PanZoomBar(), > > new OpenLayers.Control.MouseToolbar(), > > new OpenLayers.Control.KeyboardDefaults()]; > > > > > > var urlArray = ["http://localhost/geoserver/wms?service=wms", > > "http://localhost/geoserver/wms?service=wms", > > "http://localhost/geoserver/wms?service=wms"]; > > > > var bounds = new > OpenLayers.Bounds(1057201.2039165555,1.2545904226990476E7,3765604.414539889,1.6119143121091189E7); > //minX,minY,maxX,maxY values > > > > map = new OpenLayers.Map( 'map', { > > projection: "EPSG:900913", > > maxExtent: bounds, > > maxResolution: 'auto', // > tilsvarer zoom level 3 (hele er 21664.0) > > units: 'm', > > controls: map_controls > > } ); > > > > > > var ls = > map.getControlsByClass('OpenLayers.Control.LayerSwitcher')[0]; > > > > ls.maximizeControl(); > > > > > > layer = new OpenLayers.Layer.WMS( > > "OpenLayers WMS", > > "http://labs.metacarta.com/wms/vmap0", > > {layers: 'basic', > > srs: 'EPSG:900913'} > > ); > > > > map.addLayer(layer); > > > > > > > > inos_1990 = new OpenLayers.Layer.WMS( "INOS 1990 fastland", > > urlArray, > > { > > layers: 'inos:inos_1990', > > styles: '', > > srs: 'EPSG:900913', > > format: format, > > > transparent: "true" > > > }, > > > {opacity:0.5}, > > { singleTile: true, ratio: 1 }, > > {isBaseLayer: false, visibility: true} > > ); > > > > map.addLayer(inos_1990); > > > > inos_1990.setVisibility(false); > > > > inos_1990_pyram_f = new OpenLayers.Layer.WMS( "INOS vurdering > pyramiden", > > urlArray, > > { > > layers: 'inos:inos_1990_pyram_f', > > styles: '', > > srs: 'EPSG:900913', > > format: format, > > transparent: "true" > > }, > > > {opacity:0.5}, > > {isBaseLayer: false, visibility: true} > > ); > > > > map.addLayer(inos_1990_pyram_f); > > > > inos_1990_pyram_f.setVisibility(false); > > > > > > map.zoomToExtent(bounds); > > > > //map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); > > > > } > > </script> > > > > Senioringeniør, IT og Geodataseksjonen > > Tlf: 73 58 05 64 > Mob: 92421540 > > Direktoratet for naturforvaltning > - *for liv i naturen og natur i livet > **www.dirnat.no* > > > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any > company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > >
------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
