|
Just to keep everyone up-to-date on what has been happening with
Grails. The following features have been added: * Support for save/reload of views by using a filter only included with the "run-app" command that copies all resources across when they change (it also copies the .groovy files for controllers etc. but there is no code there yet that checks for changes and reloads etc.) * Groovy Server Pages (GSP) has been forked and customised for Grails. It has been heavily refactored into a TemplateEngine (although it still doesn't actually extend TemplateEngine it uses the same general interface, it was previously a servlet). What this means is you can now write views in JSP or GSP * The QuickStart guide (http://grails.codehaus.org/Quick+Start) has been updated with a GSP example * Although GSP won't support JSP tag libraries support has been added for the Grails tag library to GSP. All <gr:*> tags will be available in both JSP (as a taglib) and GSP (automatically). I did this becauses some things are just better represented as a tag. At the moment I have only implemented one but there are many more to come: <gr:link controller="book" action="list" /> * A few useful new methods have been added to controllers including "bindData", "render" and "rico" (see http://grails.codehaus.org/Dynamic+Methods+Reference) *Gasp* Cheers, Graeme |
|
Hi,
after fetching the latest changes, I get for the books project after grails init grails run-app [script] Servlet 'grails' configured successfully [script] Started SocketListener on 0.0.0.0:8080 [script] org.mortbay.util.MultiException[java.lang.ClassNotFoundException: org.codehaus.groovy.grails.web.pages.GroovyPagesServlet] [script] at org.mortbay.http.HttpServer.doStart(HttpServer.java:731) cheers Mittie |
|
with the latest changes and rebuild, it's still not working, but
the message changed :-) [script] Looking up handler for [/books] [script] Testing handler adapter [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@18353cf] [script] Last-Modified value for [/books/books] is [-1] [script] DispatcherServlet with name 'grails' received request for [/books/books] [script] Testing handler adapter [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@18353cf] [script] HandlerExceptionResolver returned ModelAndView [ModelAndView: reference to view with name 'error'; model is {exception=java.lang.IllegalArgumentException: No eventId could be obtained -- make sure the client provides the _eventI d parameter as input; the parameters provided for this request were:map[[empty]]}] for exception [script] Handler execution resulted in exception - forwarding to resolved error view [script] java.lang.IllegalArgumentException: No eventId could be obtained -- make sure the client provides the _event Id parameter as input; the parameters provided for this request were:map[[empty]] [script] at org.springframework.util.Assert.hasText(Assert.java:142) [script] at org.springframework.webflow.execution.FlowExecutionManager.onEvent(FlowExecu tionManager.java:435) [script] at org.springframework.webflow.execution.servlet.ServletFlowExecutionManager.ha ndle(ServletFlowExecution Manager.java:91) [script] at org.codehaus.groovy.grails.web.pageflow.execution.servlet.GrailsServletFlowE xecutionManager.handle(Gr ailsServletFlowExecutionManager.java:115) [script] at org.springframework.webflow.mvc.FlowController.handleRequestInternal(FlowCon troller.java:138) [script] at org.springframework.web.servlet.mvc.AbstractController.handleRequest(Abstrac tController.java:128) [script] at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(Si mpleControllerHandlerAdap ter.java:44) [script] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServl et.java:684) [script] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServle t.java:625) [script] at org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkSer vlet.java:386) [script] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java :346) [script] at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) cheers Mittie > -----Original Message----- > From: Dierk Koenig [mailto:[hidden email]] > Sent: Donnerstag, 12. Januar 2006 21:25 > To: [hidden email] > Subject: RE: [grails-dev] Recent Grails CVS Activity > > > Hi, > > after fetching the latest changes, I get for the books project after > grails init > grails run-app > > [script] Servlet 'grails' configured successfully > [script] Started SocketListener on 0.0.0.0:8080 > [script] > org.mortbay.util.MultiException[java.lang.ClassNotFoundException: > org.codehaus.groovy.grails.web.pages.GroovyPagesServlet] > [script] at > org.mortbay.http.HttpServer.doStart(HttpServer.java:731) > > cheers > Mittie |
|
I've noticed this error before it is related to the flow execution
state on webflows..i had to close my browser and restart it fresh to get round it before. if you try normal controllers it will work fine.. I need to revisit webflows and improve them, but as much as i love the webflows the priority at the moment is to get normal controllers finished which means implementing things like the tag library,scaffolding etc. Graeme On 12/01/06, Dierk Koenig <[hidden email]> wrote: > with the latest changes and rebuild, it's still not working, but > the message changed :-) > > [script] Looking up handler for [/books] > [script] Testing handler adapter > [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@18353cf] > [script] Last-Modified value for [/books/books] is [-1] > [script] DispatcherServlet with name 'grails' received request for > [/books/books] > [script] Testing handler adapter > [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@18353cf] > [script] HandlerExceptionResolver returned ModelAndView [ModelAndView: > reference to view with name 'error'; model is > {exception=java.lang.IllegalArgumentException: No eventId could be > obtained -- make sure the client provides the _eventI > d parameter as input; the parameters provided for this request > were:map[[empty]]}] for exception > [script] Handler execution resulted in exception - forwarding to resolved > error view > [script] java.lang.IllegalArgumentException: No eventId could be > obtained -- make sure the client provides the _event > Id parameter as input; the parameters provided for this request > were:map[[empty]] > [script] at org.springframework.util.Assert.hasText(Assert.java:142) > [script] at > org.springframework.webflow.execution.FlowExecutionManager.onEvent(FlowExecu > tionManager.java:435) > [script] at > org.springframework.webflow.execution.servlet.ServletFlowExecutionManager.ha > ndle(ServletFlowExecution > Manager.java:91) > [script] at > org.codehaus.groovy.grails.web.pageflow.execution.servlet.GrailsServletFlowE > xecutionManager.handle(Gr > ailsServletFlowExecutionManager.java:115) > [script] at > org.springframework.webflow.mvc.FlowController.handleRequestInternal(FlowCon > troller.java:138) > [script] at > org.springframework.web.servlet.mvc.AbstractController.handleRequest(Abstrac > tController.java:128) > [script] at > org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(Si > mpleControllerHandlerAdap > ter.java:44) > [script] at > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServl > et.java:684) > [script] at > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServle > t.java:625) > [script] at > org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkSer > vlet.java:386) > [script] at > org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java > :346) > [script] at > javax.servlet.http.HttpServlet.service(HttpServlet.java:596) > > cheers > Mittie > > > -----Original Message----- > > From: Dierk Koenig [mailto:[hidden email]] > > Sent: Donnerstag, 12. Januar 2006 21:25 > > To: [hidden email] > > Subject: RE: [grails-dev] Recent Grails CVS Activity > > > > > > Hi, > > > > after fetching the latest changes, I get for the books project after > > grails init > > grails run-app > > > > [script] Servlet 'grails' configured successfully > > [script] Started SocketListener on 0.0.0.0:8080 > > [script] > > org.mortbay.util.MultiException[java.lang.ClassNotFoundException: > > org.codehaus.groovy.grails.web.pages.GroovyPagesServlet] > > [script] at > > org.mortbay.http.HttpServer.doStart(HttpServer.java:731) > > > > cheers > > Mittie > > |
|
> I've noticed this error before it is related to the flow execution
> state on webflows..i had to close my browser and restart it fresh to > get round it before. if you try normal controllers it will work fine.. restarting the browser solved the Exception but the books app doesn't start anyway. Connecting to http://localhost:8080/books/books shows ---- HTTP ERROR: 404 /WEB-INF/grails-app/viewslistBooks.jsp RequestURI=/books/books ---- with log output ---- [script] Opening single Hibernate Session in OpenSessionInViewFilter [script] Testing handler map [org.codehaus.groovy.grails.web.servlet.mvc.GrailsUrlHandlerMapping@188c838] in Dispatch erServlet with name 'grails' [script] Looking up handler for [/books] [script] Testing handler adapter [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@111089b] [script] Last-Modified value for [/books/books] is [-1] [script] DispatcherServlet with name 'grails' received request for [/books/books] [script] Testing handler adapter [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@111089b] [script] Cached view 'listBooks' [script] Rendering view [org.springframework.web.servlet.view.JstlView: name 'listBooks'; URL [/WEB-INF/grails-app/vi ewslistBooks.jsp]] in DispatcherServlet with name 'grails' [script] Successfully completed request [script] Closing single Hibernate Session in OpenSessionInViewFilter ---- > I need to revisit webflows and improve them, but as much as i love the > webflows the priority at the moment is to get normal controllers > finished which means implementing things like the tag > library,scaffolding etc. ok. I understand. It's a bit difficult for me to tell what's supposed to work and what isn't. I worked on integrating WebTest more closely but I need the backing of a running solution before I dare to commit any changes... cheers Mittie |
|
On 12/01/06, Dierk Koenig <[hidden email]> wrote:
> > I've noticed this error before it is related to the flow execution > > state on webflows..i had to close my browser and restart it fresh to > > get round it before. if you try normal controllers it will work fine.. > > restarting the browser solved the Exception but the books app doesn't > start anyway. > Connecting to http://localhost:8080/books/books shows Hmm this is likely because the page flows are not setting the default action to forward to correctly. It should forward to /WEB-INF/grails-app/views/books/viewlistBooks.jsp but clearly isn't > ---- > HTTP ERROR: 404 > > /WEB-INF/grails-app/viewslistBooks.jsp > > RequestURI=/books/books > ---- > with log output > ---- > [script] Opening single Hibernate Session in OpenSessionInViewFilter > [script] Testing handler map > [org.codehaus.groovy.grails.web.servlet.mvc.GrailsUrlHandlerMapping@188c838] > in Dispatch > erServlet with name 'grails' > [script] Looking up handler for [/books] > [script] Testing handler adapter > [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@111089b] > [script] Last-Modified value for [/books/books] is [-1] > [script] DispatcherServlet with name 'grails' received request for > [/books/books] > [script] Testing handler adapter > [org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter@111089b] > [script] Cached view 'listBooks' > [script] Rendering view [org.springframework.web.servlet.view.JstlView: > name 'listBooks'; URL [/WEB-INF/grails-app/vi > ewslistBooks.jsp]] in DispatcherServlet with name 'grails' > [script] Successfully completed request > [script] Closing single Hibernate Session in OpenSessionInViewFilter > ---- > > > I need to revisit webflows and improve them, but as much as i love the > > webflows the priority at the moment is to get normal controllers > > finished which means implementing things like the tag > > library,scaffolding etc. > > ok. I understand. > It's a bit difficult for me to tell what's supposed to work and > what isn't. > I worked on integrating WebTest more closely but I need the backing > of a running solution before I dare to commit any changes... I understand, I will build a more complete sample app using normal controllers once I have everything I needed implemented, you cant then work on integrating WebTest then. Once, I'm happy normal controllers are finished I will then look at all the problems with page flows and we can re-visit the books sample app. > > cheers > Mittie > > |
| Powered by Nabble | Edit this page |
