Closed satb closed 8 years ago
It could be due to some missing dependency in that phase, so it could be related to both the contents of your class and some class it depends on (some imports). I'd say that the jaxrs plugin probably introduces some dependencies (possibly a new version of an artifact you already depend upon) that misses some code indirectly needed by your class.
You could add -verbose:class
to your java opts in order to log classloading events, i.e.
export GRAILS_OPTS="$GRAILS_OPTS -verbose:class"
Or even better you could debug to see the cause of the NoClassDefFoundError
. As you said it is related to class loading, and should happen when the classloader is loading RexProClientFilter
, but since the JVM doesn't give use more details, I guess the best way to find the cause is debugging.
This issue was moved to budjb/grails-jaxrs#12
Adding this plugin is throwing an error like this
Without the plugin everything works fine and the same class can be loaded without a problem. What could be wrong?
Using grails 2.3
Build.config is very simple
Simply commenting out the jaxrs: 0.10 will cause the loading problem to go away. Is it a class loader issue?