Oct 8th, 2009, 10:52 AM
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.
Oct 8th, 2009, 06:50 PM
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.
Oct 8th, 2009, 07:51 PM
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.
Oct 8th, 2009, 09:01 PM
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.
Oct 9th, 2009, 04:08 AM
Ben, i had the same problem. Perhaps a misunderstanding in the tutorial. Could you please post the solution here.
Oct 12th, 2009, 08:36 PM
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.
Oct 19th, 2009, 01:50 AM
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.
Oct 19th, 2009, 07:47 AM
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
Oct 19th, 2009, 01:12 PM
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.
Dec 4th, 2009, 11:19 AM
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?