sdaschner / jaxrs-analyzer-maven-plugin

Maven plugin for the JAX-RS Analyzer
Apache License 2.0
91 stars 38 forks source link

java.lang.ClassFormatError javax/ejb/ConcurrencyManagementType with 0.16 #46

Open Napfton opened 7 years ago

Napfton commented 7 years ago

Hi,

just tried to run the maven plugin on my Java EE project, always getting this error:

Failed to execute goal com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.16:analyze-jaxrs (default) on project -web: Execution default of goal com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.16:analyze-jaxrs failed: An API incompatibility was encountered while executing com.sebastian-daschner:jaxrs-analyzer-maven-plugin:0.16:analyze-jaxrs: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/ejb/ConcurrencyManagementType

Any ideas how to solve this?

Thanks in advance!

sdaschner commented 6 years ago

Hi, Sorry for the late response. It looks like you have some code generation / byte code manipulation process in place? Do you use any special tools as part of your build?

Napfton commented 6 years ago

Yeah, we have OpenJPA enhancer plugin running. Without it, it worked. Will it be working anyday in the future with these kind of plugins?

sdaschner commented 6 years ago

Hard to say TBH... It depends what the enhancer does with the Bytecode.

How does your build / plugin configuration look like? Maybe as a workaround, Maven profiles would help...?

Napfton commented 6 years ago

Profiles are not an option. I Used an older version btw of your plugin, which worked even with the enhancer. The funny thing is: OpenJPA enhance maven plugin only touches Entities, but they are not part of the REST API (that rest API is completely detached from our database)