понедельник, 27 января 2014 г., 15:37:27 UTC+2 пользователь Mandeville, Rob написал: > > I don't think that you can do what you're trying to do. > > When you run in standalone mode, you are using the Winstone server ( > winstone.sourceforge.net) as your servlet container. Winstone doesn't > appear to do any authentication for you (it's minimalist). If you set the > 'delegate to servlet container' option for authentication while you're in > standalone/Winstone mode, you're delegating to no policy at all. >
Mandeville, Rob thanks for your answer! But I'm not quite sure that problem limited functional Winstone servlet container, because Winstone allows to extend itself functionality, for example such as a suggestion here: https://code.google.com/p/winstone/source/browse/branches/winstone-0.9.10/contrib/JDBCRealm.java?r=149. I compiled this class as com.external.winstone.realm.JDBCRealm and put an external library - jar file to directory ./lib (Jenkins option -- commonLibFolder = folder for additional jar files. Default is. / lib). After start Jenkins the following command: java-jar jenkins.war - realmClassName = com.external.winstone.realm.JDBCRealm, but inthis case i get the following error: 28.01.2014 11:20:19 winstone.Logger logInternal SEVERE: Container startup failed java.io.IOException: Failed to setup authentication realm at winstone.HostConfiguration.<init>(HostConfiguration.java:66) at winstone.HostGroup.initHost(HostGroup.java:66) at winstone.HostGroup.<init>(HostGroup.java:45) at winstone.Launcher.<init>(Launcher.java:143) at winstone.Launcher.main(Launcher.java:354) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at Main._main(Main.java:293) at Main.main(Main.java:98) Caused by: java.lang.ClassNotFoundException: Expected a subype of interface org.eclipse.jetty.security.LoginService but got class com.external.winstone.realm.JDBCRealm instead at winstone.cmdline.Option$OClass.get(Option.java:266) at winstone.HostConfiguration.<init>(HostConfiguration.java:62) ... 10 more please tell me how to fix this error Thanks! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
