aspose file tools*
The moose likes Oracle/OAS and the fly likes OID RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "OID RMI " Watch "OID RMI " New topic
Author

OID RMI

Raja Ramesh Kumar
Greenhorn

Joined: Aug 22, 2002
Posts: 6
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29219
    
134

"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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1121

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

Joined: Aug 22, 2002
Posts: 6
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

Joined: Oct 11, 2000
Posts: 1121

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.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: OID RMI
     
    Similar Threads
    RMI-OID-RMI
    Getting DataSource object through JNDI in WebSphere 6.1
    JNDI Properties for Oracle 10g AS(904)
    Getting DataSource object through JNDI in WebSphere 6.1
    Getting DataSource object through JNDI in WebSphere 6.1