Problems with GEOSERVER_DATA_DIR

View: New views
4 Messages — Rating Filter:   Alert me  

Problems with GEOSERVER_DATA_DIR

by Ryan Clark :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm now dealing with an installation of GeoServer that comes "canned" with GeoNetwork 2.4.2. This is all on an Ubuntu 9.04 box under Tomcat 6. 

The box has two instances of GeoServer running under Tomcat - one (1.7.3) for GeoNetwork, and another (2.0) for us to use to serve up our WMS/WFS. The 2.0 installation is working fine, but the 1.7.3 installation seems to be unable to find the data directory. I've put the correct path into the web.xml file, but it doesn't seem to be listening.  I keep getting "java.io.FileNotFoundException: Could not find services.xml under:/mnt/data-store/geonetwork/web/geoserver/data" errors, regardless of what the GEOSERVER_DATA_DIR is set to in the web.xml. I think I need to avoid setting an environment variable to specify the data directory because it is different for the two GeoServer instances.

How come it doesn't seem to be accepting my changes to the web.xml file? What is overwriting it?

Thanks,
Ryan



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Re: Problems with GEOSERVER_DATA_DIR [SEC=Unclassified]

by Miles Jordan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ryan Clark wrote:
> I think I need to avoid setting an environment variable to specify the
> data directory because it is different for the two GeoServer instances.

Yes you definitely do need to avoid that - try removing the environment variable and set the data dir in the web.xml of each instance.

http://geoserver.org/display/GEOSDOC/2.5+GeoServer+Data+Directory

-Miles
___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Re: Problems with GEOSERVER_DATA_DIR [SEC=Unclassified]

by Ryan Clark :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I haven't ever explicitly set an environment variable for the data directory, so I'm curious why the changes in web.xml don't seem to be working....

Thanks,
Ryan




On Thu, Nov 5, 2009 at 5:57 PM, Miles Jordan <Miles.Jordan@...> wrote:
Ryan Clark wrote:
> I think I need to avoid setting an environment variable to specify the
> data directory because it is different for the two GeoServer instances.

Yes you definitely do need to avoid that - try removing the environment variable and set the data dir in the web.xml of each instance.

http://geoserver.org/display/GEOSDOC/2.5+GeoServer+Data+Directory

-Miles
___________________________________________________________________________

   Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
       Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Re: Problems with GEOSERVER_DATA_DIR [SEC=Unclassified]

by Andrea Aime-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ryan Clark ha scritto:
> I haven't ever explicitly set an environment variable for the data
> directory, so I'm curious why the changes in web.xml don't seem to be
> working....

Maybe GeoNetwork startup is setting it as a system variable, who
knows... (-DGEOSERVER_DATA_DIR=xxx)

Cheers
Andrea


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users