Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-2121

Can't use jena-core, jena-iri in modular runtime-image

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • Core, IRI
    • None
    • Java 11

    Description

      Hello,

      I'm trying to create a runtime-image to distribute an Java 11 application which is using jena-core and jena-iri using jlink but jlink command give me error "automatic module cannot be used with jlink: org.apache.jena.core".

      So I use moditect-maven-plugin to fix this error, this plugin consists of adding module descriptors to existing JAR files, and I created module descriptors of jena-core and jena-iri using jdeps command-line tool. This fix my error with jlink but now I have an error when launching the runtime-image: "java.util.ServiceConfigurationError: org.apache.jena.sys.JenaSubsystemLifecycle: module org.apache.jena.core does not declare 'uses' ".

      My guess is the solution should be adding a complete module-info.java file in jena modules.

      Here is a minimal project showing the problem : https://github.com/Trobiun/JenaSample

      Attachments

        1. module-info.java
          3 kB
          Robin Tissot

        Activity

          People

            Unassigned Unassigned
            Trobiun Robin Tissot
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: