Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating tomcat and java versions for binary package #10446

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

tdipisa
Copy link
Member

@tdipisa tdipisa commented Jun 27, 2024

Description

This PR updates the binary package to Java 11.0.22 and Tomcat 9.0.90.
Some typos have been also corrected.

The updated JRE tar.gz to be used for review is available here at the moment and it will need to be moved here (don't replace the current one) . @randomorder a new different link should be created for this so that the build of older versions can continue using the current java version.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?

#10444

What is the new behavior?

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@offtherailz please note that due to this 12 tomcat lib files are not included. I'm wondering if it is really wanted. The build works well and the binary generated with the following command works as expected:

./build.sh "2024.01.02" "printing,binary,printingbundle"

@offtherailz please test also on linux using the JRE I've linked above.

@tdipisa tdipisa requested a review from offtherailz June 27, 2024 10:05
@tdipisa tdipisa self-assigned this Jun 27, 2024
@tdipisa tdipisa linked an issue Jun 27, 2024 that may be closed by this pull request
1 task
@tdipisa tdipisa added this to the 2024.01.02 milestone Jun 27, 2024
@tdipisa tdipisa added bug BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch labels Jun 27, 2024
@tdipisa tdipisa marked this pull request as ready for review June 27, 2024 10:22
@randomorder
Copy link
Member

Hi @tdipisa

jre_11_0_22.tar.gz is available here: https://www.dropbox.com/scl/fi/87kle0o7vezax6eu18f7a/jre_11_0_22.tar.gz?rlkey=gjp6ulyos97xbf9w94xlkxg2q&st=pznxo0r2&dl=1

image

@tdipisa
Copy link
Member Author

tdipisa commented Jul 8, 2024

@randomorder thank you so much. @offtherailz keep me posted on the progress, please.

@offtherailz
Copy link
Member

Hi @randomorder the file doesn't look to be corrupted #10446 (comment)

uncompress jre_11_0_22.tar.gz

gzip: jre_11_0_22.tar.gz: not in gzip format
offtherailz@tifa-nali-studio ~/Scaricati/test $ unzip jre_11_0_22.tar.gz
Archive:  jre_11_0_22.tar.gz
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of jre_11_0_22.tar.gz or
        jre_11_0_22.tar.gz.zip, and cannot find jre_11_0_22.tar.gz.ZIP, period.
(failed reverse-i-search)`tar -': unzip jre_11_0_22.^Cr.gz
offtherailz@tifa-nali-studio ~/Scaricati/test $ tar -xzvf jre_11_0_22.tar.gz 

gzip: stdin: not in gzip format
tar: Child returned status 1

@randomorder
Copy link
Member

@offtherailz
Copy link
Member

Things done:

Copy link
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the proxy is working with my changes and tests.
The only issue is that openjdk now is 160MB bigger.
Now it is 389MB. Old was 231 MB.

@@ -66,27 +66,32 @@
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
-->
<Connector port="8082" protocol="HTTP/1.1"
<Connector port="8080" protocol="HTTP/1.1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Connector port="8080" protocol="HTTP/1.1"
<Connector port="8082" protocol="HTTP/1.1"

Let's not change the port used by the binary for this update.

@@ -35,6 +35,6 @@ fi
sh "$CATALINA_HOME"/bin/"$EXECUTABLE" start "$@"
echo "Waiting for Tomcat start and MapStore2 deploy..."
sleep 4
echo "Point your browser to: http://localhost:8082/mapstore"
echo "Point your browser to: http://localhost:8080/mapstore"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "Point your browser to: http://localhost:8080/mapstore"
echo "Point your browser to: http://localhost:8082/mapstore"

@offtherailz offtherailz self-requested a review July 8, 2024 15:36
Copy link
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for me it works on linux

@tdipisa tdipisa merged commit 9a09381 into geosolutions-it:master Jul 8, 2024
6 checks passed
@tdipisa
Copy link
Member Author

tdipisa commented Jul 8, 2024

@ElenaGallo please check this on win once the build finish. @offtherailz then can I ask you to provide the backport please?

@ElenaGallo
Copy link
Contributor

Test passe, @offtherailz please backport to 2024.01.xx. Thanks

offtherailz added a commit to offtherailz/MapStore2 that referenced this pull request Jul 9, 2024
…#10446)

* Updating tomcat and java versions for binary package

* Fixed URL and java package

---------

Co-authored-by: Lorenzo Natali <[email protected]>
tdipisa added a commit that referenced this pull request Jul 9, 2024
* Updating tomcat and java versions for binary package

* Fixed URL and java package

---------

Co-authored-by: Tobia Di Pisa <[email protected]>
@tdipisa tdipisa removed the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proxy on binary do not look to work correctly.
4 participants