Thanks Andrea!
Tomcat can start if GeoServer is not installed. I can view the page
http://localhost:8080/
After GeoServer was installed, I copied the default data directory
(TOMCAT_HOME\webapps\geoserver\data) as D:\GeoServer_Data and configure
web.xml. Tomcat and GeoServer can start. I can view the page
http://lolcahost:8080/geoserver/
Then I deleted GeoServer_Data directory and copied GeoServer_Data directory
from testserver, tomcat can’t start. As below is the full log.
2013-05-30 15:14:39,560 WARN [config.CustomEditorConfigurer] - Passing
PropertyEditor instances into CustomEditorConfigurer is deprecated: use
PropertyEditorRegistrars or PropertyEditor class names instead. Offending key
[org.geotools.util.Version; offending editor instance:
org.geoserver.platform.util.VersionPropertyEditor@57c501f7
2013-05-30 15:14:39,904 ERROR [geoserver.global] -
----------------------------------
- GEOSERVER_DATA_DIR: D:\GeoServer_Data
----------------------------------
2013-05-30 15:14:42,805 WARN [referencing.factory] - Axis elements found in a
wkt definition, the force longitude first axis order hint might not be
respected:
PROJCS["WGS84 / Simple Mercator", GEOGCS["WGS 84", DATUM["WGS_1984",
SPHEROID["WGS_1984", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0],
UNIT["degree", 0.017453292519943295]], PROJECTION["Mercator_1SP_Google"],
PARAMETER["latitude_of_origin", 0.0], PARAMETER["central_meridian", 0.0],
PARAMETER["scale_factor", 1.0], PARAMETER["false_easting", 0.0],
PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["x", EAST], AXIS["y",
NORTH], AUTHORITY["EPSG","54004"]]
2013-05-30 15:14:43,070 WARN [org.geoserver] - Ignoring store directory
'layergroups'
Thanks!
Meichun
From: Andrea Aime <[email protected]>
To: Meichun Li <[email protected]>
Cc: GeoServer Mailing List List <[email protected]>
Sent: Friday, May 31, 2013 2:59 AM
Subject: Re: [Geoserver-users] Problem with GeoServer Migration
On Thu, May 30, 2013 at 10:39 PM, Meichun Li <[email protected]> wrote:
Hi,
>We have two servers, one is test server and the other is production server. I
>use tomcat as application server. I want to set up geoserver on both server
>with exactly the same configuration.
>I searched geoserver documention, it is said that we just need to copy the
>data directory over and it should work. I tried but it is not working.
>On the test server, I deployed geoserver.war , and configured
>D:\GeoServer_Data as external data directory, then I created workspaces and
>layers. I deployed the same geoserver.war to prod server, copy
>D:\GeoServer_Data from test server to production server, and also
>D:\GeoServer_Data as external data directory on production server. But it is
>not working on production server. Tomcat can’t be started. I checked the log,
>I see this error message:
>…….
>ERROR [geoserver.global] -GEOSERVER_DATA_DIR:
>………
The message is at error level just to ensure the data dir gets printed, however
it seems that on this machine it is not set?
You should have something like:
ERROR [geoserver.global] -GEOSERVER_DATA_DIR: D:\GeoServer_Data
instead.
Also, look at the entire log, another common reason for the server not being
able to start is the port Tomcat is normally using
(8080 by default) being already busy, one common culprit using that port is the
Oracle administration UI.
Cheers
Andrea
--
==
GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it/ for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it/
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users