gdsflex ClassNotFound GravityTomcatServlet

31 views
Skip to first unread message

John Fletcher

unread,
May 29, 2012, 7:16:31 AM5/29/12
to gran...@googlegroups.com
William, I saw that you checked in the updated gdsflex files. I've tried it out (with BuildConfig grails.servlet.version = 3.0) and I'm getting this, do you know why?
 
2012-05-29 13:10:05,291 [pool-8-thread-1] INFO  [localhost].[/four]  - Marking servlet GravityServlet as unavailable
2012-05-29 13:10:05,292 [pool-8-thread-1] ERROR [localhost].[/four]  - Servlet /four threw load() exception
java.lang.ClassNotFoundException: org.granite.gravity.tomcat.GravityTomcatServlet
 at org.grails.plugins.tomcat.ParentDelegatingClassLoader.findClass(ParentDelegatingClassLoader.java:46)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:525)
 at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:507)
 at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:124)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1136)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1568)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1558)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 
I see they talked about it here: http://groups.google.com/group/graniteds/browse_thread/thread/7679fc307a402cae. I guess the web.xml changes should be coded in to the plugin.
 
John

wdrai

unread,
May 29, 2012, 8:37:37 AM5/29/12
to gran...@googlegroups.com
You maybe still have the tomcat servlet defined in your GraniteDSConfig.groovy

John Fletcher

unread,
May 29, 2012, 12:19:12 PM5/29/12
to gran...@googlegroups.com
Ahh OK thanks, there was an error as it was picking up the tomcat servlet from DefaultGraniteConfig.groovy. I've fixed it up and submitted a pull request on GitHub.
 
John

2012/5/29 wdrai <willia...@gmail.com>

wdrai

unread,
May 29, 2012, 12:59:51 PM5/29/12
to gran...@googlegroups.com
My bad. I've completely messed up my connection of the project to git and lost all my changes.
Fortunately I could restore most files from the eclipse local history but I may have forgotten some.
Actually it seems that Gravity does not work any more with the master but I'll have a look at this.



Ahh OK thanks, there was an error as it was picking up the tomcat servlet from DefaultGraniteConfig.groovy. I've fixed it up and submitted a pull request on GitHub.
 
John

2012/5/29 wdrai
You maybe still have the tomcat servlet defined in your GraniteDSConfig.groovy

John Fletcher

unread,
May 30, 2012, 3:47:06 AM5/30/12
to gran...@googlegroups.com
2012/5/29 wdrai
Actually it seems that Gravity does not work any more with the master but I'll have a look at this.
 
Well for me a basic gravity example is working with https://github.com/fletchgqc/grails-gdsflex, and that's just https://github.com/graniteds/grails-gdsflex plus a few changes to fix the default settings. So I think gravity should work for you in master.
Don't forget to set grails.tomcat.nio = true in Config.groovy to make it work in dev mode.

John
Reply all
Reply to author
Forward
0 new messages