The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

EJB message error

Posted by Jorge Chata on July 06, 2001 at 5:59 PM

Ive testing my first EJB application with servlets. My plataform is :

IBM WebSphere Application Server 3.5.0. Advanced Edition
Windows NT 4.0

Ive registered two CMP entity beans and one session bean that
are running into EJB Container.

When i invoke my servlet (part of code servlet)

try
{
javax.naming.InitialContext initialContext = new javax.naming.InitialContext();
Object objHome = initialContext.lookup("shop/Books");
BooksHome bookshome = (BooksHome) javax.rmi.PortableRemoteObject.narrow(objHome,BooksHome.class);
Books libro1 = bookshome.findByPrimaryKey(new BooksKey(10));
out.println("Libro 10 "+libro1.getTitle());

}
catch (Exception e) {
e.printStackTrace(out);
}

I got the next message error :

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
com.ibm.ejs.container.UncheckedException: ; nested exception is: com.ibm.websphere.csi.CSIException: Failed to start
transaction com.ibm.ejs.container.UncheckedException: ; nested exception is: com.ibm.websphere.csi.CSIException: Failed to
start transaction com.ibm.websphere.csi.CSIException: Failed to start transaction

Could anybody help me
Thanks in advance
Jorge




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us