Techspace

IT happens only in IT

Grails : No domain class found for name domain-class-name . Please try again and enter a valid domain class name

Sometimes, even if you create domain objects in grails you get the error that No domain class found.
I am not sure why this happens because I am new to Grails and still learning. But the following steps work for me

i) Stop all the running grails app ctrl+C
ii) grails clean
iii) Now try grails generate-all domain-class-name

This generally works for me. I will update this post if I find the root cause of the problemSom

June 23, 2009 Posted by Paras | Grails, Groovy | , | 2 Comments

Building Web Apps with Spring 3.0 – Meeting notes

This presentation and notes are from the May 2009 Java User group meeting in Twin Cities. You can view the details and download the code from http://www.intertech.com/UserGroups/JUGPresentation.aspx?TopicID=135 It was an excellent presentation. Bob has discussed about new cool features in Spring 3 and how it simplifies the Spring MVC development. These presentation slides are created by him and all rights lies with him.

  • DispatcherServlet is the central servlet handling requests
  • See slide 7. The request handling takes place in the following order
    1. HTTP Request is first handled by Dispatcher Servlet
    2. DispatcherServlet refers HandlerMapping find the controller which will handle the request
    3. DispatcherServlet sends the request to the Controller. Controller returns view and/or model.
    4. DispatcherServlet refers to ViewResolver to determine the view page based on logical view name
    5. View is rendered
  • Controller hierarchy is deprecated in Spring 3.Just annotation is enough. No need to implement life-cycle methods
  • Flexible method arguments. Flexible return types.
  • Annotations like
    @RequestParam
    @ModelAttribute
    @RequestMapping
    @SessionAttribute
    @InitBinder
    and WebBindingInitializer
  • Convention verses configuration
  • ControllerClassNameHandlerMapping
  • Model and ModelMap
  • Rest Support

    Stateless, cacheable, scalable, communication protocol
    HTTP Methods – GET, POST, PUT(Idempotent), DELETE(Idempotent), HEAD, OPTIONS

  • Spring 3.0 has REST support

June 3, 2009 Posted by Paras | Spring, Uncategorized | , | No Comments Yet