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

Enable the EclipseLink Oracle extension #99

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions roles/payara/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand Down