From dc80c62494543cfd20bedbce1036a147c5713a55 Mon Sep 17 00:00:00 2001 From: Alan Kyffin Date: Mon, 23 Oct 2023 12:15:52 +0100 Subject: [PATCH] Enable EclipseLink Oracle extension --- roles/payara/tasks/main.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/roles/payara/tasks/main.yml b/roles/payara/tasks/main.yml index 3a87b4e..24e1348 100644 --- a/roles/payara/tasks/main.yml +++ b/roles/payara/tasks/main.yml @@ -185,19 +185,23 @@ when: install_ojdbc11_jar | bool notify: payara-handler -- name: 'Create domain lib/ext directory' +- name: 'Create symlink to ojdbc11.jar' file: - state: directory - path: '{{ payara_domain_dir }}/lib/ext' + src: /usr/local/share/java/ojdbc11-{{ ojdbc11_jar_version }}.jar + path: '{{ payara_domain_dir }}/lib/ojdbc11.jar' + state: link owner: '{{ payara_user }}' group: '{{ payara_user_group }}' + follow: no + force: yes when: install_ojdbc11_jar | bool notify: payara-handler -- name: 'Create symlink to ojdbc11.jar' +# The EclipseLink Oracle extension has to be in the same place as the OJDBC driver, since they must be loaded at the same time. +- name: 'Create symlink to org.eclipse.persistence.oracle.jar' file: - src: /usr/local/share/java/ojdbc11-{{ ojdbc11_jar_version }}.jar - path: '{{ payara_domain_dir }}/lib/ext/ojdbc11.jar' + src: '{{ payara_dir }}/glassfish/modules/org.eclipse.persistence.oracle.jar' + path: '{{ payara_domain_dir }}/lib/org.eclipse.persistence.oracle.jar' state: link owner: '{{ payara_user }}' group: '{{ payara_user_group }}'