Hi all ,
I'm using J2ee Application server.
Everything is working fine right from the start to deployment of the bean.
But at the time of running the client it creates a problem.
The client gets the initial context
The lookup("--") method should return an Object . Instead it returns
object of type :- com.sun.corba.ee.internal.iiop.CDRInputStream
Hence it can't be typecasted to Home interface type.
The PortableRemoteObject.narrow() method throws a ClassCastException
since the lookup method doesn't return an Object type
Even after successful deployment I'm not able to run a single client
Has anybody encountered with the same problem ?
Is there any solution over this
The problem may be while setting the params of InitialContext
e.g. In case of weblogic following code is implemented
public static Context getInitialContext() throws NamingException
{
Properties p = new Properties();
p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialC
ontextFactory");
p.put(javax.naming.Context.PROVIDER_URL,"t3://localhost:7001");
return new InitialContext(p);
}
These params are specific to Application server .
What are the params for J2ee ? (I didn't got it in the documentation)
With regards
Shailesh
[ I send this mail before also .
I got some replies like : I'm not available from so and so
ate ]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".