• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

tomcat -> orion javax/ security/ auth/ login/ LoginException

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to connect tomcat to orion (actually oracle oc4j blend of orion) and i getting a javax /security/ auth/ login/ LoginException. I have to use (customer requirements) the oc4j (orion) container for ejbs and need to connect to those ejbs via tomcat. Following is the code i have in a simple test jsp that is being served from tomcat.
java.util.Hashtable env = new java.util.Hashtable();
env.put(Context. INITIAL_CONTEXT_FACTORY, "RMIInitialContextFactory");
env.put( Context. PROVIDER_URL, "ormi://localhost:23791" );
env.put(Context. SECURITY_PRINCIPAL, "admin");
env.put(Context. SECURITY_CREDENTIALS, "admin_passwd");
env.put("dedicated.connection","true");
Context ic = new RMIInitialContextFactory().getInitialContext(env);
I added the oc4jclient.jar file to $CATALINA_HOME/common/lib. It seems like this is right configuration but i still cannot even get the context without throwing the exception.
thanks is advance for your help
btw i had to de-concatinate some of longer words to meet the 30 character post maximum.
-derrick
 
Seriously? That's what you're going with? I prefer this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic