on 10-20-2005 12:05 PM
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.
What context do you get when you do not include the hashtable? Will this line fail?
Context ctxt=new InitialContext();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I also checked with 50004 but of no use. I think the problem is somthing different. I am using Administrator as PRINCIPLE is that OK? Beacuse in the log file i seeing a error "Wrong security principle/credentials". Please show me a way to solve this problem this is very urgent.
Ashok.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashok,
In my opinion your provider url should be localhost:5XX04.
In my opinion it should be the P4 port.
Hope this helps.
Regards
Sidharth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.