Bad service configuration file, or exception thrown while constructing Processor object

后端 未结 4 1849
难免孤独
难免孤独 2021-02-20 06:23

I am writing a simple custom annotation in Java and running into a problem with it. Here is the main parts of my code.

LogMeCustomAnnotation.java

4条回答
  •  渐次进展
    2021-02-20 06:46

    I've encountered this error, in particular

    Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider com.iviz.schemarestriction.processor.SchemaRestrictionCompilationProcessor could not be instantiated
    

    when migrating maven project from JDK 1.8 (1.8.0_201) to OpenJDK 11(11.0.2).

    It was fixed by adding dependency on (2.3.1 was the latest stable version)

    
        javax.xml.bind
        jaxb-api
        2.3.1
    
    

提交回复
热议问题