[Geoserver-users] new shapefile datastore how do I connect to network drive data?

Hi,

When creating a new shapefile datastore I filled in for the url field a reference to a mapped network drive on the server (i.e. file://j:/canada.shp) and I get an error “Could not find file: J:\canada.shp”. When I try to reference the same file on the c drive it finds with no error (i.e. file://c:/canada.shp)

How can I get a new shapefile datastore to connect to network drive?

Thanks,

John


John J. Mitchell

John Mitchell ha scritto:

Hi,

When creating a new shapefile datastore I filled in for the url field a reference to a mapped network drive on the server (i.e. file://j:/canada.shp) and I get an error "Could not find file: J:\canada.shp". When I try to reference the same file on the c drive it finds with no error (i.e. file://c:/canada.shp)

I just tried with a file on a remote drive on my XP VM and it
worked fine. In my case the path I specified was
file://z:/gisdata/roads.shp

A difference that might be significant is that I have write access
on the remote drive.

I also know that people in the past successfully connected
to shapefiles on remote drives, but then they found out they
could not go in production that way using GeoServer as a service
because the remote drives are mounted after the other services
are started.

I remember there was an issue with the Windows services design
itself, like the inability to set a startup order, and the
fact Java cannot deal with UNC path directly (which would have
allowed to dodge the service startup order issue), but I cannot
find the thread in the archives with a quick search.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi,

I can't say about Geoserver but it may have something in common with what I have experienced with Mapserver.

Standart way to install Mapserver on Windows, or actually Apache http server in front of it, is to install Apache service under a local Windows system account that has plenty of rights on the local machine. However, it does not have any rights for the remote computer and therefore the service does not even start with mapped drives. Apache can be started as an executable program after logging in to Windows. I suppose that in that case the user reading remote drives is the normal Windsows user and not the local system user like it was in the service case. Starting Windows service with mapped drives should be possible by creating a new account that has a suitable set of rights for both the local machine and the remote computer but I have not tried that. We just acquired more local disk space.

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: Andrea Aime [mailto:aaime@anonymised.com]
Lähetetty: 13. toukokuuta 2009 10:14
Vastaanottaja: John Mitchell
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] new shapefile datastore how do I
connect to network drive data?

John Mitchell ha scritto:
> Hi,
>
> When creating a new shapefile datastore I filled in for the
url field
> a reference to a mapped network drive on the server (i.e.
> file://j:/canada.shp) and I get an error "Could not find file:
> J:\canada.shp". When I try to reference the same file on
the c drive
> it finds with no error (i.e. file://c:/canada.shp)

I just tried with a file on a remote drive on my XP VM and it
worked fine. In my case the path I specified was
file://z:/gisdata/roads.shp

A difference that might be significant is that I have write
access on the remote drive.

I also know that people in the past successfully connected to
shapefiles on remote drives, but then they found out they
could not go in production that way using GeoServer as a
service because the remote drives are mounted after the other
services are started.

I remember there was an issue with the Windows services
design itself, like the inability to set a startup order, and
the fact Java cannot deal with UNC path directly (which would
have allowed to dodge the service startup order issue), but I
cannot find the thread in the archives with a quick search.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

--------------------------------------------------------------
----------------
The NEW KODAK i700 Series Scanners deliver under ANY
circumstances! Your production scanning environment may not
be a perfect world - but thanks to Kodak, there's a perfect
scanner to get the job done! With the NEW KODAK i700 Series
Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Andrea,

Regarding your comment:

I remember there was an issue with the Windows services design
itself, like the inability to set a startup order, and the
fact Java cannot deal with UNC path directly (which would have
allowed to dodge the service startup order issue), but I cannot
find the thread in the archives with a quick search.

Is their a plan for future versions of Geoserver to allow connection to files via UNC paths instead of via a mapped network drive?

Thanks,

John Mitchell

On Wed, May 13, 2009 at 3:14 AM, Andrea Aime <aaime@anonymised.com> wrote:

John Mitchell ha scritto:

Hi,

When creating a new shapefile datastore I filled in for the url field a reference to a mapped network drive on the server (i.e. file://j:/canada.shp) and I get an error “Could not find file: J:\canada.shp”. When I try to reference the same file on the c drive it finds with no error (i.e. file://c:/canada.shp)

I just tried with a file on a remote drive on my XP VM and it
worked fine. In my case the path I specified was
file://z:/gisdata/roads.shp

A difference that might be significant is that I have write access
on the remote drive.

I also know that people in the past successfully connected
to shapefiles on remote drives, but then they found out they
could not go in production that way using GeoServer as a service
because the remote drives are mounted after the other services
are started.

I remember there was an issue with the Windows services design
itself, like the inability to set a startup order, and the
fact Java cannot deal with UNC path directly (which would have
allowed to dodge the service startup order issue), but I cannot
find the thread in the archives with a quick search.

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.


John J. Mitchell