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

Reworked profiles section for building deegree-webservices WAR file #1447

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

tfr42
Copy link
Member

@tfr42 tfr42 commented Dec 30, 2022

This PR removes unused and outdated profiles, adapts existing profile for oracle to use same dependencies as root pom, and adds a profile for mssql to add the sqldialect JAR to WAR file if enabled.

For Oracle and MS SQL Server the JDBC drivers are NOT added to the WEB-INF/lib directory on purpose. Please note the explanations in https://download.deegree.org/documentation/current/html/#anchor-configuration-javamodules. The documentation may contain the following explanation:

The considerations to put JDBC driver JAR files into $CATALINA_HOME/lib directory are that JDBC drivers register themselves in the JVM-wide singleton DriverManager which is shared by all web apps inside of a Tomcat/JVM instance. The class DriverManager gets loaded by the bootstrap classloader and thereby "lives" globally in the JVM, while Tomcat loads all web apps in their own classloaders. So if a JDBC driver from a web app's WEB-INF/lib folder registers itself in DriverManager, it pins that web app's classloader in memory (and thereby all the classes of that web app), preventing its garbage collection when stopped and undeployed.

…acle to use same dependencies as root pom, and added profile for mssql to add sqldialect to war if enabled.
@tfr42 tfr42 added enhancement enhancement or improvement CI and build CI and build system modules deegree sub-modules labels Dec 30, 2022
@tfr42 tfr42 added this to the 3.5 milestone Dec 30, 2022
@copierrj copierrj merged commit 86bbe91 into deegree:main Jan 11, 2023
@lgoltz lgoltz deleted the cleanUpProfilesForWebservices branch August 17, 2023 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI and build CI and build system enhancement enhancement or improvement modules deegree sub-modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants