Milton Jonathan ha scritto:
-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
> Hello there
> 
> I found a problem that may be related to issue GEOS-4025 ("Layer preview 
> cause Error")
> 
> Good thing is, this one is easy to reproduce on GeoServer 2.0.2. It 
> seems to be related to GeoServer not being able to cope with missing 
> files in the data dir.
> 
> The steps are the following (obs: regarding environment, I'm on Windows XP)
> 
> 1. Install GeoServer 2.0.2 from scratch (I installed it stand-alone)
> 2. OK, everything is working right? Now stop GeoServer, go to its data 
> dir and delete everything in there.
> 3. Start GeoServer. It will create some files in the data dir and work 
> properly (Layer preview page opens OK)
> 4. Stop GeoServer and start again. Everything seems to be in place, but 
> when you go to the layer preview page, you get an "Ooops" error (see 
> attachment)
> 
> Codewise, when debugging the 2.0.2 code, the problem seemed to be caused 
> by org.geoserver.wms.WMS getting a null value when calling 
> serviceInfo.getMetadata() within the getSvgRenderer() method.
> 
> That's it. Andrea, do you want me to place this as a comment to 
> GEOS-4025, or should I open a new JIRA here?

Eh, not sure how to handle that one. GeoServer is simply not designed
to start from a completely empty data directory. The minimum
is here:
http://svn.codehaus.org/geoserver/trunk/data/minimal/

Well, actually even that contains a few unecessary directories,
like capabilities, coverages, images, mbdemos, plugins, templates,
validation. But once you remove those you get the bare minimum.

It would be actually nice to be able and start from a totally empty
data directory. Want to try making a patch?

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to