Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Wedding example: Is a working version available on this site?

  1. #1
    Join Date
    Oct 2009
    Posts
    6

    Default Wedding example: Is a working version available on this site?

    I am new to Roo and STS. I tried to work through the example and run it using the tc server, but the login page was unreadable and the links do not work.

    This may be my fault, in that I have not made the correct changes to the login.jsp and urlrewrite.xml files. Does this site contain a repository of the correct files, after they have been generated by Roo and manually edited? It would be useful to check which entries I have done wrong or missed.

  2. #2
    Join Date
    Feb 2007
    Posts
    14

    Default

    Having the same problem. It's an ongoing issue with Spring MVC that debugging URL mappings is a major PITA. Ever since they tried to incorporate convention over configuration, it's difficult to understand what the conventions are, and it's also difficult to figure out how to override the conventions with explicit configuration. If you have more than one mapping strategy, you have to know which [default] beans you have to declare. (similar to needing to declare a default constructor if you have a constructor with arguments.

    Now they want to use this url rewrite 3rd party library as a workaround to coerce friendly (no extension) URL paths to a form that will map to the controllers. I fail to see how that's an improvement. Yet another obscure XML mini language to have to grok.

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Sorry, we don't have the completed wedding application available anymore, although we do maintain the script you need for most of the output in the /samples directory that ships with Roo.

    If you'd like to send me a ZIP of your project (ben dot alex at springsource dot com) I'd be pleased to take a look at it for you and try to identify what's wrong.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  4. #4
    Join Date
    Feb 2007
    Posts
    14

    Default

    Yes the sample wedding.roo works, but it only has the stubbed PublicRsvpController and the default security context. I ran into trouble following the tutorial getting 404 because the login page is not found. I will email a jar of my code to you.

    (As an aside, Spring error messaging is usually on point, but it often reports "resource XXX cannot be found because it doesn't exist." Often the resource exists, just not in the locations the framework is looking for it).

    Thanks for responding.

  5. #5
    Join Date
    Oct 2009
    Location
    Munich, Germany
    Posts
    103

    Default

    Ben, i had the same problem. Perhaps a misunderstanding in the tutorial. Could you please post the solution here.

    Many thanx,
    Fireball

  6. #6
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    We've made a few changes to Spring Security integration in the soon-to-be-released Roo 1.0.0.RC3, so I've updated the blog at http://blog.springsource.com/roo-part-2/ to reflect the changes and also attach the final output of performing those instructions.

    Unfortunately due to significant time restrictions (I'm about to leave for two conferences) I haven't had time to make the attachment look like a pretty RSVP site. Still, it shows what the core project files should look like at the end of following the tutorial blog.

    Please note the attachment is designed for Roo 1.0.0.RC3, so you'll either need to wait until RC3 is released, update your RC2 project to use Spring Security 3 (it's not that hard, just edit your project in accordance with the attachment) or build Roo from trunk (it's also quite easy as we just use Maven). In any event I hope this helps.

    Cheers
    Ben
    Attached Files Attached Files
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  7. #7
    Join Date
    Oct 2009
    Posts
    6

    Default

    I have tried the revised version - and it still does not work! Here are the problems which I am getting:

    1) The login page has no text on it. It looks like it is not finding the message.properties file;

    2) The WebRsvpController_Roo_Controller.aj file still has constraint.getPropertyPath() in its code, which does not compile since this is not a String.

    Unfortunately I could not attend the Sydney Discovery Day - I had planned to, but I had a job interview on the same day - so I could not show you this directly. I do not have time to work out what is wrong.

    At least for the moment, I must conclude that Roo is not reliable enough for operational use. There needs to be an introductory example which works.

  8. #8
    Join Date
    Feb 2007
    Posts
    14

    Default

    The roo project has not been represented as being ready for production.
    I've been using roo to get insight on how to use the new Spring 3.0 features, since at this point there is very little publicly available documentation on 3.0

  9. #9
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    I downloaded the ZIP, made a directory, changed into the directory, unzipped and "mvn tomcat:run". I then visited http://localhost:8080/wedding and it had login page text just as it should. I think you might have something wrong with your web container. I recommend you try to use the "mvn tomcat:run" approach as you can therefore see the sample works as attached to this thread.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  10. #10
    Join Date
    Oct 2009
    Location
    Munich, Germany
    Posts
    103

    Default

    Hi Ben,

    another shot :-) the security is working but when you login as admin1234 the menu has gone. Why is this? If you browse to .../wedding/rsvp the menu is present.

    Is this a redirection problem? When logging in as admin you should be redirected to a default not a public extended tiles view, right?

    Cheers Fireball

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •