Java 11 Unable to derive module descriptor

前端 未结 2 1293
-上瘾入骨i
-上瘾入骨i 2020-11-30 15:10

I am getting this error message when I try to compile my new modularized Java 11 application:

Error occurred during initialization of boot layer
java.lang.mo         


        
相关标签:
2条回答
  • 2020-11-30 15:34

    I had a look at their bug tracker following their index page and wasn't able to find this reported and not sure how actively is the library being maintained either.

    Just to explain what has caused the issue in your code, I would share a screenshot and then try to add details around it.

    So within the JAR that for version 2.7.2, there are service declarations (META-INF/services) which include org.apache.xalan.extensions.bsf.BSFManager as one of them. The service file here has to indicate the Provider thereby for itself and the class is supposed to be present(modulepath or unnamed module) to be resolved for reliable configuration of modules.

    In this case for the module xalan(automatic module), the service listed doesn't have the provider class packaged within the dependency itself. (See the package org.apache, it doesn't further have package bsf and the class BSFManager thereby. Hence the exception as you get.

    One of the tweaks to get that resolved would be to get update the library jar (patch it) and get rid of the service file if you're not using it.

    An ideal way would be reporting this to the maintainers and getting it resolved if they are actively maintaining it (the last release was almost 5 years back, might just want to look for a better alternative IMHO).

    0 讨论(0)
  • 2020-11-30 15:52

    I tried to install update for TestNG in eclipse: "Help -> Check for updates -> deselect all and select TestNG check box. Then
    install latest version i installed the version which starts with 7.2.0.

    It fixed the issue for me.

    0 讨论(0)
提交回复
热议问题