Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » No authentication service
No authentication service [message #23154] Mon, 23 March 2009 06:58 Go to next message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
Hi,

I
Re: No authentication service [message #23193 is a reply to message #23154] Mon, 23 March 2009 09:57 Go to previous messageGo to next message
Frank Schepp is currently offline Frank Schepp
Messages: 14
Registered: July 2009
Junior Member
Carsten Spieker wrote:
Hi Carsten,

which example are you using? Did you try launcher SWT SCP
ExampleApplication.product (client) and Riena Sample App Server? Which
riena version are you using? Could you please provide a stacktrace?

Regards, Frank

> Hi,
>
> I´m playing around with the Riena sample applications.
>
> When I try to learn more about the riena login support I´m reaching my
> limits quite early.
>
> I always get the message "Log-in failed" which is caused by an
> LoginException "No authentication service".
>
> I´m quite new to riena and Java Security. Can anyone help me understanding
> or simply using the login support?
>
> Thanks and greetz
> Carsten
>
>
Re: No authentication service [message #23307 is a reply to message #23193] Mon, 23 March 2009 10:24 Go to previous messageGo to next message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
Hi Frank,

I use the product "example_product" defined in plugin
"org.eclipse.riena.example.client".
I cannot find the launcher you mentioned. Where can I find it?

Here the stacktrace the Sample App Server gives:

WARNUNG:
org.eclipse.riena.security.common.authentication.Authenticat ionFailure:
AuthenticationService login failed
org.eclipse.riena.security.common.authentication.Authenticat ionFailure:
AuthenticationService login failed
at
org.eclipse.riena.internal.security.authenticationservice.Au thenticationService.login(AuthenticationService.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:69)
at
org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:38)
at
org.eclipse.riena.internal.communication.publisher.ServiceHo oksProxy.invoke(ServiceHooksProxy.java:70)
at $Proxy13.login(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkel eton.java:155)
at
org.eclipse.riena.communication.publisher.hessian.RienaHessi anDispatcherServlet.service(RienaHessianDispatcherServlet.ja va:147)
at
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
at
org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
Caused by: javax.security.auth.login.LoginException: F
Re: No authentication service [message #23349 is a reply to message #23307] Mon, 23 March 2009 10:24 Go to previous messageGo to next message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
I
Re: No authentication service [message #23394 is a reply to message #23307] Mon, 23 March 2009 14:37 Go to previous messageGo to next message
Frank Schepp is currently offline Frank Schepp
Messages: 14
Registered: July 2009
Junior Member
Hi Carsten,

sorry, the launcher i wanted to mentioned is also in
org.eclipse.riena.example.client and is named SWT
ExampleApplication.product.launch. Please can you check/make sure that
also the following VM argument
-Djava.security.auth.login.config==${workspace_loc}\org.ecli pse.riena.security.simpleservices\config\sample_jaas.config
is present in the launch configuration of Riena Sample App Server (the
exception indicates that information provided by this file is missing)?!
By the way on which OS platform you are on?

regards, Frank


Carsten Spieker wrote:
> Hi Frank,
>
> I use the product "example_product" defined in plugin
> "org.eclipse.riena.example.client".
> I cannot find the launcher you mentioned. Where can I find it?
>
> Here the stacktrace the Sample App Server gives:
>
> WARNUNG:
> org.eclipse.riena.security.common.authentication.Authenticat ionFailure:
> AuthenticationService login failed
> org.eclipse.riena.security.common.authentication.Authenticat ionFailure:
> AuthenticationService login failed
> at
> org.eclipse.riena.internal.security.authenticationservice.Au thenticationService.login(AuthenticationService.java:146)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:69)
> at
> org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:38)
> at
> org.eclipse.riena.internal.communication.publisher.ServiceHo oksProxy.invoke(ServiceHooksProxy.java:70)
> at $Proxy13.login(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkel eton.java:155)
> at
> org.eclipse.riena.communication.publisher.hessian.RienaHessi anDispatcherServlet.service(RienaHessianDispatcherServlet.ja va:147)
> at
> org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:67)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
> at
> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
> at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
> at org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
> at
> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
> Caused by: javax.security.auth.login.LoginException: Für CentralSecurity
> sind keine Anmeldemodule konfiguriert.
> at javax.security.auth.login.LoginContext.init(LoginContext.jav a:256)
> at javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)
> at
> org.eclipse.equinox.internal.security.auth.SecureContext.get LoginContext(SecureContext.java:98)
> at
> org.eclipse.equinox.internal.security.auth.SecureContext.log in(SecureContext.java:46)
> at
> org.eclipse.riena.internal.security.authenticationservice.Au thenticationService.login(AuthenticationService.java:125)
> ... 32 more
>
>
>
> Greetz
> Carsten
>
>
> "Frank Schepp" <Frank.Schepp@compeople.de> schrieb im Newsbeitrag
> news:gq7n3l$b90$1@build.eclipse.org...
>> Carsten Spieker wrote:
>> Hi Carsten,
>>
>> which example are you using? Did you try launcher SWT SCP
>> ExampleApplication.product (client) and Riena Sample App Server? Which
>> riena version are you using? Could you please provide a stacktrace?
>>
>> Regards, Frank
>>
>>> Hi,
>>>
>>> I´m playing around with the Riena sample applications.
>>>
>>> When I try to learn more about the riena login support I´m reaching my
>>> limits quite early.
>>>
>>> I always get the message "Log-in failed" which is caused by an
>>> LoginException "No authentication service".
>>>
>>> I´m quite new to riena and Java Security. Can anyone help me
>>> understanding or simply using the login support?
>>>
>>> Thanks and greetz
>>> Carsten
>
>
Re: No authentication service [message #23561 is a reply to message #23394] Wed, 25 March 2009 06:56 Go to previous messageGo to next message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
Hey Frank,

the VM-argument you mentioned was existing in the app server launch
configuration...but the specified plugin
"org.eclipse.riena.security.simpleservice" not. After importing it into
workspace it works fine.

But when I take the login mechanism over to my own little sample application
I still get the following error when ILoginContext.login() is performed:

javax.security.auth.login.LoginException: no authentication service
at
org.eclipse.riena.security.common.authentication.RemoteLogin Proxy.login(RemoteLoginProxy.java:79)
at
com.pa.eai.spieker.client.authentication.RemoteLoginModule.l ogin(RemoteLoginModule.java:96)
at
org.eclipse.equinox.security.auth.module.ExtensionLoginModul e.login(ExtensionLoginModule.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.access$000(Unknown Source)
at javax.security.auth.login.LoginContext$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
at javax.security.auth.login.LoginContext.login(Unknown Source)
at
org.eclipse.equinox.internal.security.auth.SecureContext.log in(SecureContext.java:50)
at
com.pa.eai.spieker.client.views.LoginDialogController.checkL ogin(LoginDialogController.java:142)
at
com.pa.eai.spieker.client.views.LoginDialogController.access $0(LoginDialogController.java:125)
at
com.pa.eai.spieker.client.views.LoginDialogController$1.call back(LoginDialogController.java:78)
at
org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.fir eAction(ActionObserver.java:63)
at
org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.wid getSelected(ActionObserver.java:34)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
at
org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.doEventLoop(AbstractLoginSplashHandler.jav a:88)
at
org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.init(AbstractLoginSplashHandler.java:67)
at org.eclipse.ui.internal.Workbench$6.run(Workbench.java:605)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbe nch.java:621)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2238)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 09)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:492)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.riena.navigation.ui.swt.application.SwtApplicati on.createView(SwtApplication.java:62)
at
org.eclipse.riena.navigation.ui.application.AbstractApplicat ion.start(AbstractApplication.java:66)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 556)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
at org.eclipse.equinox.launcher.Main.main(Main.java:1260)


Are there any documents or tutorials or something like that which can be
used to understand the whole Login mechanism with all the involved
components?

BTW: I
Re: No authentication service [message #23604 is a reply to message #23561] Wed, 25 March 2009 07:06 Go to previous messageGo to next message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
BTW: I have switched to Riena 1.1.0M6 now.



"Carsten Spieker" <carsten.spieker@d-velop.de> schrieb im Newsbeitrag
news:gqckib$1sj$1@build.eclipse.org...
> Hey Frank,
>
> the VM-argument you mentioned was existing in the app server launch
> configuration...but the specified plugin
> "org.eclipse.riena.security.simpleservice" not. After importing it into
> workspace it works fine.
>
> But when I take the login mechanism over to my own little sample
> application I still get the following error when ILoginContext.login() is
> performed:
>
> javax.security.auth.login.LoginException: no authentication service
> at
> org.eclipse.riena.security.common.authentication.RemoteLogin Proxy.login(RemoteLoginProxy.java:79)
> at
> com.pa.eai.spieker.client.authentication.RemoteLoginModule.l ogin(RemoteLoginModule.java:96)
> at
> org.eclipse.equinox.security.auth.module.ExtensionLoginModul e.login(ExtensionLoginModule.java:61)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at javax.security.auth.login.LoginContext.invoke(Unknown Source)
> at javax.security.auth.login.LoginContext.access$000(Unknown Source)
> at javax.security.auth.login.LoginContext$4.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
> at javax.security.auth.login.LoginContext.login(Unknown Source)
> at
> org.eclipse.equinox.internal.security.auth.SecureContext.log in(SecureContext.java:50)
> at
> com.pa.eai.spieker.client.views.LoginDialogController.checkL ogin(LoginDialogController.java:142)
> at
> com.pa.eai.spieker.client.views.LoginDialogController.access $0(LoginDialogController.java:125)
> at
> com.pa.eai.spieker.client.views.LoginDialogController$1.call back(LoginDialogController.java:78)
> at
> org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.fir eAction(ActionObserver.java:63)
> at
> org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.wid getSelected(ActionObserver.java:34)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
> at
> org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.doEventLoop(AbstractLoginSplashHandler.jav a:88)
> at
> org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.init(AbstractLoginSplashHandler.java:67)
> at org.eclipse.ui.internal.Workbench$6.run(Workbench.java:605)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at
> org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbe nch.java:621)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2238)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 09)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:492)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.riena.navigation.ui.swt.application.SwtApplicati on.createView(SwtApplication.java:62)
> at
> org.eclipse.riena.navigation.ui.application.AbstractApplicat ion.start(AbstractApplication.java:66)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 556)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1260)
>
>
> Are there any documents or tutorials or something like that which can be
> used to understand the whole Login mechanism with all the involved
> components?
>
> BTW: I
Re: No authentication service [message #23647 is a reply to message #23604] Wed, 25 March 2009 07:39 Go to previous messageGo to next message
Stefan Liebig is currently offline Stefan Liebig
Messages: 124
Registered: July 2009
Senior Member
Hi Carsten,

The cause of this exception is that the RemoteLoginProxy is missing an
implementation of the IAuthenticationService service. A default
implementation is provided within the plugin
org.eclipse.riena.security.services. Maybe this is missing in your
sample app?
Documentation is available here:
- http://wiki.eclipse.org/Riena_Getting_started_security
- http://wiki.eclipse.org/Riena_Login_support
and of course:
- http://www.eclipse.org/equinox/incubator/security/

HTH

Tschüß,
Stefan

Carsten Spieker wrote:
> BTW: I have switched to Riena 1.1.0M6 now.
>
>
>
> "Carsten Spieker" <carsten.spieker@d-velop.de> schrieb im Newsbeitrag
> news:gqckib$1sj$1@build.eclipse.org...
>> Hey Frank,
>>
>> the VM-argument you mentioned was existing in the app server launch
>> configuration...but the specified plugin
>> "org.eclipse.riena.security.simpleservice" not. After importing it into
>> workspace it works fine.
>>
>> But when I take the login mechanism over to my own little sample
>> application I still get the following error when ILoginContext.login() is
>> performed:
>>
>> javax.security.auth.login.LoginException: no authentication service
>> at
>> org.eclipse.riena.security.common.authentication.RemoteLogin Proxy.login(RemoteLoginProxy.java:79)
>> at
>> com.pa.eai.spieker.client.authentication.RemoteLoginModule.l ogin(RemoteLoginModule.java:96)
>> at
>> org.eclipse.equinox.security.auth.module.ExtensionLoginModul e.login(ExtensionLoginModule.java:61)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at javax.security.auth.login.LoginContext.invoke(Unknown Source)
>> at javax.security.auth.login.LoginContext.access$000(Unknown Source)
>> at javax.security.auth.login.LoginContext$4.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
>> at javax.security.auth.login.LoginContext.login(Unknown Source)
>> at
>> org.eclipse.equinox.internal.security.auth.SecureContext.log in(SecureContext.java:50)
>> at
>> com.pa.eai.spieker.client.views.LoginDialogController.checkL ogin(LoginDialogController.java:142)
>> at
>> com.pa.eai.spieker.client.views.LoginDialogController.access $0(LoginDialogController.java:125)
>> at
>> com.pa.eai.spieker.client.views.LoginDialogController$1.call back(LoginDialogController.java:78)
>> at
>> org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.fir eAction(ActionObserver.java:63)
>> at
>> org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.wid getSelected(ActionObserver.java:34)
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
>> at
>> org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.doEventLoop(AbstractLoginSplashHandler.jav a:88)
>> at
>> org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.init(AbstractLoginSplashHandler.java:67)
>> at org.eclipse.ui.internal.Workbench$6.run(Workbench.java:605)
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at
>> org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbe nch.java:621)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2238)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 09)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:492)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.riena.navigation.ui.swt.application.SwtApplicati on.createView(SwtApplication.java:62)
>> at
>> org.eclipse.riena.navigation.ui.application.AbstractApplicat ion.start(AbstractApplication.java:66)
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 556)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1260)
>>
>>
>> Are there any documents or tutorials or something like that which can be
>> used to understand the whole Login mechanism with all the involved
>> components?
>>
>> BTW: I´m working on Win32.
>>
>> Greetz and Thanks!
>> Carsten
>>
>>
>>
>>
>> "Frank Schepp" <Frank.Schepp@compeople.de> schrieb im Newsbeitrag
>> news:gq87hj$ps2$1@build.eclipse.org...
>>> Hi Carsten,
>>>
>>> sorry, the launcher i wanted to mentioned is also in
>>> org.eclipse.riena.example.client and is named SWT
>>> ExampleApplication.product.launch. Please can you check/make sure that
>>> also the following VM
>>> argument -Djava.security.auth.login.config==${workspace_loc}\org.ecli pse.riena.security.simpleservices\config\sample_jaas.config
>>> is present in the launch configuration of Riena Sample App Server (the
>>> exception indicates that information provided by this file is missing)?!
>>> By the way on which OS platform you are on?
>>>
>>> regards, Frank
>>>
>>>
>>> Carsten Spieker wrote:
>>>> Hi Frank,
>>>>
>>>> I use the product "example_product" defined in plugin
>>>> "org.eclipse.riena.example.client".
>>>> I cannot find the launcher you mentioned. Where can I find it?
>>>>
>>>> Here the stacktrace the Sample App Server gives:
>>>>
>>>> WARNUNG:
>>>> org.eclipse.riena.security.common.authentication.Authenticat ionFailure:
>>>> AuthenticationService login failed
>>>> org.eclipse.riena.security.common.authentication.Authenticat ionFailure:
>>>> AuthenticationService login failed
>>>> at
>>>> org.eclipse.riena.internal.security.authenticationservice.Au thenticationService.login(AuthenticationService.java:146)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>> at
>>>> org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:69)
>>>> at
>>>> org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:38)
>>>> at
>>>> org.eclipse.riena.internal.communication.publisher.ServiceHo oksProxy.invoke(ServiceHooksProxy.java:70)
>>>> at $Proxy13.login(Unknown Source)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>> at
>>>> com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkel eton.java:155)
>>>> at
>>>> org.eclipse.riena.communication.publisher.hessian.RienaHessi anDispatcherServlet.service(RienaHessianDispatcherServlet.ja va:147)
>>>> at
>>>> org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
>>>> at
>>>> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>>>> at
>>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>>>> at
>>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:67)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>>> at
>>>> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
>>>> at
>>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
>>>> at
>>>> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
>>>> at
>>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
>>>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
>>>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
>>>> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
>>>> at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
>>>> at org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
>>>> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
>>>> at
>>>> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
>>>> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
>>>> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
>>>> Caused by: javax.security.auth.login.LoginException: Für CentralSecurity
>>>> sind keine Anmeldemodule konfiguriert.
>>>> at javax.security.auth.login.LoginContext.init(LoginContext.jav a:256)
>>>> at javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)
>>>> at
>>>> org.eclipse.equinox.internal.security.auth.SecureContext.get LoginContext(SecureContext.java:98)
>>>> at
>>>> org.eclipse.equinox.internal.security.auth.SecureContext.log in(SecureContext.java:46)
>>>> at
>>>> org.eclipse.riena.internal.security.authenticationservice.Au thenticationService.login(AuthenticationService.java:125)
>>>> ... 32 more
>>>>
>>>>
>>>>
>>>> Greetz
>>>> Carsten
>>>>
>>>>
>>>> "Frank Schepp" <Frank.Schepp@compeople.de> schrieb im Newsbeitrag
>>>> news:gq7n3l$b90$1@build.eclipse.org...
>>>>> Carsten Spieker wrote:
>>>>> Hi Carsten,
>>>>>
>>>>> which example are you using? Did you try launcher SWT SCP
>>>>> ExampleApplication.product (client) and Riena Sample App Server? Which
>>>>> riena version are you using? Could you please provide a stacktrace?
>>>>>
>>>>> Regards, Frank
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I´m playing around with the Riena sample applications.
>>>>>>
>>>>>> When I try to learn more about the riena login support I´m reaching my
>>>>>> limits quite early.
>>>>>>
>>>>>> I always get the message "Log-in failed" which is caused by an
>>>>>> LoginException "No authentication service".
>>>>>>
>>>>>> I´m quite new to riena and Java Security. Can anyone help me
>>>>>> understanding or simply using the login support?
>>>>>>
>>>>>> Thanks and greetz
>>>>>> Carsten
>
>
Re: No authentication service [message #23692 is a reply to message #23604] Wed, 25 March 2009 07:46 Go to previous messageGo to next message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
Well, after having an additional look at the
org.eclipse.riena.example.client bundle I have found my last error.
I did not register a remote proxy for the IAuthenticationService interface
in my own bundle. This caused the problem that my bundle could not find an
authentication service since no local service was available!

Thank you Fred for your patient help!

Greetz
Carsten


"Carsten Spieker" <carsten.spieker@d-velop.de> schrieb im Newsbeitrag
news:gqcl5e$epd$1@build.eclipse.org...
> BTW: I have switched to Riena 1.1.0M6 now.
>
>
>
> "Carsten Spieker" <carsten.spieker@d-velop.de> schrieb im Newsbeitrag
> news:gqckib$1sj$1@build.eclipse.org...
>> Hey Frank,
>>
>> the VM-argument you mentioned was existing in the app server launch
>> configuration...but the specified plugin
>> "org.eclipse.riena.security.simpleservice" not. After importing it into
>> workspace it works fine.
>>
>> But when I take the login mechanism over to my own little sample
>> application I still get the following error when ILoginContext.login() is
>> performed:
>>
>> javax.security.auth.login.LoginException: no authentication service
>> at
>> org.eclipse.riena.security.common.authentication.RemoteLogin Proxy.login(RemoteLoginProxy.java:79)
>> at
>> com.pa.eai.spieker.client.authentication.RemoteLoginModule.l ogin(RemoteLoginModule.java:96)
>> at
>> org.eclipse.equinox.security.auth.module.ExtensionLoginModul e.login(ExtensionLoginModule.java:61)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at javax.security.auth.login.LoginContext.invoke(Unknown Source)
>> at javax.security.auth.login.LoginContext.access$000(Unknown Source)
>> at javax.security.auth.login.LoginContext$4.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
>> at javax.security.auth.login.LoginContext.login(Unknown Source)
>> at
>> org.eclipse.equinox.internal.security.auth.SecureContext.log in(SecureContext.java:50)
>> at
>> com.pa.eai.spieker.client.views.LoginDialogController.checkL ogin(LoginDialogController.java:142)
>> at
>> com.pa.eai.spieker.client.views.LoginDialogController.access $0(LoginDialogController.java:125)
>> at
>> com.pa.eai.spieker.client.views.LoginDialogController$1.call back(LoginDialogController.java:78)
>> at
>> org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.fir eAction(ActionObserver.java:63)
>> at
>> org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.wid getSelected(ActionObserver.java:34)
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
>> at
>> org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.doEventLoop(AbstractLoginSplashHandler.jav a:88)
>> at
>> org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.init(AbstractLoginSplashHandler.java:67)
>> at org.eclipse.ui.internal.Workbench$6.run(Workbench.java:605)
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at
>> org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbe nch.java:621)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2238)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 09)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:492)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.riena.navigation.ui.swt.application.SwtApplicati on.createView(SwtApplication.java:62)
>> at
>> org.eclipse.riena.navigation.ui.application.AbstractApplicat ion.start(AbstractApplication.java:66)
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 556)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1260)
>>
>>
>> Are there any documents or tutorials or something like that which can be
>> used to understand the whole Login mechanism with all the involved
>> components?
>>
>> BTW: I
Re: No authentication service [message #23735 is a reply to message #23647] Wed, 25 March 2009 07:48 Go to previous message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
Hi Stefan,

thanks for your information. I
Re: No authentication service [message #581370 is a reply to message #23154] Mon, 23 March 2009 09:57 Go to previous message
Frank Schepp is currently offline Frank Schepp
Messages: 14
Registered: July 2009
Junior Member
Carsten Spieker wrote:
Hi Carsten,

which example are you using? Did you try launcher SWT SCP
ExampleApplication.product (client) and Riena Sample App Server? Which
riena version are you using? Could you please provide a stacktrace?

Regards, Frank

> Hi,
>
> I´m playing around with the Riena sample applications.
>
> When I try to learn more about the riena login support I´m reaching my
> limits quite early.
>
> I always get the message "Log-in failed" which is caused by an
> LoginException "No authentication service".
>
> I´m quite new to riena and Java Security. Can anyone help me understanding
> or simply using the login support?
>
> Thanks and greetz
> Carsten
>
>
Re: No authentication service [message #581389 is a reply to message #23193] Mon, 23 March 2009 10:24 Go to previous message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
Hi Frank,

I use the product "example_product" defined in plugin
"org.eclipse.riena.example.client".
I cannot find the launcher you mentioned. Where can I find it?

Here the stacktrace the Sample App Server gives:

WARNUNG:
org.eclipse.riena.security.common.authentication.Authenticat ionFailure:
AuthenticationService login failed
org.eclipse.riena.security.common.authentication.Authenticat ionFailure:
AuthenticationService login failed
at
org.eclipse.riena.internal.security.authenticationservice.Au thenticationService.login(AuthenticationService.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:69)
at
org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:38)
at
org.eclipse.riena.internal.communication.publisher.ServiceHo oksProxy.invoke(ServiceHooksProxy.java:70)
at $Proxy13.login(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkel eton.java:155)
at
org.eclipse.riena.communication.publisher.hessian.RienaHessi anDispatcherServlet.service(RienaHessianDispatcherServlet.ja va:147)
at
org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
at
org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
Caused by: javax.security.auth.login.LoginException: F
Re: No authentication service [message #581408 is a reply to message #23307] Mon, 23 March 2009 10:24 Go to previous message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
I
Re: No authentication service [message #581436 is a reply to message #23307] Mon, 23 March 2009 14:37 Go to previous message
Frank Schepp is currently offline Frank Schepp
Messages: 14
Registered: July 2009
Junior Member
Hi Carsten,

sorry, the launcher i wanted to mentioned is also in
org.eclipse.riena.example.client and is named SWT
ExampleApplication.product.launch. Please can you check/make sure that
also the following VM argument
-Djava.security.auth.login.config==${workspace_loc}\org.ecli pse.riena.security.simpleservices\config\sample_jaas.config
is present in the launch configuration of Riena Sample App Server (the
exception indicates that information provided by this file is missing)?!
By the way on which OS platform you are on?

regards, Frank


Carsten Spieker wrote:
> Hi Frank,
>
> I use the product "example_product" defined in plugin
> "org.eclipse.riena.example.client".
> I cannot find the launcher you mentioned. Where can I find it?
>
> Here the stacktrace the Sample App Server gives:
>
> WARNUNG:
> org.eclipse.riena.security.common.authentication.Authenticat ionFailure:
> AuthenticationService login failed
> org.eclipse.riena.security.common.authentication.Authenticat ionFailure:
> AuthenticationService login failed
> at
> org.eclipse.riena.internal.security.authenticationservice.Au thenticationService.login(AuthenticationService.java:146)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:69)
> at
> org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:38)
> at
> org.eclipse.riena.internal.communication.publisher.ServiceHo oksProxy.invoke(ServiceHooksProxy.java:70)
> at $Proxy13.login(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkel eton.java:155)
> at
> org.eclipse.riena.communication.publisher.hessian.RienaHessi anDispatcherServlet.service(RienaHessianDispatcherServlet.ja va:147)
> at
> org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:67)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
> at
> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
> at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
> at org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
> at
> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
> Caused by: javax.security.auth.login.LoginException: Für CentralSecurity
> sind keine Anmeldemodule konfiguriert.
> at javax.security.auth.login.LoginContext.init(LoginContext.jav a:256)
> at javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)
> at
> org.eclipse.equinox.internal.security.auth.SecureContext.get LoginContext(SecureContext.java:98)
> at
> org.eclipse.equinox.internal.security.auth.SecureContext.log in(SecureContext.java:46)
> at
> org.eclipse.riena.internal.security.authenticationservice.Au thenticationService.login(AuthenticationService.java:125)
> ... 32 more
>
>
>
> Greetz
> Carsten
>
>
> "Frank Schepp" <Frank.Schepp@compeople.de> schrieb im Newsbeitrag
> news:gq7n3l$b90$1@build.eclipse.org...
>> Carsten Spieker wrote:
>> Hi Carsten,
>>
>> which example are you using? Did you try launcher SWT SCP
>> ExampleApplication.product (client) and Riena Sample App Server? Which
>> riena version are you using? Could you please provide a stacktrace?
>>
>> Regards, Frank
>>
>>> Hi,
>>>
>>> I´m playing around with the Riena sample applications.
>>>
>>> When I try to learn more about the riena login support I´m reaching my
>>> limits quite early.
>>>
>>> I always get the message "Log-in failed" which is caused by an
>>> LoginException "No authentication service".
>>>
>>> I´m quite new to riena and Java Security. Can anyone help me
>>> understanding or simply using the login support?
>>>
>>> Thanks and greetz
>>> Carsten
>
>
Re: No authentication service [message #581481 is a reply to message #23394] Wed, 25 March 2009 06:56 Go to previous message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
Hey Frank,

the VM-argument you mentioned was existing in the app server launch
configuration...but the specified plugin
"org.eclipse.riena.security.simpleservice" not. After importing it into
workspace it works fine.

But when I take the login mechanism over to my own little sample application
I still get the following error when ILoginContext.login() is performed:

javax.security.auth.login.LoginException: no authentication service
at
org.eclipse.riena.security.common.authentication.RemoteLogin Proxy.login(RemoteLoginProxy.java:79)
at
com.pa.eai.spieker.client.authentication.RemoteLoginModule.l ogin(RemoteLoginModule.java:96)
at
org.eclipse.equinox.security.auth.module.ExtensionLoginModul e.login(ExtensionLoginModule.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.access$000(Unknown Source)
at javax.security.auth.login.LoginContext$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
at javax.security.auth.login.LoginContext.login(Unknown Source)
at
org.eclipse.equinox.internal.security.auth.SecureContext.log in(SecureContext.java:50)
at
com.pa.eai.spieker.client.views.LoginDialogController.checkL ogin(LoginDialogController.java:142)
at
com.pa.eai.spieker.client.views.LoginDialogController.access $0(LoginDialogController.java:125)
at
com.pa.eai.spieker.client.views.LoginDialogController$1.call back(LoginDialogController.java:78)
at
org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.fir eAction(ActionObserver.java:63)
at
org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.wid getSelected(ActionObserver.java:34)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
at
org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.doEventLoop(AbstractLoginSplashHandler.jav a:88)
at
org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.init(AbstractLoginSplashHandler.java:67)
at org.eclipse.ui.internal.Workbench$6.run(Workbench.java:605)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbe nch.java:621)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2238)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 09)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:492)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.riena.navigation.ui.swt.application.SwtApplicati on.createView(SwtApplication.java:62)
at
org.eclipse.riena.navigation.ui.application.AbstractApplicat ion.start(AbstractApplication.java:66)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 556)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
at org.eclipse.equinox.launcher.Main.main(Main.java:1260)


Are there any documents or tutorials or something like that which can be
used to understand the whole Login mechanism with all the involved
components?

BTW: I
Re: No authentication service [message #581489 is a reply to message #23561] Wed, 25 March 2009 07:06 Go to previous message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
BTW: I have switched to Riena 1.1.0M6 now.



"Carsten Spieker" <carsten.spieker@d-velop.de> schrieb im Newsbeitrag
news:gqckib$1sj$1@build.eclipse.org...
> Hey Frank,
>
> the VM-argument you mentioned was existing in the app server launch
> configuration...but the specified plugin
> "org.eclipse.riena.security.simpleservice" not. After importing it into
> workspace it works fine.
>
> But when I take the login mechanism over to my own little sample
> application I still get the following error when ILoginContext.login() is
> performed:
>
> javax.security.auth.login.LoginException: no authentication service
> at
> org.eclipse.riena.security.common.authentication.RemoteLogin Proxy.login(RemoteLoginProxy.java:79)
> at
> com.pa.eai.spieker.client.authentication.RemoteLoginModule.l ogin(RemoteLoginModule.java:96)
> at
> org.eclipse.equinox.security.auth.module.ExtensionLoginModul e.login(ExtensionLoginModule.java:61)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at javax.security.auth.login.LoginContext.invoke(Unknown Source)
> at javax.security.auth.login.LoginContext.access$000(Unknown Source)
> at javax.security.auth.login.LoginContext$4.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
> at javax.security.auth.login.LoginContext.login(Unknown Source)
> at
> org.eclipse.equinox.internal.security.auth.SecureContext.log in(SecureContext.java:50)
> at
> com.pa.eai.spieker.client.views.LoginDialogController.checkL ogin(LoginDialogController.java:142)
> at
> com.pa.eai.spieker.client.views.LoginDialogController.access $0(LoginDialogController.java:125)
> at
> com.pa.eai.spieker.client.views.LoginDialogController$1.call back(LoginDialogController.java:78)
> at
> org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.fir eAction(ActionObserver.java:63)
> at
> org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.wid getSelected(ActionObserver.java:34)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
> at
> org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.doEventLoop(AbstractLoginSplashHandler.jav a:88)
> at
> org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.init(AbstractLoginSplashHandler.java:67)
> at org.eclipse.ui.internal.Workbench$6.run(Workbench.java:605)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at
> org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbe nch.java:621)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2238)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 09)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:492)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.riena.navigation.ui.swt.application.SwtApplicati on.createView(SwtApplication.java:62)
> at
> org.eclipse.riena.navigation.ui.application.AbstractApplicat ion.start(AbstractApplication.java:66)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 556)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1260)
>
>
> Are there any documents or tutorials or something like that which can be
> used to understand the whole Login mechanism with all the involved
> components?
>
> BTW: I
Re: No authentication service [message #581497 is a reply to message #23604] Wed, 25 March 2009 07:39 Go to previous message
Stefan Liebig is currently offline Stefan Liebig
Messages: 124
Registered: July 2009
Senior Member
Hi Carsten,

The cause of this exception is that the RemoteLoginProxy is missing an
implementation of the IAuthenticationService service. A default
implementation is provided within the plugin
org.eclipse.riena.security.services. Maybe this is missing in your
sample app?
Documentation is available here:
- http://wiki.eclipse.org/Riena_Getting_started_security
- http://wiki.eclipse.org/Riena_Login_support
and of course:
- http://www.eclipse.org/equinox/incubator/security/

HTH

Tschüß,
Stefan

Carsten Spieker wrote:
> BTW: I have switched to Riena 1.1.0M6 now.
>
>
>
> "Carsten Spieker" <carsten.spieker@d-velop.de> schrieb im Newsbeitrag
> news:gqckib$1sj$1@build.eclipse.org...
>> Hey Frank,
>>
>> the VM-argument you mentioned was existing in the app server launch
>> configuration...but the specified plugin
>> "org.eclipse.riena.security.simpleservice" not. After importing it into
>> workspace it works fine.
>>
>> But when I take the login mechanism over to my own little sample
>> application I still get the following error when ILoginContext.login() is
>> performed:
>>
>> javax.security.auth.login.LoginException: no authentication service
>> at
>> org.eclipse.riena.security.common.authentication.RemoteLogin Proxy.login(RemoteLoginProxy.java:79)
>> at
>> com.pa.eai.spieker.client.authentication.RemoteLoginModule.l ogin(RemoteLoginModule.java:96)
>> at
>> org.eclipse.equinox.security.auth.module.ExtensionLoginModul e.login(ExtensionLoginModule.java:61)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at javax.security.auth.login.LoginContext.invoke(Unknown Source)
>> at javax.security.auth.login.LoginContext.access$000(Unknown Source)
>> at javax.security.auth.login.LoginContext$4.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
>> at javax.security.auth.login.LoginContext.login(Unknown Source)
>> at
>> org.eclipse.equinox.internal.security.auth.SecureContext.log in(SecureContext.java:50)
>> at
>> com.pa.eai.spieker.client.views.LoginDialogController.checkL ogin(LoginDialogController.java:142)
>> at
>> com.pa.eai.spieker.client.views.LoginDialogController.access $0(LoginDialogController.java:125)
>> at
>> com.pa.eai.spieker.client.views.LoginDialogController$1.call back(LoginDialogController.java:78)
>> at
>> org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.fir eAction(ActionObserver.java:63)
>> at
>> org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.wid getSelected(ActionObserver.java:34)
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
>> at
>> org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.doEventLoop(AbstractLoginSplashHandler.jav a:88)
>> at
>> org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.init(AbstractLoginSplashHandler.java:67)
>> at org.eclipse.ui.internal.Workbench$6.run(Workbench.java:605)
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at
>> org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbe nch.java:621)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2238)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 09)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:492)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.riena.navigation.ui.swt.application.SwtApplicati on.createView(SwtApplication.java:62)
>> at
>> org.eclipse.riena.navigation.ui.application.AbstractApplicat ion.start(AbstractApplication.java:66)
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 556)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1260)
>>
>>
>> Are there any documents or tutorials or something like that which can be
>> used to understand the whole Login mechanism with all the involved
>> components?
>>
>> BTW: I´m working on Win32.
>>
>> Greetz and Thanks!
>> Carsten
>>
>>
>>
>>
>> "Frank Schepp" <Frank.Schepp@compeople.de> schrieb im Newsbeitrag
>> news:gq87hj$ps2$1@build.eclipse.org...
>>> Hi Carsten,
>>>
>>> sorry, the launcher i wanted to mentioned is also in
>>> org.eclipse.riena.example.client and is named SWT
>>> ExampleApplication.product.launch. Please can you check/make sure that
>>> also the following VM
>>> argument -Djava.security.auth.login.config==${workspace_loc}\org.ecli pse.riena.security.simpleservices\config\sample_jaas.config
>>> is present in the launch configuration of Riena Sample App Server (the
>>> exception indicates that information provided by this file is missing)?!
>>> By the way on which OS platform you are on?
>>>
>>> regards, Frank
>>>
>>>
>>> Carsten Spieker wrote:
>>>> Hi Frank,
>>>>
>>>> I use the product "example_product" defined in plugin
>>>> "org.eclipse.riena.example.client".
>>>> I cannot find the launcher you mentioned. Where can I find it?
>>>>
>>>> Here the stacktrace the Sample App Server gives:
>>>>
>>>> WARNUNG:
>>>> org.eclipse.riena.security.common.authentication.Authenticat ionFailure:
>>>> AuthenticationService login failed
>>>> org.eclipse.riena.security.common.authentication.Authenticat ionFailure:
>>>> AuthenticationService login failed
>>>> at
>>>> org.eclipse.riena.internal.security.authenticationservice.Au thenticationService.login(AuthenticationService.java:146)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>> at
>>>> org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:69)
>>>> at
>>>> org.eclipse.riena.communication.core.hooks.AbstractHooksProx y.invoke(AbstractHooksProxy.java:38)
>>>> at
>>>> org.eclipse.riena.internal.communication.publisher.ServiceHo oksProxy.invoke(ServiceHooksProxy.java:70)
>>>> at $Proxy13.login(Unknown Source)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>> at
>>>> com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkel eton.java:155)
>>>> at
>>>> org.eclipse.riena.communication.publisher.hessian.RienaHessi anDispatcherServlet.service(RienaHessianDispatcherServlet.ja va:147)
>>>> at
>>>> org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180)
>>>> at
>>>> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>>>> at
>>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>>>> at
>>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:67)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>>> at
>>>> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
>>>> at
>>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
>>>> at
>>>> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
>>>> at
>>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
>>>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
>>>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
>>>> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
>>>> at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
>>>> at org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
>>>> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
>>>> at
>>>> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
>>>> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
>>>> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
>>>> Caused by: javax.security.auth.login.LoginException: Für CentralSecurity
>>>> sind keine Anmeldemodule konfiguriert.
>>>> at javax.security.auth.login.LoginContext.init(LoginContext.jav a:256)
>>>> at javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)
>>>> at
>>>> org.eclipse.equinox.internal.security.auth.SecureContext.get LoginContext(SecureContext.java:98)
>>>> at
>>>> org.eclipse.equinox.internal.security.auth.SecureContext.log in(SecureContext.java:46)
>>>> at
>>>> org.eclipse.riena.internal.security.authenticationservice.Au thenticationService.login(AuthenticationService.java:125)
>>>> ... 32 more
>>>>
>>>>
>>>>
>>>> Greetz
>>>> Carsten
>>>>
>>>>
>>>> "Frank Schepp" <Frank.Schepp@compeople.de> schrieb im Newsbeitrag
>>>> news:gq7n3l$b90$1@build.eclipse.org...
>>>>> Carsten Spieker wrote:
>>>>> Hi Carsten,
>>>>>
>>>>> which example are you using? Did you try launcher SWT SCP
>>>>> ExampleApplication.product (client) and Riena Sample App Server? Which
>>>>> riena version are you using? Could you please provide a stacktrace?
>>>>>
>>>>> Regards, Frank
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I´m playing around with the Riena sample applications.
>>>>>>
>>>>>> When I try to learn more about the riena login support I´m reaching my
>>>>>> limits quite early.
>>>>>>
>>>>>> I always get the message "Log-in failed" which is caused by an
>>>>>> LoginException "No authentication service".
>>>>>>
>>>>>> I´m quite new to riena and Java Security. Can anyone help me
>>>>>> understanding or simply using the login support?
>>>>>>
>>>>>> Thanks and greetz
>>>>>> Carsten
>
>
Re: No authentication service [message #581507 is a reply to message #23604] Wed, 25 March 2009 07:46 Go to previous message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
Well, after having an additional look at the
org.eclipse.riena.example.client bundle I have found my last error.
I did not register a remote proxy for the IAuthenticationService interface
in my own bundle. This caused the problem that my bundle could not find an
authentication service since no local service was available!

Thank you Fred for your patient help!

Greetz
Carsten


"Carsten Spieker" <carsten.spieker@d-velop.de> schrieb im Newsbeitrag
news:gqcl5e$epd$1@build.eclipse.org...
> BTW: I have switched to Riena 1.1.0M6 now.
>
>
>
> "Carsten Spieker" <carsten.spieker@d-velop.de> schrieb im Newsbeitrag
> news:gqckib$1sj$1@build.eclipse.org...
>> Hey Frank,
>>
>> the VM-argument you mentioned was existing in the app server launch
>> configuration...but the specified plugin
>> "org.eclipse.riena.security.simpleservice" not. After importing it into
>> workspace it works fine.
>>
>> But when I take the login mechanism over to my own little sample
>> application I still get the following error when ILoginContext.login() is
>> performed:
>>
>> javax.security.auth.login.LoginException: no authentication service
>> at
>> org.eclipse.riena.security.common.authentication.RemoteLogin Proxy.login(RemoteLoginProxy.java:79)
>> at
>> com.pa.eai.spieker.client.authentication.RemoteLoginModule.l ogin(RemoteLoginModule.java:96)
>> at
>> org.eclipse.equinox.security.auth.module.ExtensionLoginModul e.login(ExtensionLoginModule.java:61)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at javax.security.auth.login.LoginContext.invoke(Unknown Source)
>> at javax.security.auth.login.LoginContext.access$000(Unknown Source)
>> at javax.security.auth.login.LoginContext$4.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
>> at javax.security.auth.login.LoginContext.login(Unknown Source)
>> at
>> org.eclipse.equinox.internal.security.auth.SecureContext.log in(SecureContext.java:50)
>> at
>> com.pa.eai.spieker.client.views.LoginDialogController.checkL ogin(LoginDialogController.java:142)
>> at
>> com.pa.eai.spieker.client.views.LoginDialogController.access $0(LoginDialogController.java:125)
>> at
>> com.pa.eai.spieker.client.views.LoginDialogController$1.call back(LoginDialogController.java:78)
>> at
>> org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.fir eAction(ActionObserver.java:63)
>> at
>> org.eclipse.riena.internal.ui.ridgets.swt.ActionObserver.wid getSelected(ActionObserver.java:34)
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
>> at
>> org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.doEventLoop(AbstractLoginSplashHandler.jav a:88)
>> at
>> org.eclipse.riena.navigation.ui.swt.splashHandlers.AbstractL oginSplashHandler.init(AbstractLoginSplashHandler.java:67)
>> at org.eclipse.ui.internal.Workbench$6.run(Workbench.java:605)
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>> at
>> org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbe nch.java:621)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2238)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 09)
>> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:492)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.riena.navigation.ui.swt.application.SwtApplicati on.createView(SwtApplication.java:62)
>> at
>> org.eclipse.riena.navigation.ui.application.AbstractApplicat ion.start(AbstractApplication.java:66)
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 556)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1260)
>>
>>
>> Are there any documents or tutorials or something like that which can be
>> used to understand the whole Login mechanism with all the involved
>> components?
>>
>> BTW: I
Re: No authentication service [message #581525 is a reply to message #23647] Wed, 25 March 2009 07:48 Go to previous message
Carsten Spieker is currently offline Carsten Spieker
Messages: 197
Registered: July 2009
Senior Member
Hi Stefan,

thanks for your information. I
Previous Topic:One service instance for all clients?
Next Topic:Create Application model depending on login information
Goto Forum:
  


Current Time: Sun Sep 21 18:24:50 GMT 2014

Powered by FUDForum. Page generated in 0.06794 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software