loic911 / Rest-api-doc

MIT License
21 stars 32 forks source link

Upgrade Grails from 2.3.11 to 2.4.5 with resources:1.2.1 to resources:1.2.14 -> Resource not found: /js/jsondoc/ #62

Closed artvel closed 2 years ago

artvel commented 8 years ago

Hi guys Grails 2.3.11 with resources:1.2.1 worked fine. After upgrading Grails from 2.3.11 to 2.4.5 with resources:1.2.1 to resources:1.2.14 we've got issues on production.

When testing local with the IDE it works fine. When exporting war for production: jetty log

2015-08-12 11:23:01,064 [qtp1407343478-12] ERROR resource.ResourceMeta  - Resource not found: /js/jsondoc/handlebars-v2.0.0.js
2015-08-12 11:23:01,064 [qtp1407343478-14] ERROR resource.ResourceMeta  - Resource not found: /js/jsondoc/bootstrap.min.js
2015-08-12 11:23:01,065 [qtp1407343478-18] ERROR resource.ResourceMeta  - Resource not found: /js/jsondoc/jlinq.js
2015-08-12 11:23:01,066 [qtp1407343478-20] ERROR resource.ResourceMeta  - Resource not found: /js/jsondoc/prettify.js
2015-08-12 11:23:01,067 [qtp1407343478-16] ERROR resource.ResourceMeta  - Resource not found: /js/jsondoc/bootstrap-button.js
2015-08-12 11:23:01,068 [qtp1407343478-21] ERROR resource.ResourceMeta  - Resource not found: /css/jsondoc/bootstrap.min.css
2015-08-12 11:23:01,111 [qtp1407343478-15] ERROR resource.ResourceMeta  - Resource not found: /css/jsondoc/bootstrap-responsive.min.css
2015-08-12 11:23:01,111 [qtp1407343478-20] ERROR resource.ResourceMeta  - Resource not found: /css/jsondoc/font-awesome.css

What I did about it: I tried to play around with the resources plugin. When I set the resources version to 1.2.8 I received at least the Jsondoc layout header. I guess it is something wrong in rest-api-doc:0.6.1 with the usage of the resources plugin.

thanks for any help

GSantanaPortel commented 8 years ago

Hello, I have a similar problem but just upgrading resources:1.2.1 to resources:1.2.14, with grails 2.3.6. I have realise of this warning, then I get the same error:

WARN o.g.p.r.ResourceProcessor: Serving url file:/js/something.js isn't allowed.

Anyone knows what is happening?