• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB problem

 
Jorge Chata
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im trying my first EJB using servlets . this is part of code :
try
{
javax.naming.InitialContext initialContext = new
javax.naming.InitialContext();
Object objhome = initialContext.lookup("HelloWorld");
HelloWorldHome home = (HelloWorldHome)
javax.rmi.PortableRemoteObject.narrow
( objhome,HelloWorldHome.class );
HelloWorld cart = home.create();
....
Application Server : IBM Websphere 3.5.3
Session Bean Properties : HelloWorldBean
Current State : Running
JNDI Home Name : HelloWorld
Session : STATELESS_SESSION
Transaction : TX_NOT_SUPPORT
Isolation : TRANSACTION_READ_COMMITTED
When i executed my servlet appear the next message error :
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is: com.ibm.websphere.csi.CSIException: Authorization
failed while invoking (Home)HelloWorld create - invalid credentials;
nested exception is: com.ibm.ejs.security.util.CacheException
com.ibm.websphere.csi.CSIException: Authorization failed while invoking
(Home)HelloWorld create - invalid credentials; nested exception is:
com.ibm.ejs.security.util.CacheException
com.ibm.ejs.security.util.CacheException
Could anybody help me
Jorge
 
Mike Burnham
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use the same code but I dont call the narrow function. Have you tried taking that out?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic