• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help on log4j.properties

 
shriram iyer
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i getting following error while running my Stateful Session Bean




my log4j.properties is as follows

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
shriram iyer
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
shriram iyer
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote: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.


while running the server it shows different jndi name.when i used that jndi name, it works.thanks.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic