wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes EJB problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB problem" Watch "EJB problem" New topic
Author

EJB problem

Jorge Chata
Greenhorn

Joined: Jul 06, 2001
Posts: 24
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

Joined: Jun 06, 2001
Posts: 24
I use the same code but I dont call the narrow function. Have you tried taking that out?


SCJP 1.2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB problem
 
Similar Threads
EJB error
EJB message error
EJB message error
About EJBs
Implementing security in WAS 4.0.4