Damn, talk about a brain fart - Thanks Igor, much appreciated - Jin
igor.vaynberg wrote: > > read the error message > > move that code from constructor to init() > > -igor > > > On 10/19/07, auron <[EMAIL PROTECTED]> wrote: >> >> Hi all - >> >> I am trying to integrate wicket 1.3 beta 4, acegi security, and >> wicket-auth-roles. For the most part I followed the how-to on >> http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html but >> modified >> it to use a simple Jdbc Dao for my authenticationDao. >> >> When I run the web-app I get the following error message: >> >> 2007-10-19 08:37:33.686::WARN: failed wicket.myapp >> org.apache.wicket.WicketRuntimeException: Use Application.init() method >> for >> conf >> iguring your application object >> at >> org.apache.wicket.Application.getSettings(Application.java:829) >> at >> org.apache.wicket.Application.getSecuritySettings(Application.java:56 >> 6) >> at >> edu.ucsd.acp.web.WicketApplication.<init>(WicketApplication.java:21) >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct >> orAccessorImpl.java:39) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC >> onstructorAccessorImpl.java:27) >> at >> java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> at java.lang.Class.newInstance0(Class.java:355) >> at java.lang.Class.newInstance(Class.java:308) >> [...] >> >> Here is my Application code: >> >> public class WicketApplication extends AuthenticatedWebApplication { >> //to be injected by Spting >> private AuthenticationManager authenticationManager; >> /** >> * Constructor >> */ >> public WicketApplication() { >> super.init(); >> //Security Settings >> getSecuritySettings().setAuthorizationStrategy(new >> MetaDataRoleAuthorizationStrategy(this)); >> >> MetaDataRoleAuthorizationStrategy.authorize(BasePage.class, >> SecurityConstants.ROLE_ADMIN); >> } >> >> >> Could this be due to an incompatibility between wicket 1.3 and >> wicket-auth-roles? >> >> Thanks, >> Jin >> -- >> View this message in context: >> http://www.nabble.com/wicket-auth-roles-updated-for-wicket-1.3---tf4654119.html#a13297288 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/wicket-auth-roles-updated-for-wicket-1.3---tf4654119.html#a13299261 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
