Hi,
When i'm trying to Connect to the
ejb on Oracle 10gAS (v10.1.2) from a standalone
java client, i'm getting the following exception...
javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Invalid username/password for cor (ias_admi
n); nested exception is:
javax.naming.AuthenticationException: Invalid username/password for cor (ias_admin) [Root exception is javax.naming.A
uthenticationException: Invalid username/password for cor (ias_admin)]
at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:153)
Scenario:
I've two machinces m-1 and m-2.
In m-1 Oracle 10g Infrastructure installed.
In m-2 my application installed and it points to the OID in m-1
From standalone java client when i'm trying to connect the application on m-2 i'm getting authenticiation exception.
But i'm able to login to the application on m-2 with the same userid/password.
Context properties in client application are..
Properties env = new Properties();
env.put("java.naming.factory.initial", "com.evermind.server.rmi.RMIInitialContextFactory");
env.put("java.naming.security.principal",args[0]);
env.put("java.naming.security.credentials",args[1]);
env.put("java.naming.provider.url", "ormi://remone:3201/cor");
ctx = new InitialContext(env);
System.out.println("*** Context created..for 10G");
Object obj = ctx.lookup("modelmanagementservice");
ModelManagementServiceHome mmsHome = (ModelManagementServiceHome)obj;
Can anybody help me in resolving this issue.
Thanks in advance,
regards,
Raja Ramesh Kumar M