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