[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[equinox-dev] AW: [sec] Using JAAS framework: "Could not locate JAAS Configuration"
- From: "Arthur van Dorp" <Arthur.vanDorp@xxxxxxxxx>
- Date: Mon, 3 Sep 2007 14:28:58 +0200
- Delivered-to: firstname.lastname@example.org
- Thread-index: Acft/7VfMMjiUhN3TgCDqt/gPFdJ6QAJazvQ
- Thread-topic: [sec] Using JAAS framework: "Could not locate JAAS Configuration"
Update: Looks like I'm having troubles getting the org.eclipse.equinox.security.auth/loginConfigName property set. I do it the same way as in the example via the ini-file reference in plugin.xml but it doesn't seem to get read. I've also failed setting it at runtime so far.
Von: Arthur van Dorp
Gesendet: Montag, 3. September 2007 09:55
Betreff: [sec] Using JAAS framework: "Could not locate JAAS Configuration"
I'm trying to use the JAAS framework of the Equinox Security project (http://www.eclipse.org/equinox/incubator/security/) in another project. I've successfully built and run the provided unit tests and the sample program, but I fail when trying to use it in another bundle. It fails to find the JAAS configuration:
03.09.2007 08:38:00 org.eclipse.equinox.internal.security.auth.ConfigurationFederator getAppConfigurationEntry Could not locate JAAS Configuration with name "", verify that the configuration exists and is non-empty
03.09.2007 08:38:00 org.eclipse.equinox.internal.security.auth.ConfigurationFederator getAppConfigurationEntry Could not locate JAAS Configuration with name "other", verify that the configuration exists and is non-empty
javax.security.auth.login.LoginException: No LoginModules configured for
The security properties are set in the start() method of the Activator:
This should be ok because
returns the correct full path to the configuration file.
What doesn't seem ok is that neither SecurePlatform nor the loginContext return a ConfigurationName:
Both lines remain empty.
I'm sure I'm missing something obvious here. Debugging isn't helped by the fact that I'm both an OSGi and a JAAS newbie. One difference to the sample program is that I implement org.osgi.framework.BundleActivator and not org.eclipse.core.runtime.IPlatformRunnable.
Any ideas are very much appreciated.