• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

OID RMI

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41093
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
     
    This guy is skipping without a rope. At least, that's what this tiny ad said:
    Free, earth friendly heat - from the CodeRanch trailboss
    https://www.kickstarter.com/projects/paulwheaton/free-heat
    reply
      Bookmark Topic Watch Topic
    • New Topic