javax.ejb.NoSuchEntityException is system exception. It is thrown by us or the container because ejbLoad(), ejbStore(), or a business method was called in response to a call for an entity that has been removed.
If this exception makes it to the container, the container will transform it into  NoSuchObjectLocalException if the client is local or  NoSuchObjectException if the client is remote. Client never receives an exception called NoSuchEntityException.
javax.naming.NamingException is not system exception. It is subclass of Exception. It the superclass of all exceptions thrown by operations in the Context interfaces.
------- SCJP 1.4, SCWCD 1.4, SCBCD 1.3, (SCEA Part I preparing......)