Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » RAP Security
RAP Security [message #665348] Thu, 14 April 2011 08:11 Go to next message
dima  is currently offline dima
Messages: 2
Registered: April 2011
Junior Member
I have a very simple RAP (version 1.3.2) application which uses Equinox security. It's based on this article http://wiki.eclipse.org/RAP/Equinox_Security_Integration.
It works good in pure Equinox.

Then I try do deploy it on Virgo (version 3.0.0M03 and 2.1.0) using instructions from http://eclipsesource.com/blogs/2010/10/28/running-rap-on-virgo/. Of course I add org.eclipse.equinox.security to the plan.

When I start jetty manually it works, but when I try to use org.equinoxosgi.core.autostart bundle I have a strange problem:

javax.security.auth.login.LoginException: Failed to log in. 
	at org.eclipse.equinox.internal.security.auth.SecureContext.login(SecureContext.java:57) 
	at my.test.security.securitycore.service.impl.SecurityServiceImpl.login(SecurityServiceImpl.java:47) 
	at my.test.core.coreui.Application.createUI(Application.java:31) 
	at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:92) 
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:245) 
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:114) 
	at java.lang.Thread.run(Thread.java:619) 
	at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102) 
Caused by: javax.security.auth.login.LoginException: unable to find LoginModule class: org.eclipse.equinox.security.auth.module.ExtensionLoginModule in KernelBundleClassLoader: [bundle=org.equinoxosgi.core.autostart_1.0.0] 
	at javax.security.auth.login.LoginContext.invoke(LoginContext.java:808) 
	at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) 
	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683) 
	at java.security.AccessController.doPrivileged(Native Method) 
	at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) 
	at javax.security.auth.login.LoginContext.login(LoginContext.java:579) 
	at org.eclipse.equinox.internal.security.auth.SecureContext.login(SecureContext.java:50) 
	... 7 more 


Could someone suggest how it can be fixed?
Re: RAP Security [message #665445 is a reply to message #665348] Thu, 14 April 2011 11:59 Go to previous message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
Not sure, but you may get some ideas from this thread.
Previous Topic:How to get remote repositories working
Next Topic:Jaas login module service
Goto Forum:
  


Current Time: Sat Aug 30 18:41:33 EDT 2014

Powered by FUDForum. Page generated in 0.10139 seconds