• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OID RMI

 
Raja Ramesh Kumar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34210
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"rajaramesh_m",
We are please to have you with us here in the Oracle forum. Note that we require proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

The way you signed your name "Raja Ramesh Kumar" would be fine.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raja,
I believe that Oracle Application Server 10g uses a dynamic listener port, so I suggest removing your port number from the lookup string, as in:

Good Luck,
Avi.
 
Raja Ramesh Kumar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your suggestion and immediate response.

But i'm sure the ormi port where the application is running was 3201. So i tried with that port.

I even tried with, what you have suggested me, but it didn't work out, now i'm getting connection refused exception

please help me in resolving this problem.

regards,
Raja Ramesh Kumar M
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raja,
Oracle Application Server uses two types of security:
  • JAZN
  • Principals


  • The default is JAZN -- in which case using principals (like you are in the code you posted) is incorrect. I only use OC4J stand-alone (as opposed to Oracle Application Server), so I only know how to configure use of principals (as opposed to JAZN) for OC4J stand-alone.

    If your Oracle Application Server is configured to use principals, then the error message you are getting seems clear: you are either supplying an incorrect username and/or password.

    Would it help if I told you to RTFM? Or have you already done that? For your information, it is available from:

    http://tahiti.oracle.com

    Good Luck,
    Avi.
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic