getResource and friends
getResource and friends
- Subject: getResource and friends
- From: Joe Little <email@hidden>
- Date: Thu, 28 May 2009 15:18:52 -0700
I was returning to the kerberos example Mike provided a while back,
and I can't get the code to work at a basic level. I've stuffed a
krb5.conf and a kerberos.conf in my Sources folder as directed (and
tried others), but I always get an NPE from this:
public class KerberosAuth {
public void testLogin() {
String userName = "email@hidden";
char[] password = "5p@rh@wk".toCharArray();
System.setProperty("java.security.auth.login.config",
KerberosAuth.class.getResource("/kerberos.conf").toExternalForm());
System.setProperty("java.security.krb5.conf",
Application.class.getResource("/krb5.conf").toExternalForm());
...
The NPE is on get setProperty line, and I think that
KerberosAuth.class.getResource is likely returning null and the
toExternalForm is causing the NPE. Is there some other newer approach
I'm supposed to be using with latest WOLips and WO 5.4.3?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden