loic911 / Rest-api-doc

MIT License
21 stars 32 forks source link

Cannot run rest api doc : Caused by ClassNotFoundException: org.jsondoc.core.pojo.ApiObjectDoc #64

Open bocaralpha opened 9 years ago

bocaralpha commented 9 years ago

Error | 2015-10-13 11:41:13,015 [localhost-startStop-1] ERROR context.GrailsContextLoaderListener - Error initializing the application: org/jsondoc/core/pojo/ApiObjectDoc Message: org/jsondoc/core/pojo/ApiObjectDoc Line | Method ->> 17 | registerMarshallers in org.restapidoc.JSONUtils


| 13 | doCall in RestApiDocBootStrap$_closure1 | 327 | evaluateEnvironmentSpecificBlock in grails.util.Environment | 320 | executeForEnvironment in '' | 296 | executeForCurrentEnvironment . . in '' | 262 | run in java.util.concurrent.FutureTask | 1145 | runWorker . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 745 | run . . . . . . . . . . . . . . in java.lang.Thread Caused by ClassNotFoundException: org.jsondoc.core.pojo.ApiObjectDoc ->> 366 | run in java.net.URLClassLoader$1


| 355 | run in '' | 354 | findClass . . . . . . . . . . . in java.net.URLClassLoader | 425 | loadClass in java.lang.ClassLoader | 358 | loadClass . . . . . . . . . . . in '' | 17 | registerMarshallers in org.restapidoc.JSONUtils | 13 | doCall . . . . . . . . . . . . . in RestApiDocBootStrap$_closure1 | 327 | evaluateEnvironmentSpecificBlock in grails.util.Environment | 320 | executeForEnvironment . . . . . in '' | 296 | executeForCurrentEnvironment in '' | 262 | run . . . . . . . . . . . . . . in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run . . . . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker ^ 745 | run in java.lang.Thread

I use grails 2.4.3 and jdk 1.7.0_79

Please help me to fix this bug...

bocaralpha commented 9 years ago

Finally when i added the ressource plugin to the buildconfig i avoided this error but now i'm facing with a permgen error when i run the command => rest-api-doc Can someone tell me please if grails 2.4.3 is comptaible with the 0.6.1 version of rest api doc

loic911 commented 9 years ago

RestApiDoc works with Grails 2.4.3. It seems to be an issue with one dependencie.

Do you already have this issue?

bocaralpha commented 9 years ago

Finally i changed the configuration. Now i'm using rest-api-doc like a inline plugin instead of including it in the buildconfig.groovy of my project.

This issue can be closed!