[RTFACT-15061] Artifactory can't run on Java 9 Created: 03/Oct/17  Updated: 15/Nov/18  Resolved: 05/Sep/18

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Tomcat
Affects Version/s: 5.5.1
Fix Version/s: 6.4.0

Type: Bug Priority: Normal
Reporter: Aviv Blonder Assignee: Yossi Shaul
Resolution: Fixed Votes: 3
Labels: None

Issue Links:
depends on RTFACT-16667 Include JAXB and Activation in Artifa... Resolved


To reproduce:
Install Java 9 and run Artifactory.

The error:

-Djava.endorsed.dirs=C:\Users\schang8.DIR\Desktop\jfrog-artifactory-pro-5.4.6\artifactory-pro-5.4.6\bin\..\tomcat\endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

It seems that "Java Endorsed Standards Override Mechanism" has been deprecated in Java 9. Read JDK 9 migration guide for more info:

Comment by Eldad Assis [ 30/Jul/18 ]

I was able to get Artifactory PRO fully working in an OpenJDK 10 Docker container with the following two changes:

  • Add `--add-modules java.xml.bind` to JAVA_OPTIONS in ${ARTIFACTORY_HOME}/bin/artifactory.default
  • Remove WEB-INF/lib/jsr250-api-1.0.jar from ${ARTIFACTORY_HOME}/webapps/artifactory.war

Yoav Landman, Yossi Shaul - do you think we can add these changes permanently to current version and enjoy the forward compatibility?

Generated at Wed Aug 12 01:49:17 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.