[Jigsaw] Getting "Bad service configuration file" error with annotation processor

Gunnar Morling gunnar at hibernate.org
Mon Feb 8 16:16:34 UTC 2016


I'm looking into building one of the Hibernate projects, Hibernate
Validator, using the Jigsaw-enabled early access build 104.

The build uses an annotation processor, which causes the following error:

    "Bad service configuration file, or exception thrown while
constructing Processor object: javax.annotation.processing.Processor:
Provider org.jboss.logging.processor.apt.LoggingToolsProcessor could
not be instantiated"

The the processor is added via the "-processormodulepath" option.
Unfortunately, javac doesn't provide any further context information
other than this short error.

I tried adding "-verbose" to the javac invocation, but that didn't
give me any further information. I also tried to invoke the processor
programmatically using the JSR 199 compiler API, but that resulted in
a NoClassDefFoundError: javax/tools/DiagnosticListener.

The processor works as expected with the non-Jigsaw build 104.

Does anyone have an idea of what I could do to to reveal what's the
problem here?



More information about the compiler-dev mailing list