Modify AuthenticatedWebApplication.java yourself. If your using the
jar, than copy AuthenticatedWebApplication.java, make the changes, add
it into the appropriate package in your own project and the
classloader will find it before the one in the jar

Juergen

On 3/31/06, Andre Matheus <[EMAIL PROTECTED]> wrote:
> > It obviously hasn't been changed yet.
>
> OK, fine.
>
> If I understood correctly it is not possible to use nor to test the
> packages wicket-auth-roles-1.2-beta2 and
> wicket-auth-roles-examples-1.2-beta2 as they are now. Am I right? Or
> there are other ways of using them without the
> AuthenticatedWebApplication?
>
> Thanks,
>
> On 3/31/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > It obviously hasn't been changed yet. The code from
> > AuthenticatedWebApplication() must be moved into its init() method.
> >
> > Juergen
> >
> > On 3/31/06, Andre Matheus <[EMAIL PROTECTED]> wrote:
> > > When I tried to use AuthenticatedWebApplication instead of
> > > WebApplication to create my Application, the system started to give me
> > > an error: wicket.WicketRuntimeException: Use Application.init() method
> > > for configuring your application object
> > >
> > > The constructor of my Application is the following:
> > > public MyApplication() {
> > >         super();
> > >         System.out.println("MyApplication - START");
> > >     }
> > >
> > > All my configurations are already in the init() method, but when I
> > > looked in the source of AuthenticatedWebApplication I have seen some
> > > configuration there:
> > >
> > > public AuthenticatedWebApplication()
> > > {
> > >         // Get web session class to instantiate
> > >         this.webSessionClass = getWebSessionClass();
> > >         // Set authorization strategy and unauthorized instantiation 
> > > listener
> > >         getSecuritySettings().setAuthorizationStrategy(new
> > > RoleAuthorizationStrategy(this));
> > >         
> > > getSecuritySettings().setUnauthorizedComponentInstantiationListener(this);
> > > }
> > >
> > > Is it right?
> > >
> > > Complete error stack trace:
> > >
> > > avax.servlet.ServletException: Servlet.init() for servlet quickstart
> > > threw exception
> > >         
> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> > >         
> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> > >         
> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> > >         
> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> > >         
> > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> > >         
> > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> > >         
> > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> > >         java.lang.Thread.run(Thread.java:595)
> > >
> > > root cause
> > >
> > > wicket.WicketRuntimeException: Use Application.init() method for
> > > configuring your application object
> > >         wicket.Application.getSettings(Application.java:510)
> > >         wicket.Application.getSecuritySettings(Application.java:474)
> > >         
> > > wicket.authentication.AuthenticatedWebApplication.<init>(AuthenticatedWebApplication.java:56)
> > >         myApp.MyApplication.<init>(MyApplication.java:26)
> > >         sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> > > Method)
> > >         
> > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> > >         
> > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> > >         java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> > >         java.lang.Class.newInstance0(Class.java:350)
> > >         java.lang.Class.newInstance(Class.java:303)
> > >         
> > > wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:58)
> > >         wicket.protocol.http.WicketServlet.init(WicketServlet.java:262)
> > >         javax.servlet.GenericServlet.init(GenericServlet.java:211)
> > >         
> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> > >         
> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> > >         
> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> > >         
> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> > >         
> > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> > >         
> > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> > >         
> > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> > >         java.lang.Thread.run(Thread.java:595)
> > >
> > >
> > >
> > > --
> > > __
> > > André Matheus
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by xPML, a groundbreaking scripting 
> > > language
> > > that extends applications into web and mobile media. Attend the live 
> > > webcast
> > > and join the prime developer group breaking into this new coding 
> > > territory!
> > > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > > _______________________________________________
> > > Wicket-user mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> > that extends applications into web and mobile media. Attend the live webcast
> > and join the prime developer group breaking into this new coding territory!
> > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> --
> __
> André Matheus
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to