The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2001



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.


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)

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) {

I got the next message error :

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: ; nested exception is: Failed to start
transaction ; nested exception is: Failed to
start transaction Failed to start transaction

Could anybody help me
Thanks in advance


Sponsored Links

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