Skip to content

Commit ec0a1a0

Browse files
authored
Merge pull request #12240 from QualitativeDataRepository/WEB-INF/payara_files
Replace deprecated glassfish files with payara-* files in WEB-INF
2 parents 6108e3a + a66802b commit ec0a1a0

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/main/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ FROM $BASE_IMAGE
3030
ENV MP_CONFIG_PROFILE=ct
3131

3232
# Workaround to configure upload directories by default to useful place until we can have variable lookups in
33-
# defaults for glassfish-web.xml and other places.
33+
# defaults for payara-web.xml and other places.
3434
ENV DATAVERSE_FILES_UPLOADS="${STORAGE_DIR}/uploads"
3535
ENV DATAVERSE_FILES_DOCROOT="${STORAGE_DIR}/docroot"
3636

src/main/resources/META-INF/microprofile-config.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ dataverse.build=
1010

1111
# FILES
1212
# NOTE: The following uses STORAGE_DIR for both containers and classic installations. When defaulting to
13-
# "com.sun.aas.instanceRoot" if not present, it equals the hardcoded default "." in glassfish-web.xml
13+
# "com.sun.aas.instanceRoot" if not present, it equals the hardcoded default "." in payara-web.xml
1414
# (which is relative to the domain root folder).
15-
# Also, be aware that this props file cannot provide any value for lookups in glassfish-web.xml during servlet
15+
# Also, be aware that this props file cannot provide any value for lookups in payara-web.xml during servlet
1616
# initialization, as this file will not have been read yet! The names and their values are in sync here and over
1717
# there to ensure the config checker is able to check for the directories (exist + writeable).
1818
dataverse.files.directory=${STORAGE_DIR:/tmp/dataverse}

src/main/webapp/WEB-INF/glassfish-resources.xml renamed to src/main/webapp/WEB-INF/payara-resources.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd">
2+
<!DOCTYPE resources PUBLIC "-//Payara.fish//DTD Payara Server 7 Resource Definitions//EN" "https://raw.githubusercontent.com/payara/Payara-Documentation/main-7/docs/modules/ROOT/pages/Appendix/Schemas/payara-resources_1_8.dtd">
33
<resources>
44
<!-- This executor is used in edu.harvard.iq.dataverse.dataaccess.S3AccessIO to support asynchronous operations -->
5-
<custom-resource res-type="javax.enterprise.concurrent.ManagedExecutorService"
5+
<custom-resource res-type="jakarta.enterprise.concurrent.ManagedExecutorService"
66
jndi-name="java:app/env/concurrent/s3UploadExecutor"
77
factory-class="org.glassfish.resources.custom.factory.ManagedExecutorServiceFactory">
88
<property name="threadPriority" value="5"/>
@@ -12,7 +12,7 @@
1212
<property name="threadLifeTime" value="3600"/>
1313
</custom-resource>
1414
<!-- Managed Executor Service for Citation Updates -->
15-
<custom-resource res-type="javax.enterprise.concurrent.ManagedExecutorService"
15+
<custom-resource res-type="jakarta.enterprise.concurrent.ManagedExecutorService"
1616
jndi-name="java:app/env/concurrent/CitationUpdateExecutor"
1717
factory-class="org.glassfish.resources.custom.factory.ManagedExecutorServiceFactory">
1818
<property name="corePoolSize" value="1"/>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
3-
<glassfish-web-app error-url="">
2+
<!DOCTYPE payara-web-app PUBLIC "-//Payara.fish//DTD Payara Server 7.2026.2//EN" "https://raw.githubusercontent.com/payara/Payara-Documentation/main-7/docs/modules/ROOT/pages/Appendix/Schemas/payara-web-app_6_1-0.dtd">
3+
<payara-web-app error-url="">
44
<context-root>/</context-root>
55
<class-loader delegate="true"/>
66
<jsp-config>
@@ -24,4 +24,4 @@
2424
<!-- NOTE: As we cannot use variables in defaults of ${MPCONFIG}, there is a workaround for containers necessary;
2525
see src/main/docker/Dockerfile. Once Payara upstream fixes this, we can use STORAGE_DIR here. -->
2626
<property name="tempdir" value="${MPCONFIG=dataverse.files.uploads:./uploads}"/>
27-
</glassfish-web-app>
27+
</payara-web-app>

0 commit comments

Comments
 (0)