-
Notifications
You must be signed in to change notification settings - Fork 535
6819 - Include PostgreSQL JDBC driver in WAR #7048
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
Closed
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
4c5a940
Include the PostgreSQL JDBC driver in pom.xml as a dependency. #6819
poikilotherm 9f97abe
Remove any stale references about installing, copying, moving, ... of…
poikilotherm 9e7751d
Merge branch 'develop' into 6819-include-postgres
poikilotherm 9e7de2e
Remove obsolete driver package in codebase of installer. #6819
poikilotherm 7ed1de7
Remove installation of Postgres driver from the old Perl installer, t…
poikilotherm e90d9e7
Provide @DataSourceDefinition for app-level DB config. #6819
poikilotherm 0aaac25
Cleanup installer, code and docs relying on the DB connection. #6819
poikilotherm c2e00fd
Merge branch 'develop' into 6819-include-postgres
poikilotherm 795b02f
Make the DataSourceDefinition configureable using MicroProfile Config…
poikilotherm 1052985
Make installer use the new system properties for database connection …
poikilotherm 2e6b6f9
Merge branch 'develop' into 6819-include-postgres
poikilotherm 3d2d98a
Switch to complete MPCONFIG style of DataSourceDefinition by requirin…
poikilotherm 550d37f
Add defaults for the database connection using a MicroProfile Config …
poikilotherm 12780b1
Merge branch 'develop' into 6819-include-postgres
poikilotherm ae790a4
Require Payara 5.2020.5, including release note about updating.
poikilotherm 1075ab4
Add new properties to install docs plus add release notes how to upda…
poikilotherm aedd5df
Minor tweaks to docs and release note. #6819
poikilotherm 7a1c7a7
Release notes: let people update the EJB timer database connection on…
poikilotherm 454be3d
Merge branch 'develop' into 6819-include-postgres
poikilotherm 7a668f5
Update doc/release-notes/6819-update-db-conn.md
poikilotherm 446581b
Include microprofile-config.properties in WAR. #6819
poikilotherm 3c8f3d1
Merge branch 'develop' into 6819-include-postgres
poikilotherm d97b6ee
Fix typo in release notes about deleting the JDBC pool. #6819
poikilotherm dfd39b1
Update release docs for upgrading, enhanced with the DB mangling. #6819
poikilotherm 93d3b6a
Merge release notes about Payara update and DB connection. Emphasize …
poikilotherm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| ## Easier Configuration of Database Connections | ||
|
|
||
| Dataverse now being able to use up-to-date Java technologies, transforms | ||
| the way how to configure the connection to your PostgreSQL database. | ||
|
|
||
| In the past, the configuration of the connection has been quite static | ||
| and not very easy to update. This has been an issue especially for cloud | ||
| and container usage. | ||
|
|
||
| Using MicroProfile Config API, you can much more easily deposit configuration | ||
| details. For an overview of supported options, please see the | ||
| [installation guide](https://guides.dataverse.org/en/5.2/installation/config.html#jvm-options). | ||
|
|
||
| ## Update to Payara Platform 5.2020.5 | ||
|
|
||
| In contrast to good old Glassfish 4, the Payara application server | ||
| is a maintained product, receiving both feature and - more important - | ||
| security and dependent technology updates. You should update the | ||
| application server platform on a regular basis, as it is a key component | ||
| of a running Dataverse deployment. | ||
|
|
||
| 🚨 THIS VERSION OF DATAVERSE **REQUIRES** UPGRADING TO PAYARA 5.2020.5. 🚨 | ||
|
|
||
| Some bugs related to the new database connection configuration via MicroProfile Config | ||
| have been fixed. You will run into troubles when not upgrading. | ||
|
|
||
| Instructions how to update can be found in the | ||
| [Payara documentation](https://docs.payara.fish/community/docs/5.2020.5/documentation/user-guides/upgrade-payara.html) | ||
|
|
||
| ## Upgrading from earlier releases | ||
|
|
||
| ℹ️ You need to update the Payara Application Server before continuing here. See above. | ||
|
|
||
| 1. Undeploy the previous version. | ||
| ``` | ||
| <payara install path>/asadmin list-applications | ||
| <payara install path>/asadmin undeploy dataverse-<version> | ||
| ``` | ||
|
|
||
| (where `<payara install path>` is where Payara 5 is installed, for example: `/usr/local/payara5`) | ||
|
|
||
| 2. Update your database connection before updating. | ||
|
|
||
| Please configure your connection details, replacing all the `${DB_...}`. | ||
| (If you are using a PostgreSQL server on `localhost:5432`, you can omit `dataverse.db.host` and `dataverse.db.port`.) | ||
|
|
||
| ``` | ||
| <payara install path>/asadmin create-system-properties "dataverse.db.user=${DB_USER}" | ||
| <payara install path>/asadmin create-system-properties "dataverse.db.host=${DB_HOST}" | ||
| <payara install path>/asadmin create-system-properties "dataverse.db.port=${DB_PORT}" | ||
| <payara install path>/asadmin create-system-properties "dataverse.db.name=${DB_NAME}" | ||
|
|
||
| echo "AS_ADMIN_ALIASPASSWORD=${DB_PASS}" > /tmp/password.txt | ||
| <payara install path>/asadmin create-password-alias --passwordfile /tmp/password.txt dataverse.db.password | ||
| rm /tmp/password.txt | ||
| ``` | ||
|
|
||
| After switching EJB timers to the new data source, you are safe to delete the old alias and DB pool: | ||
| ``` | ||
| <payara install path>/asadmin set configs.config.server-config.ejb-container.ejb-timer-service.timer-datasource=java:global/jdbc/dataverse | ||
| <payara install path>/asadmin delete-jdbc-connection-pool --cascade=true dvnDbPool | ||
| <payara install path>/asadmin delete-password-alias db_password_alias | ||
| ``` | ||
|
|
||
| 3. Stop payara and remove the generated directory, start. | ||
| ``` | ||
| service payara stop | ||
| # remove the generated directory: | ||
| rm -rf <payara install path>/payara/domains/domain1/generated | ||
| service payara start | ||
| ``` | ||
|
|
||
| 3. Deploy this version. | ||
| ``` | ||
| <payara install path>/bin/asadmin deploy dataverse-5.2.war | ||
| ``` | ||
|
|
||
| 4. Restart Payara | ||
| ``` | ||
| service payara stop | ||
| service payara start | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.