This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB problem

 
Jorge Chata
Greenhorn
Posts: 24
  • 0
  • 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
  • 0
  • 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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic