Skip to content

Commit 158a42b

Browse files
committed
review sphinx docs for java 17 update
1 parent e36376e commit 158a42b

File tree

9 files changed

+130
-62
lines changed

9 files changed

+130
-62
lines changed

documentation/en/user/source/configuration/layers/howto.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ It is recommended to use a special XML editing tool or at the very least a text
3333

3434
Two recommended free editors, both of which have support for XML validation, are:
3535

36-
* `jEdit <http://www.jedit.org/>`_ (cross platform)
37-
* `Notepad++ <http://notepad-plus-plus.org/>`_ (Windows only)
36+
* `jEdit <https://www.jedit.org>`_ (cross platform)
37+
* `Notepad++ <https://notepad-plus-plus.org/>`_ (Windows only)
3838

3939
It is also possible to validate an XML document outside of a text editor environment.
4040

documentation/en/user/source/configuration/storage.rst

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -23,53 +23,57 @@ does not explicitly indicate which blobstore shall be used.
2323

2424
.. note:: **there will always be a "default" blobstore**. If a blobstore to be used by default is not explicitly configured, one will
2525
be created automatically following the legacy cache location lookup mechanism used in versions prior to 1.8.0.
26-
26+
27+
.. _configuration.file
28+
2729
Configuration File
2830
------------------
2931

30-
The location of the configuration file, :file:`geowebcache.xml`, will be defined by the ``GEOWEBCACHE_CACHE_DIR`` application argument.
32+
The location of the configuration file, :file:`geowebcache.xml`, will be defined by the ``GEOWEBCACHE_CACHE_DIR`` application parameter.
3133

32-
There are a few ways to define this argument:
34+
There are a few ways to define ``GEOWEBCACHE_CACHE_DIR``:
3335

3436
* JVM system environment variable
3537
* Servlet context parameteter
3638
* Operating system environment variable
3739

3840
The variable in all cases is defined as ``GEOWEBCACHE_CACHE_DIR``.
3941

40-
To set as a JVM system environment variable, add the parameter ``-DGEOWEBCACHE_CACHE_DIR=<path>`` to your servlet startup script.
41-
In Tomcat, this can be added to the Java Options (JAVA_OPTS) variable in the startup script.
42-
43-
To set as a servlet context parameter, edit the GeoWebCache :file:`web.xml` file and add the following code:
44-
45-
.. code-block:: xml
46-
47-
<context-param>
48-
<param-name>GEOWEBCACHE_CACHE_DIR</param-name>
49-
<param-value>PATH</param-value>
50-
</context-param>
51-
52-
where ``PATH`` is the location of the cache directory.
42+
1. To set as a JVM system environment variable, add the parameter ``-DGEOWEBCACHE_CACHE_DIR=<path>`` to your servlet startup script.
5343

54-
To set as an operating system environment variable, run one of the the following commands:
44+
In Tomcat, this can be added to the Java Options (``JAVA_OPTS``) variable in the startup script, or by creating :file:`setenv.sh` / :file:`setenv.bat`:
5545

56-
Windows::
46+
2. To set as a servlet context parameter, edit the GeoWebCache :file:`web.xml` file and add the following code:
5747

58-
> set GEOWEBCACHE_CACHE_DIR=<path>
48+
.. code-block:: xml
49+
50+
<context-param>
51+
<param-name>GEOWEBCACHE_CACHE_DIR</param-name>
52+
<param-value>PATH</param-value>
53+
</context-param>
5954
60-
Linux/OS X::
55+
where ``PATH`` is the location of the cache directory.
6156
62-
$ export GEOWEBCACHE_CACHE_DIR=<path>
57+
3. To set as an operating system environment variable, run one of the the following commands:
6358

64-
Finally, although not recommended, it is possible to set this location directly in the :file:`geowebcache-core-context.xml` file. Uncomment this code:
59+
Windows::
60+
61+
> set GEOWEBCACHE_CACHE_DIR=<path>
62+
63+
Linux/OS X::
64+
65+
$ export GEOWEBCACHE_CACHE_DIR=<path>
6566

66-
.. code-block:: xml
67+
4. Not recommended: It is possible to set this location directly in the :file:`geowebcache-core-context.xml` file.
68+
However this file will be replaced each update:
6769

68-
<!-- bean id="gwcBlobStore" class="org.geowebcache.storage.blobstore.file.FileBlobStore" destroy-method="destroy">
69-
<constructor-arg value="/tmp/gwc_blobstore" />
70-
</bean -->
70+
.. code-block:: xml
71+
72+
<!-- bean id="gwcBlobStore" class="org.geowebcache.storage.blobstore.file.FileBlobStore" destroy-method="destroy">
73+
<constructor-arg value="/tmp/gwc_blobstore" />
74+
</bean -->
7175
72-
making sure to edit the path. As usual, any changes to the servlet configuration files will require :ref:`configuration.reload`.
76+
making sure to edit the path. As usual, any changes to the servlet configuration files will require :ref:`configuration.reload`.
7377

7478
.. note:: if ``GEOWEBCACHE_CACHE_DIR`` is not provided by any of the above mentioned methods, the directory will default
7579
to the temporary storage folder specified by the web application container. (For Tomcat, this is the :file:`temp` directory inside the root.)

documentation/en/user/source/faq/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ Frequently Asked Questions
44
This section will answer common questions about GeoWebCache.
55

66
Does GeoWebCache support WFS feature caching?
7-
Not currently. Earlier versions of GeoWebCache had an experimental prototype of vector feature caching, but it was highly unstable and was removed from GeoWebCache as of version 1.2.5.
87

8+
Not currently. Earlier versions of GeoWebCache had an experimental prototype of vector feature caching, but it was highly unstable and was removed from GeoWebCache as of version 1.2.5.
9+
10+
However when used with a vector tiles output format GeoWebCache can cache a vector representation of the features within each tile. It is up to client software to stich together the resulting shapes during vector tile rendering.

documentation/en/user/source/installation/geowebcache.rst

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
Installing GeoWebCache
44
======================
55

6-
Once the :ref:`Java Servlet environment <prerequisites>` is in place, installing GeoWebCache is simple.
6+
Once the :ref:`Java Servlet environment <prerequisites>` is in place:
77

8-
The latest Web ARchive (WAR) file can be downloaded from `GeoWebCache.osgeo.org <https://geowebcache.osgeo.org>`_.
8+
1. The :file:`geowebcache-war.zip` Web ARchive (WAR) file can be downloaded from `GeoWebCache.osgeo.org <https://geowebcache.osgeo.org>`_.
99

10-
Unpack the zip file and make sure to read the software :ref:`license`.
10+
2. Unpack the zip file and make sure to read the software :ref:`license`, and locate the :file:`geowebcache.war` for deployment.
1111

1212
Option 1: Tomcat Administration Tool
1313
------------------------------------
@@ -18,13 +18,23 @@ Option 1: Tomcat Administration Tool
1818

1919
#. After the upload is complete, look for :guilabel:`geowebcache` in the :guilabel:`Applications` table.
2020

21-
#. GeoWebCache should be installed at ``http://localhost:8080/geowebcache``.
21+
#. Once the application is started, GeoWebCache is available ``http://localhost:8080/geowebcache``.
2222

2323
Option 2: Manual Installation
2424
-----------------------------
2525

26-
The file :file:`geowebcache.war` is just a zip file. The Tomcat Administration Tool unpacks this file to a folder inside the Tomcat webapps directory called ``<tomcat dir>/webapps/geowebcache``. If you wish, you can unpack this archive manually in this location. You can also make configuration changes before copying to the webapps directory.
26+
1. Tomcat will need to be stopped before making any changes to the webapps directory.
27+
28+
Ensure that the Tomcat process is stopped before proceeding, as the JVM does not always release file handles immediately.
2729

28-
.. note:: Tomcat will need to be stopped before making any changes to the webapps directory. Ensure that the Tomcat process is stopped before proceeding, as the JVM does not always release file handles immediately.
30+
2. To manually deploy:
2931

30-
After restarting Tomcat, GeoWebCache should be installed at ``http://localhost:8080/geowebcache``.
32+
* Copy the file :file:`geowebcache.war` to :file:`<tomcat dir>/webapps`.
33+
34+
On startup Tomcat will deploy the application to the folder :file:`<tomcat dir>/webapps/geowebcache`
35+
36+
* If you wish, you can unpack this archive manually in this location. The :file:`geowebcache.war` may be treated as a zip file and be unpacked to :file:`<tomcat dir>/webapps/geowebcache`.
37+
38+
This approach allows you to make configuration changes before restartig Tomcat.
39+
40+
3. After restarting Tomcat, GeoWebCache is available ``http://localhost:8080/geowebcache``.

documentation/en/user/source/installation/prerequisites/linux.rst

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,7 @@ Java Runtime Environment
1717

1818
Make sure you have a Java Runtime Environment (JRE) installed on your system. GeoWebCache requires a Java 17 or Java 21 environment, available from `OpenJDK <https://openjdk.java.net/>`__, `Adoptium <https://adoptium.net/>`_, or provided by your OS distribution.
1919

20-
============ ================= ================ ================ ==================
21-
Java Initial Required Final Tested
22-
============ ================= ================ ================ ==================
23-
Java 21 LTS GeoWebCache 1.25 OpenJDK
24-
Java 17 LTS GeoWebCache 1.22 GeoWebCache 1.28 OpenJDK
25-
Java 11 LTS GeoWebCache 1.15 GeoWebCache 1.22 GeoWebCache 1.27 OpenJDK
26-
Java 8 LTS GeoWebCache 1.9 GeoWebCache 1.9 GeoWebCache 1.22 Oracle and OpenJDK
27-
============ ================= ================ ================ ==================
20+
See :doc:`/installation/upgrading` for compatibility table.
2821

2922
Apache Tomcat
3023
-------------
@@ -43,7 +36,7 @@ Using your favorite text editor, open ``/opt/apache-tomcat-9.0.106/bin/catalina.
4336
The first line sets the the JRE just installed is the one that Tomcat uses. The second line tells Tomcat to run with server settings and to use 256MB for heap memory. (It may be possible to run with less heap memory, but this is no recommended.) On big installations you will want to use 1024MB or more. Note that this resource is shared among all servlets running in the container, so if you add more servlets later you may have to adjust this number.
4437

4538
Access Control
46-
--------------
39+
^^^^^^^^^^^^^^
4740

4841
If you wish to use Tomcat's web administration tool, you will need to create an account for the administrator.
4942

@@ -55,7 +48,7 @@ Open ``/opt/apache-tomcat-9.0.106/conf/tomcat-users.xml`` in a text editor. Imme
5548
Replace ``s3cret`` with your actual password. After making this change you will have to restart Tomcat.
5649

5750
Controlling Tomcat
58-
------------------
51+
^^^^^^^^^^^^^^^^^^
5952

6053
Running as your own user, you should be able to start and stop Tomcat by using the scripts
6154
``/opt/apache-tomcat-9.0.106/bin/startup.sh`` and ``/opt/apache-tomcat-a.b.c/bin/shutdown.sh``

documentation/en/user/source/installation/prerequisites/macosx.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ MacOS X
66
MacOS has a number of command line package managers for open source components. We recommend using `SDKMAN! <https://sdkman.io/>`_ to manage Java and Tomcat environment.
77

88
Java
9-
^^^^^
9+
----
10+
11+
Make sure you have a Java Runtime Environment (JRE) installed on your system. GeoWebCache requires a Java 17 or Java 21 environment.
1012

1113
* Required: Java Development Kit 17 (JDK 17)
1214

@@ -27,12 +29,18 @@ Java
2729
# Select Java for use
2830
sdk use java 17<tab>
2931
32+
See :doc:`/installation/upgrading` for compatibility table.
33+
3034
Apache Tomcat
31-
^^^^^^^^^^^^^
35+
-------------
3236

3337
GeoWebCache requires Apache Tomcat 9 required for JavaEE environment.
3438

35-
*
39+
1. Navigate to `Tomcat 9 <https://tomcat.apache.org/download-90.cgi>`_ **Downloads** section, and save the ``zip`` file listed under **Binary Distributions / Core**.
40+
41+
* Tomcat 9 Required: GeoWebCache uses the JavaEE environment last supported in Tomcat 9.
42+
43+
* Tomcat 10 Unsupported: GeoWebCache is not yet compatibile with the JakartaEE environment used by Tomcat 10 and newer.
3644

3745
* SDKMan!
3846

documentation/en/user/source/installation/prerequisites/windows.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Windows
66
Java Runtime Environment
77
------------------------
88

9+
Make sure you have a Java Runtime Environment (JRE) installed on your system. GeoWebCache requires a Java 17 or Java 21 environment.
10+
911
1. Download an OpenJDK release for your platform:
1012

1113
* https://adoptium.net/temurin/releases/?version=11 Temurin 11 (LTS) (Recommended)
@@ -15,6 +17,8 @@ Java Runtime Environment
1517
* Updating the JAVA_HOME environment variable
1618
* Add the installation to the PATH environment variable
1719

20+
See :doc:`/installation/upgrading` for compatibility table.
21+
1822
Apache Tomcat
1923
-------------
2024

@@ -30,7 +34,7 @@ Apache Tomcat
3034
Note that this resource is shared among all servlets running in the container, so if you add more servlets later you may have to adjust this number.
3135

3236
Access Control
33-
--------------
37+
^^^^^^^^^^^^^^
3438

3539
If you wish to use Tomcat's web administration tool, you will need to create an account for the administrator.
3640

@@ -44,7 +48,7 @@ Do this by opening the :file:`conf\tomcat-users.xml` file in from your Tomcat Pr
4448
Replace ``s3cret`` with your actual password. After making this change you will have to restart Tomcat.
4549

4650
Controlling Tomcat
47-
------------------
51+
^^^^^^^^^^^^^^^^^^
4852

4953
By default, Tomcat will now start automatically with your computer. You can modify this by going through the :menuselection:`Control Panel -> Administrative Tools -> Services`, and editing the settings for the **Apache Tomcat** service.
5054

documentation/en/user/source/installation/upgrading.rst

Lines changed: 52 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,53 @@
11
.. _upgrading:
22

3-
Upgrading from a pre 1.15 release
4-
=================================
3+
Upgrading
4+
=========
55

6-
In 1.15 GeoWebCache changed to work on Java 9 and higher. This included several changes to package names to avoid splitting packages across modules. If you used any of the following classes in plugins, while emebdding GWC in a larger application, or using modified application contexts, you will need to make the follwing changes.
6+
1. Before you start:
7+
8+
* Make a note of any customizations made to geowebcache :file:`WEB-INF` folder.
9+
10+
.. warning:: When updating, be sure to preserve any changes made to :file:`WEB-INF/geowebcache-core-context.xml` or :file:`WEB-INF/web.xml` as these files will be replaced during the upgrading process.
11+
12+
* To maintain cache location, follow the :ref:`configuration.file` instructions to define ``GEOWEBCACHE_CACHE_DIR`` and the location of :file:`geowebcache.xml` configuration.
13+
14+
2. Stop Tomcat, follow the installation instructions to download and install the latest GeoWebCache version.
15+
16+
Deploying a new version of GeoWebCache will replace :file:`<tomcat dir>/webapps/geowebcache` folder.
17+
18+
3. Re-apply any customizations made to the :file:`WEB-INF` folder.
19+
20+
4. Start tomcat
21+
22+
Java Compatibility
23+
------------------
24+
25+
GeoWebCache is compiled with Java 17 (LTS) and tested with Java 17 LTS and Java 21 LTS.
26+
27+
============ ================= ================ ================ ==================
28+
Java Initial Required Final Tested
29+
============ ================= ================ ================ ==================
30+
Java 21 LTS GeoWebCache 1.25 OpenJDK
31+
Java 17 LTS GeoWebCache 1.22 GeoWebCache 1.28 OpenJDK
32+
Java 11 LTS GeoWebCache 1.15 GeoWebCache 1.22 GeoWebCache 1.27 OpenJDK
33+
Java 8 LTS GeoWebCache 1.9 GeoWebCache 1.9 GeoWebCache 1.22 Oracle and OpenJDK
34+
============ ================= ================ ================ ==================
35+
36+
GeoWebCache 1.18 Update
37+
-----------------------
38+
39+
Java 17 Minimum
40+
^^^^^^^^^^^^^^^
41+
42+
GeoWebCache 1.18 is now compiled with Java 17 LTS, and is tested with Java 17 LTS and Java 21 LTS.
43+
44+
GeoWebCache 1.15 Update
45+
-----------------------
46+
47+
Java 9 Minimum
48+
^^^^^^^^^^^^^^
49+
50+
In 1.15 GeoWebCache changed to work with Java 9 or higher, with Java 11 LTS recommended. This included several changes to package names to avoid splitting packages across modules. If you used any of the following classes in plugins, while emebdding GWC in a larger application, or using modified application contexts, you will need to make the follwing changes.
751

852
+----------------+---------------------------------------+-------------------------------------------+
953
| Module | ≤ 1.14 | ≥ 1.15 |
@@ -38,8 +82,11 @@ In 1.15 GeoWebCache changed to work on Java 9 and higher. This included several
3882
+----------------+---------------------------------------+-------------------------------------------+
3983

4084

41-
Upgrading from a pre 1.4 release
42-
================================
85+
GeoWebCache 1.4.0 Update
86+
------------------------
87+
88+
File Blob Store replaces metastore
89+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4390

4491
Starting with GeoWebCache 1.4.0 the metastore support has been removed and all its functionality has been moved to the file blob store, including support for tile expiration based on creatin date and request parameter handling.
4592

documentation/en/user/source/quickstart/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ All servers conforming to the `OGC Web Map Service specification <http://www.ope
1212
View preconfigured layers
1313
-------------------------
1414

15-
GeoWebCache comes preconfigured with three layers. To view them, navigate to your GeoWebCache demo page at ``http://GEOWEBCACHE_URL/demo`` (often this is ``http://localhost:8080/geowebcache/demo``). Click on any of the links next to the :guilabel:`OpenLayers` column.
15+
GeoWebCache comes preconfigured with three layers from a default GeoServer install which may be installed alongside GeoNetwork. To view them, navigate to your GeoWebCache demo page at ``http://localhost:8080/geowebcache/demo``. Click on any of the links next to the :guilabel:`OpenLayers` column.
1616

17-
These layers are all served by the WMS available at ``http://demo.opengeo.org/geoserver/``.
17+
These layers are all served by the WMS available at ``http://localhost:8080/geowebcache/``.
1818

1919
.. list-table::
2020
:header-rows: 1
@@ -29,14 +29,14 @@ These layers are all served by the WMS available at ``http://demo.opengeo.org/ge
2929
* - **topp:states**
3030
- topp:states
3131

32-
.. note:: This information is set in the :file:`geowebcache.xml` file, which is typically available at :file:`opt/apache-tomcat-6.0.29/webapps/geowebcache/WEB-INF/classes` or :file:`C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0.29\\webapps\\geowebcache\\WEB-INF\\classes`. See the section on :ref:`configuration.layers` for more information on customizing this file.
32+
.. note:: This information is set in the :file:`geowebcache.xml` file, which is typically available at :file:`webapps/geowebcache/WEB-INF/classes`. See the section on :ref:`configuration.layers` for more information on customizing this file.
3333

3434
.. _quickstart.wms:
3535

3636
View layers from a WMS
3737
----------------------
3838

39-
The file :file:`geowebcache-core-context.xml` is a configuration file controling how the application is loaded. It is located inside the WEB-INF folder, typically :file:`/opt/apache-tomcat-6.0.29/webapps/geowebcache/WEB-INF/` or :file:`C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0.29\\webapps\\geowebcache\\WEB-INF` along with several other configuration files.
39+
The file :file:`geowebcache-core-context.xml` is a configuration file controling how the application is loaded. It is located inside the WEB-INF folder, typically :file:`webapps/geowebcache/WEB-INF/` along with several other configuration files.
4040

4141
#. Open :file:`geowebcache-core-context.xml` in a text editor.
4242

@@ -52,7 +52,7 @@ The file :file:`geowebcache-core-context.xml` is a configuration file controling
5252

5353
.. code-block:: xml
5454
55-
<constructor-arg value="http://localhost:8282/geoserver/wms?request=getcapabilities&amp;version=1.1.0&amp;service=wms" />
55+
<constructor-arg value="http://localhost:8080/geoserver/wms?request=getcapabilities&amp;version=1.1.0&amp;service=wms" />
5656
5757
#. Replace the value with a URL pointing to a valid WMS capabilities document, such as:
5858

0 commit comments

Comments
 (0)