Skip to content

Commit e29b166

Browse files
NimaGhasemloojodygarnett
authored andcommitted
Create 2025-05-21-geospatial-techno.md
Update-geospatial-techno
1 parent e8e07b7 commit e29b166

File tree

1 file changed

+106
-0
lines changed

1 file changed

+106
-0
lines changed
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
---
2+
author: Nima Ghasemloo
3+
layout: post
4+
title: GeoServer Installation and Upgrade Guide on Windows
5+
date: 2025-05-21
6+
categories:
7+
- Tutorials
8+
---
9+
10+
[GeoSpatial Techno](https://www.youtube.com/@geospatialtechno) is a startup focused on geospatial information that is providing e-learning courses to enhance the knowledge of geospatial information users, students, and other startups. The main approach of this startup is providing quality, valid specialized training in the field of geospatial information.
11+
12+
( [YouTube](https://www.youtube.com/@geospatialtechno)
13+
| [LinkedIn](https://www.linkedin.com/in/geospatialtechno)
14+
| [Facebook](https://www.facebook.com/geospatialtechno)
15+
| [X](https://twitter.com/geospatialtechn)
16+
)
17+
18+
----
19+
20+
### GeoServer Installation and Upgrade Guide
21+
In this session, we will install GeoServer on Windows using the Web Archive installation method and upgrade to a new version, while retaining existing data.
22+
23+
If you want to access the complete tutorial, click on the [link](https://www.youtube.com/watch?v=SpTdPIRxjU0&list=PL_ITaxp1Ob4sjk24Stboa5XbO0LGdEKbL).
24+
25+
[![](https://img.youtube.com/vi/SpTdPIRxjU0/0.jpg)](https://www.youtube.com/watch?v=SpTdPIRxjU0&list=PL_ITaxp1Ob4sjk24Stboa5XbO0LGdEKbL)
26+
27+
## Introduction
28+
GeoServer is a versatile, Java-based application compatible with various operating systems, provided a suitable Java Virtual Machine (JVM) is available. The latest versions of GeoServer have been tested with both Oracle JRE and OpenJDK.
29+
30+
The GeoServer WAR file is a platform-independent web archive designed for deployment on application servers. Apache Tomcat is the recommended servlet container due to its robust integration capabilities and comprehensive documentation. This setup allows multiple web applications to run concurrently, enabling GeoServer to operate alongside other Java-based services, enhancing server versatility.
31+
32+
**Note.** This guide outlines the installation of GeoServer 2.25.x using Java 17 and Apache Tomcat 9, followed by upgrade instructions. To ensure you have the latest release, please visit this [link](https://geoserver.org/download/) and avoid using older versions of GeoServer.
33+
34+
## Preparing for Installation
35+
Before proceeding, follow the steps below:
36+
- Backup the existing GeoServer folder (if upgrading).
37+
38+
The folder ``webapps/geoserver/data`` is the data directory containing your configuration settings you wish to preserve.
39+
40+
The folder ``webapps/geoserver/WEB-INF/lib`` contains the deployed GeoServer web application, along with an extensions you have manually installed.
41+
42+
- Check the **Modules** tab under the **Server Status** page to see all installed extensions.
43+
- Uninstall previous versions of Java and Apache Tomcat.
44+
45+
### Installing Java Development Kit (JDK)
46+
To download JDK 17, navigate to [adoptium.net](https://adoptium.net) and select:
47+
- **Operating System:** Windows
48+
- **Architecture:** x64
49+
- **Package Type:** JDK
50+
- **Version:** 17-LTS
51+
52+
Download the `.msi` file and run it as an administrator. During installation, accept default settings and complete the setup.
53+
54+
## Installing Apache Tomcat
55+
To download and install Apache Tomcat software, navigate to [tomcat.apache.org](https://tomcat.apache.org) and select **Tomcat 9** from the **Download** section.
56+
57+
Choose the **32-bit/64-bit Windows Service Installer** and run it as an administrator.
58+
59+
During setup:
60+
- Configure the **ports** (default recommended).
61+
- Set a **secure** username and password for administration (avoiding common defaults like `admin` or `tomcat`).
62+
- The installer should auto-detect the installed JDK; if not, the user manually selects the Java installation path.
63+
64+
To configure JVM memory allocation, navigate to `C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin` and run **Tomcat9w.exe** as an administrator.
65+
66+
In the **Java** tab, the user sets:
67+
- **Initial Memory Pool:** 512 MB
68+
- **Maximum Memory Pool:** 1024 MB
69+
- **Java Options**: As required for [running on Java 17](https://docs.geoserver.org/latest/en/user/production/java.html#running-on-java-17).
70+
71+
```
72+
--add-exports=java.desktop/sun.awt.image=ALL-UNNAMED
73+
--add-opens=java.base/java.lang=ALL-UNNAMED
74+
--add-opens=java.base/java.util=ALL-UNNAMED
75+
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
76+
--add-opens=java.base/java.text=ALL-UNNAMED
77+
--add-opens=java.desktop/java.awt.font=ALL-UNNAMED
78+
--add-opens=java.desktop/sun.awt.image=ALL-UNNAMED
79+
--add-opens=java.naming/com.sun.jndi.ldap=ALL-UNNAMED
80+
--add-opens=java.desktop/sun.java2d.pipe=ALL-UNNAMED
81+
```
82+
83+
Switch to the **General** tab, and set **Startup Type** to **Automatic**, and start the Tomcat service.
84+
85+
## Deploying GeoServer
86+
Download the latest **GeoServer WAR** file from [geoserver.org](https://geoserver.org).
87+
88+
Extract the `.war` file and copy it to `C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps`.
89+
90+
To start GeoServer:
91+
- Navigate `http://localhost:8080/manager`.
92+
- Login with the Tomcat credentials.
93+
- Click **Start** next to the GeoServer application.
94+
95+
The user accesses GeoServer at `http://localhost:8080/geoserver` and logs in using the default credentials:
96+
- **Username:** admin
97+
- **Password:** geoserver
98+
99+
## Upgrading GeoServer
100+
Stop GeoServer via the **Tomcat Manager App**, then replace the existing `webapps/geoserver/data` directory with the one from your backup.
101+
102+
Reinstall any **compatible extensions** for the new version, and restart GeoServer and verifies functionality.
103+
104+
----
105+
106+
In this session, we took a brief journey to installation of GeoServer using the Web Archive method. If you want to access the complete tutorial, click on the [link](https://www.youtube.com/watch?v=SpTdPIRxjU0&list=PL_ITaxp1Ob4sjk24Stboa5XbO0LGdEKbL).

0 commit comments

Comments
 (0)