Topic
  • No replies
PEConnectionJASSError
1 Post

Pinned topic PE Connection : Error : Unable to locate a login configuration

‏2010-08-03T17:24:16Z |
Hi all,

I am trying to get the PE connection by using the following code.

public class PEConnection {
public static void getConnection(){
try{
String userName = "administrator";
String password = "Standard2k3";
String cePoint = "ECMDEVCP1";
System.setProperty("wasp.location","C:/Program Files/FileNet/AE/CE_API/wsi");
System.setProperty("java.security.auth.login","C:/Program Files/FileNet/AE/CE_API/config/config/jaas.conf.WebSphere");
System.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.filenet.api.util.UserContext");
VWSession myPESession = new VWSession();
myPESession.setBootstrapCEURI("http://ecmdevserver:9080/wsi/FNCEWS40MTOM/");
myPESession.logon(userName, password, cePoint);

System.out.println("Hi");
}catch(Exception ex){
ex.printStackTrace();
}
}

/*
* Main method
*/
public static void main(String args[]){
getConnection();
}

But i am getting the following error.

2010-08-03 22:25:45,953 FATAL main - Unable to locate a login configuration
Problem getting JAAS Context: java.lang.SecurityException: Unable to locate a login configuration
at filenet.pe.peorb.client.JAASContext.getJAASContext(JAASContext.java:494)
at filenet.pe.peorb.client.ORBSession.getJAASContextOnly(ORBSession.java:697)
at filenet.pe.peorb.client.ORBSession.getJAASContext(ORBSession.java:711)
at filenet.pe.peorb.client.ORBSession.establishORBSession(ORBSession.java:642)
at filenet.pe.peorb.client.ORBSession.<init>(ORBSession.java:985)
at filenet.vw.server.PECommandsFactory.getPECommands(PECommandsFactory.java:119)
at filenet.vw.api.VWSession.logonByDomain(VWSession.java:864)
at filenet.vw.api.VWSession.logon(VWSession.java:723)
at com.filenet.pe.PEConnection.getConnection(PEConnection.java:22)
at com.filenet.pe.PEConnection.main(PEConnection.java:34)

Any body can please help me out to resolve this proble.
Thanks in advance.

Regards,
-Balaji.S