Skip to Content
0
Former Member
Oct 20, 2005 at 11:05 AM

unable to get the InitialContext?

25 Views

Hi,

I am facing a strange problem. I have deployed a EAR application with some session beans and the two war files. When I am trying to get the InitialContext I am getting an exception saying "Wrong security principle/credentials." I am using the Administrator as PRINCIPLE to get the InitialContext. The below are the given details:

-


Hashtable ht=new Hashtable();

ht.put("java.naming.factory.initial","com.sap.engine.services.jndi.InitialContextFactoryImpl");

ht.put("java.naming.provider.url","localhost:50000");

ht.put("java.naming.security.principal","Administrator");

ht.put("java.naming.security.credentials","#cosl123");

Context ctxt=new InitialContext(ht);

-


can anybody suggest me a way to solve this problem?

Thanks,

Ashok.