Christophe Verré wrote:The two warnings at the top of your log have nothing to do with the error happening at line 03. So log4j has nothing to do with a "javax.naming.NameNotFoundException: FooBean not bound". You have a problem in foo.Client.main(). The bean name you are using is not found.
My client program is as follows
my ejb-jar.xml is as follows
my jboss.xml is as follows