[jira] [Commented] (KARAF-3518) JDK9: endorsed directories not working any longer
[ https://issues.apache.org/jira/browse/KARAF-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881028#comment-16881028 ] Christian Brüssow commented on KARAF-3518: -- There is a check in the $KARAF_HOME/bin/karaf and karaf.bat, but as far as I can tell the service-wrapper uses its own configuration file and does not use these scripts. E.g. under Linux the same Karaf can be started via the start.sh script, but will fail with the error described in this ticket, when one tries to start it via systemctl start .service > JDK9: endorsed directories not working any longer > - > > Key: KARAF-3518 > URL: https://issues.apache.org/jira/browse/KARAF-3518 > Project: Karaf > Issue Type: Bug > Components: karaf >Affects Versions: 4.0.0.M3 > Environment: OS X, > java version "1.9.0-ea" > Java(TM) SE Runtime Environment (build 1.9.0-ea-b49) > Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b49, mixed mode) >Reporter: Achim Nierbeck >Assignee: Jean-Baptiste Onofré >Priority: Major > Labels: java9 > Fix For: 4.3.0, 4.2.7 > > > following message is caught with JDK 1.9: > {code} > -Djava.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/jre/lib/endorsed:/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/lib/endorsed:/Users/anierbeck/Development/server/apache-karaf-4.0.0.M2/lib/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. > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KARAF-3518) JDK9: endorsed directories not working any longer
[ https://issues.apache.org/jira/browse/KARAF-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881018#comment-16881018 ] Jean-Baptiste Onofré commented on KARAF-3518: - I thought I fixed it already (with condition test). Let me double check. > JDK9: endorsed directories not working any longer > - > > Key: KARAF-3518 > URL: https://issues.apache.org/jira/browse/KARAF-3518 > Project: Karaf > Issue Type: Bug > Components: karaf >Affects Versions: 4.0.0.M3 > Environment: OS X, > java version "1.9.0-ea" > Java(TM) SE Runtime Environment (build 1.9.0-ea-b49) > Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b49, mixed mode) >Reporter: Achim Nierbeck >Priority: Major > Labels: java9 > > following message is caught with JDK 1.9: > {code} > -Djava.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/jre/lib/endorsed:/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/lib/endorsed:/Users/anierbeck/Development/server/apache-karaf-4.0.0.M2/lib/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. > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KARAF-3518) JDK9: endorsed directories not working any longer
[ https://issues.apache.org/jira/browse/KARAF-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881017#comment-16881017 ] Christian Brüssow commented on KARAF-3518: -- This issue also affects the OpenJ9 Java 11 JVM and Karaf 4.2.5 - as expected - and prohibits the start of Karaf via the service-wrapper. But we were able to start the service (MS Windows and systemd) by removing the line {code:java} wrapper.java.additional.1=-Djava.endorsed.dirs=...{code} in the $KARAF_HOME/etc/-wrapper.conf file. Should we open a separate ticket for the service-wrapper and the endorsed-libs property? > JDK9: endorsed directories not working any longer > - > > Key: KARAF-3518 > URL: https://issues.apache.org/jira/browse/KARAF-3518 > Project: Karaf > Issue Type: Bug > Components: karaf >Affects Versions: 4.0.0.M3 > Environment: OS X, > java version "1.9.0-ea" > Java(TM) SE Runtime Environment (build 1.9.0-ea-b49) > Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b49, mixed mode) >Reporter: Achim Nierbeck >Priority: Major > Labels: java9 > > following message is caught with JDK 1.9: > {code} > -Djava.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/jre/lib/endorsed:/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/lib/endorsed:/Users/anierbeck/Development/server/apache-karaf-4.0.0.M2/lib/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. > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KARAF-3518) JDK9: endorsed directories not working any longer
[ https://issues.apache.org/jira/browse/KARAF-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15693484#comment-15693484 ] Guillaume Nodet commented on KARAF-3518: I don't think we will be able to support deploy providers as OSGi bundles anymore and have them used automatically by the JVM through the usual APIs. The reason is that what we do in the {{apache-karaf}} distribution it to deploy hacked versions of the specs, however, there will be no apache licensed version of those specs that works with java 9 in the short term. What can be done is the following: * add a {{[KARAF_HOME]/lib/modules}} directory which will contain Java 9 modules * add those modules to the module path using {{--module-path}} option for javac * eventually export the packages from the system bundle The obviously remove some dynamism because the providers can't be deployed as OSGi bundles at runtime. If the client code supports it, some providers can be deployed as OSGi bundles instead, but the requirement will be for the client code to not use the usual factories to create instances of the providers, but to instantiate them directly. > JDK9: endorsed directories not working any longer > - > > Key: KARAF-3518 > URL: https://issues.apache.org/jira/browse/KARAF-3518 > Project: Karaf > Issue Type: Bug > Components: karaf-core, karaf-os-integration >Affects Versions: 4.0.0.M3 > Environment: OS X, > java version "1.9.0-ea" > Java(TM) SE Runtime Environment (build 1.9.0-ea-b49) > Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b49, mixed mode) >Reporter: Achim Nierbeck >Assignee: Guillaume Nodet > Labels: java9 > Fix For: 4.1.0 > > > following message is caught with JDK 1.9: > {code} > -Djava.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/jre/lib/endorsed:/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/lib/endorsed:/Users/anierbeck/Development/server/apache-karaf-4.0.0.M2/lib/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. > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (KARAF-3518) JDK9: endorsed directories not working any longer
[ https://issues.apache.org/jira/browse/KARAF-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379324#comment-15379324 ] Sanne Grinovero commented on KARAF-3518: I am not a Karaf expert so can't tell for sure, but I suspect you could use the modules system as a better replacement for the endorsed libraries. Depending on specific needs, you might not want to replace the libraries from the JDK, but have the platform use its own version and Karaf use the version of your choice, having these nicely isolated. Alternatively if you need to replace the ones from the platform, the modules system provides options for that case as well although that's probably a less desirable way as it would impact all other libraries running on Karaf too, while the point of the modules is to allow each library to make its own choices. Unfortunately I can't help developing this as I'm not familiar with the reasons for Karaf to use endorsed libraries, but I'd be happy to test any experimental branch or patch with our testsuite too. > JDK9: endorsed directories not working any longer > - > > Key: KARAF-3518 > URL: https://issues.apache.org/jira/browse/KARAF-3518 > Project: Karaf > Issue Type: Bug > Components: karaf-core, karaf-os-integration >Affects Versions: 4.0.0.M3 > Environment: OS X, > java version "1.9.0-ea" > Java(TM) SE Runtime Environment (build 1.9.0-ea-b49) > Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b49, mixed mode) >Reporter: Achim Nierbeck > Labels: java9 > Fix For: 4.1.0 > > > following message is caught with JDK 1.9: > {code} > -Djava.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/jre/lib/endorsed:/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/lib/endorsed:/Users/anierbeck/Development/server/apache-karaf-4.0.0.M2/lib/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. > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (KARAF-3518) JDK9: endorsed directories not working any longer
[ https://issues.apache.org/jira/browse/KARAF-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14327251#comment-14327251 ] Guillaume Nodet commented on KARAF-3518: If I understand the error message correctly, endorsed libraries are not supported anymore, but there's no replacement mechanism defined yet, so I don't think we can do anything at the moment. > JDK9: endorsed directories not working any longer > - > > Key: KARAF-3518 > URL: https://issues.apache.org/jira/browse/KARAF-3518 > Project: Karaf > Issue Type: Bug > Components: karaf-core, karaf-os-integration >Affects Versions: 4.0.0 > Environment: OS X, > java version "1.9.0-ea" > Java(TM) SE Runtime Environment (build 1.9.0-ea-b49) > Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b49, mixed mode) >Reporter: Achim Nierbeck > Labels: java9 > > following message is caught with JDK 1.9: > {code} > -Djava.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/jre/lib/endorsed:/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/lib/endorsed:/Users/anierbeck/Development/server/apache-karaf-4.0.0.M2/lib/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. > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)