Gunnar,

cross-posting to jigsaw-dev.

Can you describe more about the setup of this example? Is the processor in a module with a module declaration with a provides clause for the processor, or is it a "pre-Jigsaw"/"JDK8-style" processor with a service configuration file in a jar file's META-INF directory?

If it's "old-style" you should be able to use -processorpath, as before.

-- Jon


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

Reply via email to