Author
need help on log4j.properties
shriram iyer
Ranch Hand
Joined: Dec 10, 2003
Posts: 43
posted Mar 06, 2011 21:08:24
0
i getting following error while running my Stateful Session Bean
my log4j.properties is as follows
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14669
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 Blog]
All roads lead to JavaRanch
shriram iyer
Ranch Hand
Joined: Dec 10, 2003
Posts: 43
posted Mar 07, 2011 02:04:02
0
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
Peter Johnson
author
Bartender
Joined: May 14, 2008
Posts: 5528
posted Mar 07, 2011 17:14:22
0
See if this helps with debugging: http://community.jboss.org/wiki/DisplayTheJDNITreeWithTheJMXConsole
Once you know the correct JNDI name for you EJB you can fix the client code.
JBoss In Action
shriram iyer
Ranch Hand
Joined: Dec 10, 2003
Posts: 43
posted Mar 07, 2011 22:54:32
0
while running the server it shows different jndi name.when i used that jndi name, it works.thanks.
subject: need help on log4j.properties