I had a similar problem, and found the post
you mentioned. I followed up with Ashok but 
apparently he is an OC4J developer and
i dont think it has been fixed in Orion :(


-----Original Message-----
To: Orion-Interest
Sent: 9/04/2002 7:35 AM
Subject: ClassCastException while doing REMOTE ejb lookup from a web module


I am getting a ClassCastException when I try to narrow a lookup on a 
remote stateless session bean from a jsp page.  My configuration is 
orion 1.5.4 with an application for the remote stateless session bean 
and an application for the web module.  For testing purposes, I am 
running under the same instance of orion.  Below is a snippet of code 
from the jsp page accessing the remote ejb.

    KBKTestHome kbkHome = null;
    KBKTest kbkTest     = null;
    Hashtable env = new Hashtable();
    Context jndi = null;

    env.put(javax.naming.Context.SECURITY_PRINCIPAL, "admin"); 
    env.put(javax.naming.Context.SECURITY_CREDENTIALS, "123"); 
    jndi = new InitialContext(env);
    kbkTest = kbkHome.create();
    String timeIs = kbkTest.getTime();
I have modified my orion-application.xml file for the remote ejb to 
allow read and write namespace access to group "RMI".  I have also 
modified my principals.xml file for the remote ejb to give the group 
"RMI" rmi:login permissions.  I beleive I am "finding" the home 
interface to the remote ejb successfully, but can't seem to cast it 

I searched the mailing list archives and found a recent reference to 
what appears to be a similar problem
[EMAIL PROTECTED]/msg17468.html)  However, I did not find a 
resolution to the problem.

Any help is appreciated.

Kent Kvarfordt

Reply via email to