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

Vicente-Arturo Romero-Zaldivar vicente.romero at oracle.com
Mon Feb 8 18:38:49 UTC 2016

Hi Gunnar,

Thanks for the report and sorry to hear that you are experiencing this 
issue. Could you please send us a reduced version of the failing 
annotation processor that reproduces the issue?


On 02/08/2016 08:16 AM, Gunnar Morling wrote:
> Hi,
> 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?
> Thanks,
> --Gunnar

More information about the compiler-dev mailing list