[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:
Dependency
depends on RTFACT-16667 Include JAXB and Activation in Artifa... Resolved
Relationship

 Description   

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:
https://docs.oracle.com/javase/9/migrate/toc.htm#JSMIG-GUID-8E83E51A-88A3-4E9A-8E2A-66E1D66A966C
https://docs.oracle.com/javase/8/docs/technotes/guides/standards/index.html



 Comments   
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 Tue Jul 23 01:25:01 UTC 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.