Thanks, Jan, for the explanation and the solution. It's kind of a pity that I do not have the required time at work to dive into Jetty... so this must be done right before midnight ;)
Thanks again and regards Andreas Am 02.02.2012 23:31, schrieb Jan Bartel: > https://bugs.eclipse.org/bugs/show_bug.cgi?id=368773 > > The upshot of this is that you need to explicitly tell a context which > realm (aka LoginService) to use if you have more than one of them > defined in the Server. You give the SecurityHandler for a context > either the name of the realm you want to use (that you already added > to the Server), or you give it the actual LoginService. > > Eg in xml: > > <Configure class="org.eclipse.jetty.webapp.WebAppContext"> > <Get name="securityHandler"> > <!-- Either: --> > <Set name="loginService"> > <New class="org.eclipse.jetty.security.HashLoginService"> > <Set name="name">Test Realm</Set> > </New> > </Set> > > <!-- or if you defined a LoginService called "Test Realm" in jetty.xml : > --> > <Set name="realmName">Test Realm</Set> > > </Get> > > Jan > > > On 3 February 2012 02:45, AS Maps <[email protected]> wrote: >> Hi there, >> >> after upgrading to from Jetty 8.0.0 to 8.1.0 I experience an exception when >> Jetty tries to start Hudson. >> >> Jetty: 8.1.0-eclipse >> OS: Ubuntu Server 11.10 x64 >> Java: OpenJDK 6 >> Hudson: 2.2.0 >> >> I get the following exception: >> >> 2012-02-02 14:47:44.492:WARN:oejuc.AbstractLifeCycle:FAILED >> org.eclipse.jetty.security.ConstraintSecurityHandler@57202a06: >> java.lang.IllegalStateException: No LoginService for >> org.eclipse.jetty.security.authentication.FormAuthenticator@6a48e2c5 in >> org.eclipse.jetty.security.ConstraintSecurityHandler@57202a06 >> java.lang.IllegalStateException: No LoginService for >> org.eclipse.jetty.security.authentication.FormAuthenticator@6a48e2c5 in >> org.eclipse.jetty.security.ConstraintSecurityHandler@57202a06 >> at >> org.eclipse.jetty.security.authentication.LoginAuthenticator.setConfiguration(LoginAuthenticator.java:44) >> at >> org.eclipse.jetty.security.authentication.FormAuthenticator.setConfiguration(FormAuthenticator.java:103) >> at >> org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:341) >> at >> org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:228) >> at >> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) >> at >> org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) >> at >> org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:97) >> at >> org.eclipse.jetty.server.session.SessionHandler.doStart(SessionHandler.java:122) >> at >> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) >> at >> org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) >> at >> org.eclipse.jetty.server.handler.ScopedHandler.doStart(ScopedHandler.java:97) >> at >> org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:745) >> at >> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:242) >> at >> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1213) >> at >> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699) >> at >> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454) >> at >> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) >> at >> org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:36) >> at >> org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:183) >> at >> org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:491) >> at >> org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:138) >> at >> org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:142) >> at >> org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:53) >> at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:604) >> at >> org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:535) >> at org.eclipse.jetty.util.Scanner.scan(Scanner.java:398) >> at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:332) >> ... >> >> I am able to reproduce it under Windows 7 x64 with Jetty 8.1.0; with 8.0.4 >> it runs fine. >> >> Does anyone have any idea on how to fix it? I read about placing some >> hudson.xml with (to me currently unknown) content under the contexts folder. >> If so my next question would be, which bugfix caused this or more common: >> why is this (just for my understanding)? >> >> Any help would be appreciated. >> >> Thanks in advance and regards >> Andreas >> >> _______________________________________________ >> jetty-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/jetty-users >> > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users _______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
