You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 31, 2018. It is now read-only.
I was able to get it to compile with the update of resources to version 1.2.8, but still can't get run-app working.
| Running Grails application
| Error 2014-06-14 11:37:57,934 [localhost-startStop-1] ERROR resource.ResourceMeta - Resource not found: /assets/jquery.js
| Error 2014-06-14 11:37:58,535 [localhost-startStop-1] ERROR resource.ResourceMeta - Resource not found: /assets/jquery.js
Even after fixing the isssues commented above, when I launch a new fresh app, the following error shows up:
|Running Grails application
Error |
2014-06-22 12:11:35,269 [localhost-startStop-1] ERROR [localhost].[/240kicksinsegu] - Exception starting filter sitemesh
Message: org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter
Line | Method
->> 59 | findClass in org.grails.plugins.tomcat.ParentDelegatingClassLoader
| 425 | loadClass in java.lang.ClassLoader
| 358 | loadClass 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
Error |
2014-06-22 12:11:35,761 [localhost-startStop-1] ERROR core.StandardContext - Error filterStart
Error |
2014-06-22 12:11:35,761 [localhost-startStop-1] ERROR core.StandardContext - Context [/240kicksinsegu] startup failed due to previous errors
I think I've made it work.
googleing sitemesh changes 2.4, I found: http://grails.org/doc/2.4.x/guide/upgradingFrom23.html
So, I deleted two sections in web.xml about sitemesh, and it make the site load. I'll be testing funcionality, but it seems to work just fine.
Error |
2014-07-28 06:31:38,703 [http-bio-8080-exec-9] ERROR [/GrailsApplication1].[gsp] - Servlet.service() for servlet [gsp] in context with path [/GrailsApplication1] threw exception [org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException] with root cause
Message: null
Line | Method
->> 198 | doFilter in grails.plugin.cache.web.filter.PageFragmentCachingFilter
| 63 | doFilter in grails.plugin.cache.web.filter.AbstractFilter
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 724 | run . . . in java.lang.Thread
In BuildConfig.groovy
Comment out the following
compile ":asset-pipeline:1.9.6"
Add the following
runtime ":resources:1.2.8"
Under src/templates/war/web.xml
Comment out the filter tag with filtername sitemesh as follows
<filter>
<sitemesh</filter-name>
<filter-class>org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter</filter-class>
</filter>
Also comment out the corresponding filter-mapping
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
I can reproduce this issue with brand new new grail 2.4.x project,
Steps to reproduce:
create new grails project in ggts
add: compile ":kickstart-with-bootstrap:1.1.0" -> to the BuildConfig.groovy
grails kickstart
And then you start having fun (sarcasm)...
add resource dependency 1.2.8, then comment out assets-pipeline... then comment out sitemesh
then..ok, seems to work.
Alas! no. Because all the other updated plugins require assets-pipeline.
Now, I was able to get the resources plugin to play friendly with the assets-pipeline plugin, but only when running in "prod" mode. Seems the assets plugin behaves quite differently in dev mode or prod mode.
Long rant over. I love this plugin, any way to have it upgraded to use the assets plugin instead of resources to bring it inline with the new versions of grails?
Activity
LucaMansutti commentedon Jun 12, 2014
The problem is release of plug in resoouces
runtime ":resources:1.2.8"
psramkumar commentedon Jun 14, 2014
any idea when it is going to solve?
EdZilla commentedon Jun 14, 2014
I was able to get it to compile with the update of resources to version 1.2.8, but still can't get run-app working.
| Running Grails application
| Error 2014-06-14 11:37:57,934 [localhost-startStop-1] ERROR resource.ResourceMeta - Resource not found: /assets/jquery.js
| Error 2014-06-14 11:37:58,535 [localhost-startStop-1] ERROR resource.ResourceMeta - Resource not found: /assets/jquery.js
MohanKMuthusamy commentedon Jun 18, 2014
Getting the same error. Any idea how to resolve this?
Error |
2014-06-17 22:57:54,915 [localhost-startStop-1] ERROR resource.ResourceMeta - Resource not found: /assets/jquery.js
Error |
2014-06-17 22:57:55,959 [localhost-startStop-1] ERROR resource.ResourceMeta - Resource not found: /assets/jquery.js
LucaMansutti commentedon Jun 18, 2014
yes, you must comment
// compile ':asset-pipeline:1.8.3'
Date: Tue, 17 Jun 2014 23:03:57 -0700
From: notifications@github.com
To: KickstartWithBootstrap@noreply.github.com
CC: lucaudine@hotmail.com
Subject: Re: [KickstartWithBootstrap] Fails with Grails 2.4.0 (#87)
Getting the same error. Any idea how to resolve this?
Error |
2014-06-17 22:57:54,915 [localhost-startStop-1] ERROR resource.ResourceMeta - Resource not found: /assets/jquery.js
Error |
2014-06-17 22:57:55,959 [localhost-startStop-1] ERROR resource.ResourceMeta - Resource not found: /assets/jquery.js
—
Reply to this email directly or view it on GitHub.
fernandodelvalle commentedon Jun 22, 2014
Even after fixing the isssues commented above, when I launch a new fresh app, the following error shows up:
|Running Grails application
Error |
2014-06-22 12:11:35,269 [localhost-startStop-1] ERROR [localhost].[/240kicksinsegu] - Exception starting filter sitemesh
Message: org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter
Line | Method
->> 59 | findClass in org.grails.plugins.tomcat.ParentDelegatingClassLoader
| 425 | loadClass in java.lang.ClassLoader
| 358 | loadClass 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
Error |
2014-06-22 12:11:35,761 [localhost-startStop-1] ERROR core.StandardContext - Error filterStart
Error |
2014-06-22 12:11:35,761 [localhost-startStop-1] ERROR core.StandardContext - Context [/240kicksinsegu] startup failed due to previous errors
JohnTheBeloved commentedon Jul 25, 2014
Did you run a "grails clean" before "grails run-app"?
fernandodelvalle commentedon Jul 26, 2014
I tried again, I deleted every cache grails have.
Then I created a fresh new project. I change only BuildConfig.groovy:
// compile ":asset-pipeline:1.8.11"
runtime ":resources:1.2.8"
compile ":kickstart-with-bootstrap:1.1.0"
That makes compile the whole project, but when I hit run-app (I use GGTS), keeps failing:
|Running Grails application
Error |
2014-07-26 20:45:44,121 [localhost-startStop-1] ERROR [localhost].[/asdf] - Exception starting filter sitemesh
Message: org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter
Line | Method
->> 59 | findClass in org.grails.plugins.tomcat.ParentDelegatingClassLoader
| 425 | loadClass in java.lang.ClassLoader
| 358 | loadClass 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
Error |
2014-07-26 20:45:44,687 [localhost-startStop-1] ERROR core.StandardContext - Error filterStart
Error |
2014-07-26 20:45:44,687 [localhost-startStop-1] ERROR core.StandardContext - Context [/asdf] startup failed due to previous errors
|Server running. Browse to http://localhost:8080/asdf
I did "grails clean", tried again, same result
JohnTheBeloved commentedon Jul 27, 2014
I think it has to do with the bootstrap plugin or another GUI plugin, asset-pipeline was meant to replace the resources plugin(http://grails.org/plugin/asset-pipeline ),the bootstrap plugin makes use of the resources plugin (https://github.com/joergrech/KickstartWithBootstrap/blob/master/grails-app/conf/KickstartResources.groovy), an older build which does not work well with grails 2.4.2 .. You have to tell it's author(https://github.com/joergrech) to refactor the code to use the newer resorces plugin or the asset pipeline plugin.............Hope this helps
fernandodelvalle commentedon Jul 28, 2014
I think I've made it work.
googleing sitemesh changes 2.4, I found:
http://grails.org/doc/2.4.x/guide/upgradingFrom23.html
So, I deleted two sections in web.xml about sitemesh, and it make the site load. I'll be testing funcionality, but it seems to work just fine.
LucaMansutti commentedon Jul 28, 2014
I have a new project:
Error |
2014-07-28 06:31:38,703 [http-bio-8080-exec-9] ERROR [/GrailsApplication1].[gsp] - Servlet.service() for servlet [gsp] in context with path [/GrailsApplication1] threw exception [org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException] with root cause
Message: null
Line | Method
->> 198 | doFilter in grails.plugin.cache.web.filter.PageFragmentCachingFilter
| 63 | doFilter in grails.plugin.cache.web.filter.AbstractFilter
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 724 | run . . . in java.lang.Thread
why?
JohnTheBeloved commentedon Jul 28, 2014
more info, which grails version? which plugins ae you using? are you upgrading?
LucaMansutti commentedon Jul 28, 2014
I use grails 2.4.0
Date: Sun, 27 Jul 2014 23:58:21 -0700
From: notifications@github.com
To: KickstartWithBootstrap@noreply.github.com
CC: lucaudine@hotmail.com
Subject: Re: [KickstartWithBootstrap] Fails with Grails 2.4.0 (#87)
more info, which grails version? which plugins ae you using? are you upgrading?
—
Reply to this email directly or view it on GitHub.
JohnTheBeloved commentedon Jul 28, 2014
Comment either asset-pieline or resources plugin, asset-pieline plugin was meant to replace resources plugin in grails 2.4
LucaMansutti commentedon Jul 29, 2014
Now it's work fine
My BuildConfig.groovy is:
thank you
Luca
Date: Mon, 28 Jul 2014 03:27:07 -0700
From: notifications@github.com
To: KickstartWithBootstrap@noreply.github.com
CC: lucaudine@hotmail.com
Subject: Re: [KickstartWithBootstrap] Fails with Grails 2.4.0 (#87)
Comment either asset-pieline or resources plugin, asset-pieline plugin was meant to replace resources plugin in grails 2.4
—
Reply to this email directly or view it on GitHub.
Yashwa commentedon Sep 25, 2014
I resolved the resource not found by removing the pipeline plugin but still I get the error below
2014-09-25 11:40:58,991 [localhost-startStop-1] ERROR [localhost].[/PDLuck] - Exception starting filter sitemesh
Message: org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter
Line | Method
->> 59 | findClass in org.grails.plugins.tomcat.ParentDelegatingClassLoader
| 423 | loadClass in java.lang.ClassLoader
| 356 | loadClass in ''
| 334 | innerRun in java.util.concurrent.FutureTask$Sync
| 166 | run . . . in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run in java.lang.Thread
Error |
2014-09-25 11:40:59,149 [localhost-startStop-1] ERROR core.StandardContext - Error filterStart
My plugins
plugins {
// compile ":asset-pipeline:1.9.6"
compile ":spring-security-core:2.0-RC4"
compile ":mongodb:3.0.2"
compile ":kickstart-with-bootstrap:1.1.0"
// runtime ":hibernate4:4.3.5.5" // or ":hibernate:3.6.10.17"
runtime ":database-migration:1.4.0"
runtime ":jquery:1.11.1"
runtime ":resources:1.2.8"
ajayush commentedon Dec 28, 2014
In BuildConfig.groovy
Comment out the following
compile ":asset-pipeline:1.9.6"
Add the following
runtime ":resources:1.2.8"
Under src/templates/war/web.xml
Comment out the filter tag with filtername sitemesh as follows
<filter>
<sitemesh</filter-name>
<filter-class>org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter</filter-class>
</filter>
Also comment out the corresponding filter-mapping
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
Run the app now!!
hugoriar commentedon Jan 9, 2015
ajayush thanks now it works!
gvenez commentedon Mar 5, 2015
This error occurs if you have run "install templates" at any point in the past before you upgraded to grails 2.4.x.
Simply running the "install templates" command again and overwriting the templates solves this problem
dacloutier commentedon Jun 4, 2015
I disagree with the comment above.
I can reproduce this issue with brand new new grail 2.4.x project,
Steps to reproduce:
And then you start having fun (sarcasm)...
add resource dependency 1.2.8, then comment out assets-pipeline... then comment out sitemesh
then..ok, seems to work.
Alas! no. Because all the other updated plugins require assets-pipeline.
Now, I was able to get the resources plugin to play friendly with the assets-pipeline plugin, but only when running in "prod" mode. Seems the assets plugin behaves quite differently in dev mode or prod mode.
Long rant over. I love this plugin, any way to have it upgraded to use the assets plugin instead of resources to bring it inline with the new versions of grails?